Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
b2eb4d9
Save work
Xuanwo Oct 25, 2023
3556f64
refactor by range
Xuanwo Oct 25, 2023
4f65839
Remove last_seek_pos
Xuanwo Oct 25, 2023
c9a2d26
Remove not used code
Xuanwo Oct 25, 2023
e52ba54
Polish API
Xuanwo Oct 25, 2023
2f09112
Implement file reader
Xuanwo Oct 25, 2023
1966202
Fix tests
Xuanwo Oct 25, 2023
c431480
Make clippy happy
Xuanwo Oct 25, 2023
048cce0
Remove parse_io_error
Xuanwo Oct 25, 2023
08d757a
Implement tokio_read
Xuanwo Oct 25, 2023
0ce3b2e
Imple,emt std_read
Xuanwo Oct 25, 2023
0c28f67
Add file reader support
Xuanwo Oct 26, 2023
ca51f04
Cleanup
Xuanwo Oct 26, 2023
7c6d219
Fix attr
Xuanwo Oct 26, 2023
c88362c
Save
Xuanwo Oct 26, 2023
b8fb852
make rustc happy
Xuanwo Oct 26, 2023
f91d61e
Fix typo
Xuanwo Oct 26, 2023
ef9aab9
fix read to end
Xuanwo Oct 26, 2023
07be9dc
Fix 416 not handled
Xuanwo Oct 26, 2023
10ee437
Merge remote-tracking branch 'origin/main' into lazy-reader
Xuanwo Oct 26, 2023
4829152
Fix dbfs
Xuanwo Oct 26, 2023
da8511b
fix webdav
Xuanwo Oct 26, 2023
a81b140
Fix complete test
Xuanwo Oct 26, 2023
45fa506
Merge branch 'main' into lazy-reader
Xuanwo Oct 27, 2023
9e23d28
Update workflow
Xuanwo Oct 27, 2023
72cd981
Update fuzz
Xuanwo Oct 27, 2023
3ae3ad9
Add new fuzz test
Xuanwo Oct 27, 2023
64c1f8f
Remove file after succeed
Xuanwo Oct 27, 2023
821616c
Polish logging
Xuanwo Oct 27, 2023
7b37178
Polish fuzz
Xuanwo Oct 27, 2023
91886ca
Save lock
Xuanwo Oct 27, 2023
1fa27ab
Fix build
Xuanwo Oct 27, 2023
0dfe270
Fix seek check
Xuanwo Oct 27, 2023
2079ee0
Fix fuzz reader
Xuanwo Oct 27, 2023
b556408
Polish fuzz reader
Xuanwo Oct 27, 2023
d690f4d
Fix fuzzer
Xuanwo Oct 27, 2023
680879e
Fix seek
Xuanwo Oct 27, 2023
d035748
Fix
Xuanwo Oct 27, 2023
355c908
Fix dirty seek
Xuanwo Oct 27, 2023
c55d62e
Fix ghac
Xuanwo Oct 27, 2023
b62f7bc
Fix http
Xuanwo Oct 27, 2023
b31f24f
Merge remote-tracking branch 'origin/main' into lazy-reader
Xuanwo Oct 30, 2023
4486c07
Merge remote-tracking branch 'origin/main' into lazy-reader
Xuanwo Oct 30, 2023
d7bfb2c
Merge remote-tracking branch 'origin/main' into lazy-reader
Xuanwo Oct 30, 2023
caabbe6
Add size hint for rp read
Xuanwo Oct 30, 2023
13f4124
set size for reader
Xuanwo Oct 30, 2023
af6d2dd
Merge remote-tracking branch 'origin/main' into lazy-reader
Xuanwo Oct 30, 2023
96b73bb
Fix webhdfs
Xuanwo Oct 30, 2023
187c079
Fix dropbox
Xuanwo Oct 30, 2023
ca1ffea
Add opendal log level to trace
Xuanwo Oct 30, 2023
10dda26
Don't set size if it's 0
Xuanwo Oct 30, 2023
9b58283
Merge branch 'main' into lazy-reader
Xuanwo Oct 30, 2023
00b6952
Merge branch 'main' into lazy-reader
Xuanwo Oct 31, 2023
de7c3d3
format toml
Xuanwo Oct 31, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ runs:
# Enable backtraces
echo "RUST_BACKTRACE=1" >> $GITHUB_ENV
# Enable logging
echo "RUST_LOG=opendal=debug" >> $GITHUB_ENV
echo "RUST_LOG=opendal=trace" >> $GITHUB_ENV
# Enable sparse index
echo "CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse" >> $GITHUB_ENV

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/behavior_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:
with:
os: ${{ matrix.os }}
cases: ${{ toJson(matrix.cases) }}

test_binding_python:
name: binding_python / ${{ matrix.os }}
needs: [plan]
Expand Down
2 changes: 1 addition & 1 deletion .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
[default.extend-words]
# Random strings.
"Dum" = "Dum"
"ba" = "ba"
"Hel" = "Hel"
"ba" = "ba"
"hellow" = "hellow"
# Showed up in examples.
"thw" = "thw"
7 changes: 6 additions & 1 deletion bin/oay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ version.workspace = true
default = ["frontends-webdav", "frontends-s3"]

frontends-s3 = []
frontends-webdav = ["dep:dav-server", "dep:dav-server-opendalfs", "dep:bytes", "dep:futures-util"]
frontends-webdav = [
"dep:dav-server",
"dep:dav-server-opendalfs",
"dep:bytes",
"dep:futures-util",
]

[dependencies]
anyhow = "1"
Expand Down
2 changes: 1 addition & 1 deletion bindings/c/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ cbindgen = "0.25.0"

[dependencies]
bytes = "1.4.0"
once_cell = "1.17.1"
opendal.workspace = true
tokio = { version = "1.27", features = ["fs", "macros", "rt-multi-thread"] }
once_cell = "1.17.1"
6 changes: 3 additions & 3 deletions bindings/cpp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true
rust-version.workspace = true
version.workspace = true

[lib]
crate-type = ["staticlib"]

[dependencies]
opendal.workspace = true
cxx = "1.0"
anyhow = "1.0"
chrono = "0.4"
cxx = "1.0"
opendal.workspace = true

[build-dependencies]
cxx-build = "1.0"
1 change: 0 additions & 1 deletion bindings/dotnet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ license.workspace = true
repository.workspace = true
rust-version.workspace = true


[lib]
crate-type = ["cdylib"]
doc = false
Expand Down
2 changes: 1 addition & 1 deletion bindings/haskell/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ edition.workspace = true
homepage.workspace = true
license.workspace = true
repository.workspace = true
version.workspace = true
rust-version.workspace = true
version.workspace = true

[lib]
crate-type = ["cdylib"]
Expand Down
40 changes: 20 additions & 20 deletions bindings/java/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,22 +86,23 @@ services-all = [
]

# Default services provided by opendal.
services-azblob = [ "opendal/services-azblob" ]
services-azdls = [ "opendal/services-azdls" ]
services-cos = [ "opendal/services-cos" ]
services-fs = [ "opendal/services-fs" ]
services-gcs = [ "opendal/services-gcs" ]
services-ghac = [ "opendal/services-ghac" ]
services-http = [ "opendal/services-http" ]
services-ipmfs = [ "opendal/services-ipmfs" ]
services-memory = [ "opendal/services-memory" ]
services-obs = [ "opendal/services-obs" ]
services-oss = [ "opendal/services-oss" ]
services-s3 = [ "opendal/services-s3" ]
services-webdav = [ "opendal/services-webdav" ]
services-webhdfs = [ "opendal/services-webhdfs" ]
services-azblob = ["opendal/services-azblob"]
services-azdls = ["opendal/services-azdls"]
services-cos = ["opendal/services-cos"]
services-fs = ["opendal/services-fs"]
services-gcs = ["opendal/services-gcs"]
services-ghac = ["opendal/services-ghac"]
services-http = ["opendal/services-http"]
services-ipmfs = ["opendal/services-ipmfs"]
services-memory = ["opendal/services-memory"]
services-obs = ["opendal/services-obs"]
services-oss = ["opendal/services-oss"]
services-s3 = ["opendal/services-s3"]
services-webdav = ["opendal/services-webdav"]
services-webhdfs = ["opendal/services-webhdfs"]

# Optional services provided by opendal.
services-azfile = ["opendal/services-azfile"]
services-cacache = ["opendal/services-cacache"]
services-dashmap = ["opendal/services-dashmap"]
services-dropbox = ["opendal/services-dropbox"]
Expand All @@ -114,6 +115,8 @@ services-ipfs = ["opendal/services-ipfs"]
services-memcached = ["opendal/services-memcached"]
services-mini-moka = ["opendal/services-mini-moka"]
services-moka = ["opendal/services-moka"]
services-mongodb = ["opendal/services-mongodb"]
services-mysql = ["opendal/services-mysql"]
services-onedrive = ["opendal/services-onedrive"]
services-persy = ["opendal/services-persy"]
services-postgresql = ["opendal/services-postgresql"]
Expand All @@ -123,28 +126,25 @@ services-redis-rustls = ["opendal/services-redis-rustls"]
services-rocksdb = ["opendal/services-rocksdb"]
services-sftp = ["opendal/services-sftp"]
services-sled = ["opendal/services-sled"]
services-sqlite = ["opendal/services-sqlite"]
services-supabase = ["opendal/services-supabase"]
services-tikv = ["opendal/services-tikv"]
services-vercel-artifacts = ["opendal/services-vercel-artifacts"]
services-wasabi = ["opendal/services-wasabi"]
services-mysql = ["opendal/services-mysql"]
services-mongodb = ["opendal/services-mongodb"]
services-sqlite = ["opendal/services-sqlite"]
services-azfile = ["opendal/services-azfile"]

[dependencies]
anyhow = "1.0.71"
jni = "0.21.1"
num_cpus = "1.15.0"
once_cell = "1.17.1"
tokio = { version = "1.28.1", features = ["full"] }
opendal = { workspace = true }
tokio = { version = "1.28.1", features = ["full"] }

# This is not optimal. See also the Cargo issue:
# https://github.com/rust-lang/cargo/issues/1197#issuecomment-1641086954
[target.'cfg(unix)'.dependencies.opendal]
workspace = true
features = [
# Depend on "openssh" which depends on "tokio-pipe" that is unavailable on Windows.
"services-sftp",
]
workspace = true
39 changes: 20 additions & 19 deletions bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ repository.workspace = true
rust-version.workspace = true
version.workspace = true


[features]
# Enable all opendal default feature by default.
default = [
Expand All @@ -50,6 +49,7 @@ default = [
services-all = [
"default",

"services-azfile",
"services-cacache",
"services-dashmap",
"services-dropbox",
Expand Down Expand Up @@ -82,20 +82,21 @@ services-all = [
]

# Default services provided by opendal.
services-azblob = [ "opendal/services-azblob" ]
services-azdls = [ "opendal/services-azdls" ]
services-cos = [ "opendal/services-cos" ]
services-fs = [ "opendal/services-fs" ]
services-gcs = [ "opendal/services-gcs" ]
services-ghac = [ "opendal/services-ghac" ]
services-http = [ "opendal/services-http" ]
services-ipmfs = [ "opendal/services-ipmfs" ]
services-memory = [ "opendal/services-memory" ]
services-obs = [ "opendal/services-obs" ]
services-oss = [ "opendal/services-oss" ]
services-s3 = [ "opendal/services-s3" ]
services-webdav = [ "opendal/services-webdav" ]
services-webhdfs = [ "opendal/services-webhdfs" ]
services-azblob = ["opendal/services-azblob"]
services-azdls = ["opendal/services-azdls"]
services-azfile = ["opendal/services-azfile"]
services-cos = ["opendal/services-cos"]
services-fs = ["opendal/services-fs"]
services-gcs = ["opendal/services-gcs"]
services-ghac = ["opendal/services-ghac"]
services-http = ["opendal/services-http"]
services-ipmfs = ["opendal/services-ipmfs"]
services-memory = ["opendal/services-memory"]
services-obs = ["opendal/services-obs"]
services-oss = ["opendal/services-oss"]
services-s3 = ["opendal/services-s3"]
services-webdav = ["opendal/services-webdav"]
services-webhdfs = ["opendal/services-webhdfs"]

# Optional services provided by opendal.
services-cacache = ["opendal/services-cacache"]
Expand All @@ -110,6 +111,8 @@ services-ipfs = ["opendal/services-ipfs"]
services-memcached = ["opendal/services-memcached"]
services-mini-moka = ["opendal/services-mini-moka"]
services-moka = ["opendal/services-moka"]
services-mongodb = ["opendal/services-mongodb"]
services-mysql = ["opendal/services-mysql"]
services-onedrive = ["opendal/services-onedrive"]
services-persy = ["opendal/services-persy"]
services-postgresql = ["opendal/services-postgresql"]
Expand All @@ -119,13 +122,11 @@ services-redis-rustls = ["opendal/services-redis-rustls"]
services-rocksdb = ["opendal/services-rocksdb"]
services-sftp = ["opendal/services-sftp"]
services-sled = ["opendal/services-sled"]
services-sqlite = ["opendal/services-sqlite"]
services-supabase = ["opendal/services-supabase"]
services-tikv = ["opendal/services-tikv"]
services-vercel-artifacts = ["opendal/services-vercel-artifacts"]
services-wasabi = ["opendal/services-wasabi"]
services-mysql = ["opendal/services-mysql"]
services-mongodb = ["opendal/services-mongodb"]
services-sqlite = ["opendal/services-sqlite"]

[lib]
crate-type = ["cdylib"]
Expand All @@ -136,4 +137,4 @@ futures = "0.3.28"
opendal.workspace = true
pyo3 = "0.19"
pyo3-asyncio = { version = "0.19", features = ["tokio-runtime"] }
tokio = "1"
tokio = "1"
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ chrono = { version = "0.4.28", default-features = false, features = [
] }
dashmap = { version = "5.4", optional = true }
dirs = { version = "5.0.1", optional = true }
dotenvy = { version = "0.15", optional = true }
etcd-client = { version = "0.11", optional = true, features = ["tls"] }
flagset = "0.4"
foundationdb = { version = "0.8.0", features = [
Expand Down Expand Up @@ -295,7 +296,6 @@ tokio = "1.27"
tokio-postgres = { version = "0.7.8", optional = true }
tracing = { version = "0.1", optional = true }
uuid = { version = "1", features = ["serde", "v4"] }
dotenvy = { version = "0.15", optional = true }

[dev-dependencies]
criterion = { version = "0.4", features = ["async", "async_tokio"] }
Expand Down
6 changes: 3 additions & 3 deletions core/edge/file_write_on_full_disk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
# under the License.

[package]
name = "edge_test_file_write_on_full_disk"
edition = "2021"
version = "0.0.0"
name = "edge_test_file_write_on_full_disk"
publish = false
version = "0.0.0"

[dependencies]
futures = "0.3"
opendal = { workspace = true }
tokio = { version = "1", features = ["full"] }
rand = "0.8"
tokio = { version = "1", features = ["full"] }
2 changes: 1 addition & 1 deletion core/fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ dotenvy = "0.15.6"
libfuzzer-sys = "0.4"
opendal = { path = "..", features = ["tests"] }
tokio = { version = "1", features = ["full"] }
uuid = { version = "1", features = ["v4"] }
tracing-subscriber = { version = "0.3", features = [
"env-filter",
"tracing-log",
] }
uuid = { version = "1", features = ["v4"] }

[[bin]]
name = "fuzz_reader"
Expand Down
Loading