opendal 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/Cargo.lock +3448 -0
- data/Cargo.toml +1 -1
- data/DEPENDENCIES.rust.tsv +31 -31
- data/README.md +4 -1
- data/Rakefile +0 -7
- data/core/CHANGELOG.md +80 -0
- data/core/Cargo.lock +495 -599
- data/core/Cargo.toml +98 -95
- data/core/DEPENDENCIES.rust.tsv +319 -324
- data/core/NOTICE +5 -0
- data/core/README.md +11 -6
- data/core/benches/vs_fs/Cargo.toml +1 -1
- data/core/benches/vs_s3/Cargo.toml +1 -1
- data/core/core/Cargo.toml +2 -2
- data/core/core/LICENSE +201 -0
- data/core/core/NOTICE +5 -0
- data/core/core/README.md +93 -0
- data/core/core/src/blocking/delete.rs +2 -2
- data/core/core/src/blocking/list.rs +2 -1
- data/core/core/src/blocking/operator.rs +10 -5
- data/core/core/src/blocking/read/std_bytes_iterator.rs +2 -1
- data/core/core/src/blocking/read/std_reader.rs +2 -1
- data/core/core/src/blocking/write/std_writer.rs +1 -1
- data/core/core/src/docs/performance/http_optimization.md +9 -1
- data/core/core/src/docs/rfcs/7749_http_transporter.md +9 -5
- data/core/core/src/layers/mod.rs +6 -1
- data/core/core/src/lib.rs +2 -137
- data/core/core/src/raw/accessor.rs +23 -21
- data/core/core/src/raw/oio/buf/queue_buf.rs +4 -2
- data/core/core/src/raw/oio/write/block_write.rs +3 -2
- data/core/core/src/raw/operation.rs +5 -5
- data/core/core/src/raw/ops.rs +85 -63
- data/core/core/src/raw/std_io_util.rs +33 -1
- data/core/core/src/services/memory/backend.rs +0 -1
- data/core/core/src/services/memory/mod.rs +6 -2
- data/core/core/src/services/mod.rs +8 -2
- data/core/core/src/types/buffer.rs +4 -4
- data/core/core/src/types/builder.rs +15 -17
- data/core/core/src/types/copy.rs +3 -3
- data/core/core/src/types/entry.rs +3 -1
- data/core/core/src/types/error.rs +16 -11
- data/core/core/src/types/execute/executors/mod.rs +3 -3
- data/core/core/src/types/http_transport/mod.rs +6 -0
- data/core/core/src/types/list.rs +5 -6
- data/core/core/src/types/operator/info.rs +6 -4
- data/core/core/src/types/operator/mod.rs +1 -1
- data/core/core/src/types/operator/operator.rs +42 -8
- data/core/core/src/types/operator/operator_futures.rs +36 -38
- data/core/core/src/types/operator/registry.rs +73 -14
- data/core/core/src/types/options.rs +48 -42
- data/core/core/src/types/read/reader.rs +2 -1
- data/core/core/src/types/write/writer.rs +2 -1
- data/core/http-transports/reqwest/Cargo.toml +2 -1
- data/core/http-transports/reqwest/LICENSE +201 -0
- data/core/http-transports/reqwest/NOTICE +5 -0
- data/core/http-transports/reqwest/README.md +37 -9
- data/core/http-transports/reqwest/src/lib.rs +30 -51
- data/core/layers/async-backtrace/Cargo.toml +3 -2
- data/core/layers/async-backtrace/LICENSE +201 -0
- data/core/layers/async-backtrace/NOTICE +5 -0
- data/core/layers/async-backtrace/README.md +48 -0
- data/core/layers/async-backtrace/src/lib.rs +5 -5
- data/core/layers/await-tree/Cargo.toml +3 -2
- data/core/layers/await-tree/LICENSE +201 -0
- data/core/layers/await-tree/NOTICE +5 -0
- data/core/layers/await-tree/README.md +48 -0
- data/core/layers/await-tree/src/lib.rs +5 -6
- data/core/layers/capability-check/Cargo.toml +3 -2
- data/core/layers/capability-check/LICENSE +201 -0
- data/core/layers/capability-check/NOTICE +5 -0
- data/core/layers/capability-check/README.md +48 -0
- data/core/layers/capability-check/src/lib.rs +7 -8
- data/core/layers/chaos/Cargo.toml +3 -2
- data/core/layers/chaos/LICENSE +201 -0
- data/core/layers/chaos/NOTICE +5 -0
- data/core/layers/chaos/README.md +47 -0
- data/core/layers/chaos/src/lib.rs +6 -7
- data/core/layers/concurrent-limit/Cargo.toml +3 -2
- data/core/layers/concurrent-limit/LICENSE +201 -0
- data/core/layers/concurrent-limit/NOTICE +5 -0
- data/core/layers/concurrent-limit/README.md +48 -0
- data/core/layers/concurrent-limit/src/lib.rs +8 -14
- data/core/layers/dtrace/Cargo.toml +3 -2
- data/core/layers/dtrace/LICENSE +201 -0
- data/core/layers/dtrace/NOTICE +5 -0
- data/core/layers/dtrace/README.md +52 -0
- data/core/layers/dtrace/src/lib.rs +5 -5
- data/core/layers/fastmetrics/Cargo.toml +4 -3
- data/core/layers/fastmetrics/LICENSE +201 -0
- data/core/layers/fastmetrics/NOTICE +5 -0
- data/core/layers/fastmetrics/README.md +47 -0
- data/core/layers/fastmetrics/src/lib.rs +4 -4
- data/core/layers/fastrace/Cargo.toml +3 -2
- data/core/layers/fastrace/LICENSE +201 -0
- data/core/layers/fastrace/NOTICE +5 -0
- data/core/layers/fastrace/README.md +47 -0
- data/core/layers/fastrace/src/lib.rs +5 -5
- data/core/layers/foyer/Cargo.toml +3 -2
- data/core/layers/foyer/LICENSE +201 -0
- data/core/layers/foyer/NOTICE +5 -0
- data/core/layers/foyer/README.md +47 -0
- data/core/layers/foyer/src/deleter.rs +1 -0
- data/core/layers/foyer/src/lib.rs +27 -10
- data/core/layers/foyer/src/writer.rs +1 -0
- data/core/layers/hotpath/Cargo.toml +4 -3
- data/core/layers/hotpath/LICENSE +201 -0
- data/core/layers/hotpath/NOTICE +5 -0
- data/core/layers/hotpath/README.md +47 -0
- data/core/layers/hotpath/src/lib.rs +4 -4
- data/core/layers/immutable-index/Cargo.toml +3 -2
- data/core/layers/immutable-index/LICENSE +201 -0
- data/core/layers/immutable-index/NOTICE +5 -0
- data/core/layers/immutable-index/README.md +48 -0
- data/core/layers/immutable-index/src/lib.rs +3 -4
- data/core/layers/logging/Cargo.toml +3 -2
- data/core/layers/logging/LICENSE +201 -0
- data/core/layers/logging/NOTICE +5 -0
- data/core/layers/logging/README.md +47 -0
- data/core/layers/logging/src/lib.rs +11 -11
- data/core/layers/metrics/Cargo.toml +4 -3
- data/core/layers/metrics/LICENSE +201 -0
- data/core/layers/metrics/NOTICE +5 -0
- data/core/layers/metrics/README.md +47 -0
- data/core/layers/metrics/src/lib.rs +6 -6
- data/core/layers/mime-guess/Cargo.toml +3 -2
- data/core/layers/mime-guess/LICENSE +201 -0
- data/core/layers/mime-guess/NOTICE +5 -0
- data/core/layers/mime-guess/README.md +47 -0
- data/core/layers/mime-guess/src/lib.rs +13 -17
- data/core/layers/observe-metrics-common/Cargo.toml +2 -1
- data/core/layers/observe-metrics-common/LICENSE +201 -0
- data/core/layers/observe-metrics-common/NOTICE +5 -0
- data/core/layers/observe-metrics-common/README.md +27 -0
- data/core/layers/observe-metrics-common/src/lib.rs +15 -9
- data/core/layers/otelmetrics/Cargo.toml +4 -3
- data/core/layers/otelmetrics/LICENSE +201 -0
- data/core/layers/otelmetrics/NOTICE +5 -0
- data/core/layers/otelmetrics/README.md +47 -0
- data/core/layers/otelmetrics/src/lib.rs +4 -4
- data/core/layers/oteltrace/Cargo.toml +3 -2
- data/core/layers/oteltrace/LICENSE +201 -0
- data/core/layers/oteltrace/NOTICE +5 -0
- data/core/layers/oteltrace/README.md +48 -0
- data/core/layers/oteltrace/src/lib.rs +13 -4
- data/core/layers/prometheus/Cargo.toml +4 -3
- data/core/layers/prometheus/LICENSE +201 -0
- data/core/layers/prometheus/NOTICE +5 -0
- data/core/layers/prometheus/README.md +47 -0
- data/core/layers/prometheus/src/lib.rs +4 -4
- data/core/layers/prometheus-client/Cargo.toml +4 -3
- data/core/layers/prometheus-client/LICENSE +201 -0
- data/core/layers/prometheus-client/NOTICE +5 -0
- data/core/layers/prometheus-client/README.md +48 -0
- data/core/layers/prometheus-client/src/lib.rs +4 -4
- data/core/layers/retry/Cargo.toml +5 -4
- data/core/layers/retry/LICENSE +201 -0
- data/core/layers/retry/NOTICE +5 -0
- data/core/layers/retry/README.md +50 -0
- data/core/layers/retry/src/lib.rs +6 -7
- data/core/layers/route/Cargo.toml +4 -3
- data/core/layers/route/LICENSE +201 -0
- data/core/layers/route/NOTICE +5 -0
- data/core/layers/route/README.md +58 -0
- data/core/layers/route/src/lib.rs +39 -9
- data/core/layers/tail-cut/Cargo.toml +3 -2
- data/core/layers/tail-cut/LICENSE +201 -0
- data/core/layers/tail-cut/NOTICE +5 -0
- data/core/layers/tail-cut/README.md +47 -0
- data/core/layers/tail-cut/src/lib.rs +7 -9
- data/core/layers/throttle/Cargo.toml +3 -2
- data/core/layers/throttle/LICENSE +201 -0
- data/core/layers/throttle/NOTICE +5 -0
- data/core/layers/throttle/README.md +47 -0
- data/core/layers/throttle/src/lib.rs +5 -7
- data/core/layers/timeout/Cargo.toml +4 -3
- data/core/layers/timeout/LICENSE +201 -0
- data/core/layers/timeout/NOTICE +5 -0
- data/core/layers/timeout/README.md +50 -0
- data/core/layers/timeout/src/lib.rs +9 -10
- data/core/layers/tracing/Cargo.toml +3 -2
- data/core/layers/tracing/LICENSE +201 -0
- data/core/layers/tracing/NOTICE +5 -0
- data/core/layers/tracing/README.md +47 -0
- data/core/layers/tracing/src/lib.rs +4 -4
- data/core/services/aliyun-drive/Cargo.toml +2 -1
- data/core/services/aliyun-drive/LICENSE +201 -0
- data/core/services/aliyun-drive/NOTICE +5 -0
- data/core/services/aliyun-drive/README.md +56 -0
- data/core/services/aliyun-drive/src/backend.rs +2 -2
- data/core/services/aliyun-drive/src/docs.md +7 -9
- data/core/services/aliyun-drive/src/lib.rs +12 -2
- data/core/services/aliyun-drive/src/lister.rs +2 -2
- data/core/services/alluxio/Cargo.toml +2 -1
- data/core/services/alluxio/LICENSE +201 -0
- data/core/services/alluxio/NOTICE +5 -0
- data/core/services/alluxio/README.md +56 -0
- data/core/services/alluxio/src/backend.rs +3 -3
- data/core/services/alluxio/src/docs.md +7 -5
- data/core/services/alluxio/src/lib.rs +12 -2
- data/core/services/azblob/Cargo.toml +6 -5
- data/core/services/azblob/LICENSE +201 -0
- data/core/services/azblob/NOTICE +5 -0
- data/core/services/azblob/README.md +56 -0
- data/core/services/azblob/src/backend.rs +3 -3
- data/core/services/azblob/src/core.rs +3 -3
- data/core/services/azblob/src/docs.md +7 -9
- data/core/services/azblob/src/lib.rs +14 -2
- data/core/services/azdls/Cargo.toml +6 -5
- data/core/services/azdls/LICENSE +201 -0
- data/core/services/azdls/NOTICE +5 -0
- data/core/services/azdls/README.md +56 -0
- data/core/services/azdls/src/backend.rs +3 -3
- data/core/services/azdls/src/docs.md +7 -8
- data/core/services/azdls/src/lib.rs +12 -2
- data/core/services/azdls/src/lister.rs +1 -1
- data/core/services/azfile/Cargo.toml +6 -5
- data/core/services/azfile/LICENSE +201 -0
- data/core/services/azfile/NOTICE +5 -0
- data/core/services/azfile/README.md +56 -0
- data/core/services/azfile/src/backend.rs +2 -2
- data/core/services/azfile/src/docs.md +7 -8
- data/core/services/azfile/src/lib.rs +12 -2
- data/core/services/azure-common/Cargo.toml +2 -1
- data/core/services/azure-common/LICENSE +201 -0
- data/core/services/azure-common/NOTICE +5 -0
- data/core/services/azure-common/README.md +26 -0
- data/core/services/azure-common/src/lib.rs +2 -5
- data/core/services/b2/Cargo.toml +2 -1
- data/core/services/b2/LICENSE +201 -0
- data/core/services/b2/NOTICE +5 -0
- data/core/services/b2/README.md +56 -0
- data/core/services/b2/src/backend.rs +4 -4
- data/core/services/b2/src/docs.md +7 -8
- data/core/services/b2/src/lib.rs +9 -3
- data/core/services/cacache/Cargo.toml +2 -1
- data/core/services/cacache/LICENSE +201 -0
- data/core/services/cacache/NOTICE +5 -0
- data/core/services/cacache/README.md +56 -0
- data/core/services/cacache/src/backend.rs +0 -1
- data/core/services/cacache/src/docs.md +7 -4
- data/core/services/cacache/src/lib.rs +9 -4
- data/core/services/cloudflare-kv/Cargo.toml +2 -1
- data/core/services/cloudflare-kv/LICENSE +201 -0
- data/core/services/cloudflare-kv/NOTICE +5 -0
- data/core/services/cloudflare-kv/README.md +56 -0
- data/core/services/cloudflare-kv/src/backend.rs +0 -2
- data/core/services/cloudflare-kv/src/docs.md +7 -5
- data/core/services/cloudflare-kv/src/lib.rs +9 -3
- data/core/services/compfs/Cargo.toml +2 -1
- data/core/services/compfs/LICENSE +201 -0
- data/core/services/compfs/NOTICE +5 -0
- data/core/services/compfs/README.md +58 -0
- data/core/services/compfs/src/lib.rs +9 -3
- data/core/services/cos/Cargo.toml +5 -4
- data/core/services/cos/LICENSE +201 -0
- data/core/services/cos/NOTICE +5 -0
- data/core/services/cos/README.md +56 -0
- data/core/services/cos/src/backend.rs +4 -4
- data/core/services/cos/src/docs.md +7 -9
- data/core/services/cos/src/lib.rs +12 -2
- data/core/services/d1/Cargo.toml +2 -1
- data/core/services/d1/LICENSE +201 -0
- data/core/services/d1/NOTICE +5 -0
- data/core/services/d1/README.md +56 -0
- data/core/services/d1/src/docs.md +7 -8
- data/core/services/d1/src/lib.rs +9 -3
- data/core/services/dashmap/Cargo.toml +2 -1
- data/core/services/dashmap/LICENSE +201 -0
- data/core/services/dashmap/NOTICE +5 -0
- data/core/services/dashmap/README.md +56 -0
- data/core/services/dashmap/src/backend.rs +1 -2
- data/core/services/dashmap/src/docs.md +7 -4
- data/core/services/dashmap/src/lib.rs +9 -4
- data/core/services/dbfs/Cargo.toml +2 -1
- data/core/services/dbfs/LICENSE +201 -0
- data/core/services/dbfs/NOTICE +5 -0
- data/core/services/dbfs/README.md +56 -0
- data/core/services/dbfs/src/backend.rs +2 -2
- data/core/services/dbfs/src/core.rs +1 -1
- data/core/services/dbfs/src/docs.md +7 -6
- data/core/services/dbfs/src/lib.rs +9 -4
- data/core/services/dbfs/src/lister.rs +1 -1
- data/core/services/dropbox/Cargo.toml +2 -1
- data/core/services/dropbox/LICENSE +201 -0
- data/core/services/dropbox/NOTICE +5 -0
- data/core/services/dropbox/README.md +56 -0
- data/core/services/dropbox/src/docs.md +7 -4
- data/core/services/dropbox/src/lib.rs +9 -4
- data/core/services/etcd/Cargo.toml +2 -1
- data/core/services/etcd/LICENSE +201 -0
- data/core/services/etcd/NOTICE +5 -0
- data/core/services/etcd/README.md +56 -0
- data/core/services/etcd/src/docs.md +7 -10
- data/core/services/etcd/src/lib.rs +9 -4
- data/core/services/foundationdb/Cargo.toml +2 -1
- data/core/services/foundationdb/LICENSE +201 -0
- data/core/services/foundationdb/NOTICE +5 -0
- data/core/services/foundationdb/README.md +56 -0
- data/core/services/foundationdb/src/docs.md +7 -5
- data/core/services/foundationdb/src/lib.rs +9 -4
- data/core/services/foyer/Cargo.toml +4 -3
- data/core/services/foyer/LICENSE +201 -0
- data/core/services/foyer/NOTICE +5 -0
- data/core/services/foyer/README.md +57 -0
- data/core/services/foyer/src/backend.rs +1 -1
- data/core/services/foyer/src/docs.md +12 -1
- data/core/services/foyer/src/lib.rs +9 -11
- data/core/services/fs/Cargo.toml +2 -1
- data/core/services/fs/LICENSE +201 -0
- data/core/services/fs/NOTICE +5 -0
- data/core/services/fs/README.md +56 -0
- data/core/services/fs/src/backend.rs +1 -1
- data/core/services/fs/src/docs.md +7 -5
- data/core/services/fs/src/lib.rs +9 -3
- data/core/services/ftp/Cargo.toml +2 -1
- data/core/services/ftp/LICENSE +201 -0
- data/core/services/ftp/NOTICE +5 -0
- data/core/services/ftp/README.md +56 -0
- data/core/services/ftp/src/backend.rs +1 -1
- data/core/services/ftp/src/docs.md +7 -7
- data/core/services/ftp/src/lib.rs +12 -2
- data/core/services/ftp/src/lister.rs +1 -1
- data/core/services/gcs/Cargo.toml +5 -4
- data/core/services/gcs/LICENSE +201 -0
- data/core/services/gcs/NOTICE +5 -0
- data/core/services/gcs/README.md +56 -0
- data/core/services/gcs/src/core.rs +55 -1
- data/core/services/gcs/src/docs.md +7 -13
- data/core/services/gcs/src/lib.rs +9 -3
- data/core/services/gcs/src/writer.rs +5 -12
- data/core/services/gdrive/Cargo.toml +2 -1
- data/core/services/gdrive/LICENSE +201 -0
- data/core/services/gdrive/NOTICE +5 -0
- data/core/services/gdrive/README.md +56 -0
- data/core/services/gdrive/src/docs.md +8 -5
- data/core/services/gdrive/src/lib.rs +12 -2
- data/core/services/gdrive/src/lister.rs +6 -6
- data/core/services/ghac/Cargo.toml +5 -4
- data/core/services/ghac/LICENSE +201 -0
- data/core/services/ghac/NOTICE +5 -0
- data/core/services/ghac/README.md +56 -0
- data/core/services/ghac/src/docs.md +7 -4
- data/core/services/ghac/src/lib.rs +12 -2
- data/core/services/github/Cargo.toml +2 -1
- data/core/services/github/LICENSE +201 -0
- data/core/services/github/NOTICE +5 -0
- data/core/services/github/README.md +56 -0
- data/core/services/github/src/backend.rs +4 -4
- data/core/services/github/src/docs.md +7 -8
- data/core/services/github/src/lib.rs +12 -2
- data/core/services/goosefs/Cargo.toml +4 -3
- data/core/services/goosefs/LICENSE +201 -0
- data/core/services/goosefs/NOTICE +5 -0
- data/core/services/goosefs/README.md +56 -0
- data/core/services/goosefs/src/backend.rs +31 -12
- data/core/services/goosefs/src/config.rs +1 -1
- data/core/services/goosefs/src/core.rs +72 -25
- data/core/services/goosefs/src/docs.md +10 -10
- data/core/services/goosefs/src/lib.rs +12 -2
- data/core/services/goosefs/src/writer.rs +24 -20
- data/core/services/goosefs/tests/safe_conditional_put.rs +199 -0
- data/core/services/gridfs/Cargo.toml +2 -1
- data/core/services/gridfs/LICENSE +201 -0
- data/core/services/gridfs/NOTICE +5 -0
- data/core/services/gridfs/README.md +56 -0
- data/core/services/gridfs/src/docs.md +7 -6
- data/core/services/gridfs/src/lib.rs +9 -4
- data/core/services/hdfs/Cargo.toml +2 -1
- data/core/services/hdfs/LICENSE +201 -0
- data/core/services/hdfs/NOTICE +5 -0
- data/core/services/hdfs/README.md +58 -0
- data/core/services/hdfs/src/backend.rs +1 -1
- data/core/services/hdfs/src/docs.md +9 -9
- data/core/services/hdfs/src/lib.rs +12 -2
- data/core/services/hdfs-native/Cargo.toml +3 -2
- data/core/services/hdfs-native/LICENSE +201 -0
- data/core/services/hdfs-native/NOTICE +5 -0
- data/core/services/hdfs-native/README.md +56 -0
- data/core/services/hdfs-native/src/backend.rs +3 -2
- data/core/services/hdfs-native/src/docs.md +7 -4
- data/core/services/hdfs-native/src/lib.rs +12 -2
- data/core/services/hdfs-native/src/writer.rs +1 -1
- data/core/services/hf/Cargo.toml +3 -2
- data/core/services/hf/LICENSE +201 -0
- data/core/services/hf/NOTICE +5 -0
- data/core/services/hf/README.md +56 -0
- data/core/services/hf/src/backend.rs +11 -9
- data/core/services/hf/src/config.rs +1 -1
- data/core/services/hf/src/core.rs +12 -12
- data/core/services/hf/src/docs.md +11 -12
- data/core/services/hf/src/lib.rs +13 -3
- data/core/services/hf/src/lister.rs +1 -1
- data/core/services/http/Cargo.toml +4 -3
- data/core/services/http/LICENSE +201 -0
- data/core/services/http/NOTICE +5 -0
- data/core/services/http/README.md +56 -0
- data/core/services/http/src/backend.rs +1 -1
- data/core/services/http/src/docs.md +7 -5
- data/core/services/http/src/lib.rs +10 -4
- data/core/services/ipfs/Cargo.toml +2 -1
- data/core/services/ipfs/LICENSE +201 -0
- data/core/services/ipfs/NOTICE +5 -0
- data/core/services/ipfs/README.md +56 -0
- data/core/services/ipfs/src/backend.rs +2 -2
- data/core/services/ipfs/src/docs.md +7 -5
- data/core/services/ipfs/src/lib.rs +9 -3
- data/core/services/ipmfs/Cargo.toml +2 -1
- data/core/services/ipmfs/LICENSE +201 -0
- data/core/services/ipmfs/NOTICE +5 -0
- data/core/services/ipmfs/README.md +56 -0
- data/core/services/ipmfs/src/docs.md +10 -1
- data/core/services/ipmfs/src/lib.rs +12 -2
- data/core/services/ipmfs/src/lister.rs +2 -2
- data/core/services/koofr/Cargo.toml +2 -1
- data/core/services/koofr/LICENSE +201 -0
- data/core/services/koofr/NOTICE +5 -0
- data/core/services/koofr/README.md +56 -0
- data/core/services/koofr/src/backend.rs +4 -4
- data/core/services/koofr/src/docs.md +7 -7
- data/core/services/koofr/src/lib.rs +12 -2
- data/core/services/lakefs/Cargo.toml +2 -1
- data/core/services/lakefs/LICENSE +201 -0
- data/core/services/lakefs/NOTICE +5 -0
- data/core/services/lakefs/README.md +56 -0
- data/core/services/lakefs/src/backend.rs +5 -5
- data/core/services/lakefs/src/docs.md +7 -9
- data/core/services/lakefs/src/lib.rs +9 -4
- data/core/services/lakefs/src/lister.rs +1 -1
- data/core/services/memcached/Cargo.toml +3 -2
- data/core/services/memcached/LICENSE +201 -0
- data/core/services/memcached/NOTICE +5 -0
- data/core/services/memcached/README.md +56 -0
- data/core/services/memcached/src/docs.md +7 -8
- data/core/services/memcached/src/lib.rs +9 -4
- data/core/services/mini_moka/Cargo.toml +2 -1
- data/core/services/mini_moka/LICENSE +201 -0
- data/core/services/mini_moka/NOTICE +5 -0
- data/core/services/mini_moka/README.md +56 -0
- data/core/services/mini_moka/src/backend.rs +1 -1
- data/core/services/mini_moka/src/docs.md +10 -1
- data/core/services/mini_moka/src/lib.rs +9 -4
- data/core/services/moka/Cargo.toml +2 -1
- data/core/services/moka/LICENSE +201 -0
- data/core/services/moka/NOTICE +5 -0
- data/core/services/moka/README.md +56 -0
- data/core/services/moka/src/backend.rs +1 -2
- data/core/services/moka/src/docs.md +7 -7
- data/core/services/moka/src/lib.rs +9 -3
- data/core/services/mongodb/Cargo.toml +2 -1
- data/core/services/mongodb/LICENSE +201 -0
- data/core/services/mongodb/NOTICE +5 -0
- data/core/services/mongodb/README.md +56 -0
- data/core/services/mongodb/src/docs.md +7 -7
- data/core/services/mongodb/src/lib.rs +12 -2
- data/core/services/monoiofs/Cargo.toml +2 -1
- data/core/services/monoiofs/LICENSE +201 -0
- data/core/services/monoiofs/NOTICE +5 -0
- data/core/services/monoiofs/README.md +58 -0
- data/core/services/monoiofs/src/docs.md +7 -4
- data/core/services/monoiofs/src/lib.rs +9 -4
- data/core/services/mysql/Cargo.toml +2 -1
- data/core/services/mysql/LICENSE +201 -0
- data/core/services/mysql/NOTICE +5 -0
- data/core/services/mysql/README.md +56 -0
- data/core/services/mysql/src/docs.md +7 -6
- data/core/services/mysql/src/lib.rs +12 -2
- data/core/services/obs/Cargo.toml +5 -4
- data/core/services/obs/LICENSE +201 -0
- data/core/services/obs/NOTICE +5 -0
- data/core/services/obs/README.md +56 -0
- data/core/services/obs/src/backend.rs +4 -4
- data/core/services/obs/src/docs.md +7 -9
- data/core/services/obs/src/lib.rs +12 -2
- data/core/services/onedrive/Cargo.toml +2 -1
- data/core/services/onedrive/LICENSE +201 -0
- data/core/services/onedrive/NOTICE +5 -0
- data/core/services/onedrive/README.md +56 -0
- data/core/services/onedrive/src/docs.md +10 -10
- data/core/services/onedrive/src/lib.rs +9 -3
- data/core/services/opfs/Cargo.toml +4 -1
- data/core/services/opfs/LICENSE +201 -0
- data/core/services/opfs/NOTICE +5 -0
- data/core/services/opfs/README.md +63 -0
- data/core/services/opfs/src/core.rs +2 -0
- data/core/services/opfs/src/docs.md +7 -1
- data/core/services/opfs/src/lib.rs +11 -2
- data/core/services/oss/Cargo.toml +5 -4
- data/core/services/oss/LICENSE +201 -0
- data/core/services/oss/NOTICE +5 -0
- data/core/services/oss/README.md +56 -0
- data/core/services/oss/src/backend.rs +4 -4
- data/core/services/oss/src/docs.md +10 -22
- data/core/services/oss/src/lib.rs +9 -3
- data/core/services/pcloud/Cargo.toml +2 -1
- data/core/services/pcloud/LICENSE +201 -0
- data/core/services/pcloud/NOTICE +5 -0
- data/core/services/pcloud/README.md +56 -0
- data/core/services/pcloud/src/backend.rs +3 -3
- data/core/services/pcloud/src/docs.md +7 -7
- data/core/services/pcloud/src/lib.rs +9 -3
- data/core/services/persy/Cargo.toml +2 -1
- data/core/services/persy/LICENSE +201 -0
- data/core/services/persy/NOTICE +5 -0
- data/core/services/persy/README.md +56 -0
- data/core/services/persy/src/backend.rs +0 -1
- data/core/services/persy/src/docs.md +7 -6
- data/core/services/persy/src/lib.rs +9 -3
- data/core/services/postgresql/Cargo.toml +2 -1
- data/core/services/postgresql/LICENSE +201 -0
- data/core/services/postgresql/NOTICE +5 -0
- data/core/services/postgresql/README.md +56 -0
- data/core/services/postgresql/src/docs.md +7 -6
- data/core/services/postgresql/src/lib.rs +12 -2
- data/core/services/redb/Cargo.toml +2 -1
- data/core/services/redb/LICENSE +201 -0
- data/core/services/redb/NOTICE +5 -0
- data/core/services/redb/README.md +56 -0
- data/core/services/redb/src/backend.rs +0 -1
- data/core/services/redb/src/docs.md +7 -5
- data/core/services/redb/src/lib.rs +9 -3
- data/core/services/redis/Cargo.toml +2 -1
- data/core/services/redis/LICENSE +201 -0
- data/core/services/redis/NOTICE +5 -0
- data/core/services/redis/README.md +56 -0
- data/core/services/redis/src/docs.md +7 -9
- data/core/services/redis/src/lib.rs +9 -4
- data/core/services/rocksdb/Cargo.toml +2 -1
- data/core/services/rocksdb/LICENSE +201 -0
- data/core/services/rocksdb/NOTICE +5 -0
- data/core/services/rocksdb/README.md +56 -0
- data/core/services/rocksdb/src/backend.rs +0 -1
- data/core/services/rocksdb/src/docs.md +7 -5
- data/core/services/rocksdb/src/lib.rs +12 -2
- data/core/services/s3/Cargo.toml +5 -4
- data/core/services/s3/LICENSE +201 -0
- data/core/services/s3/NOTICE +5 -0
- data/core/services/s3/README.md +56 -0
- data/core/services/s3/src/backend.rs +60 -7
- data/core/services/s3/src/compatible_services.md +10 -2
- data/core/services/s3/src/core.rs +16 -8
- data/core/services/s3/src/docs.md +7 -28
- data/core/services/s3/src/lib.rs +9 -3
- data/core/services/seafile/Cargo.toml +2 -1
- data/core/services/seafile/LICENSE +201 -0
- data/core/services/seafile/NOTICE +5 -0
- data/core/services/seafile/README.md +56 -0
- data/core/services/seafile/src/backend.rs +3 -3
- data/core/services/seafile/src/docs.md +7 -8
- data/core/services/seafile/src/lib.rs +12 -2
- data/core/services/sftp/Cargo.toml +2 -1
- data/core/services/sftp/LICENSE +201 -0
- data/core/services/sftp/NOTICE +5 -0
- data/core/services/sftp/README.md +56 -0
- data/core/services/sftp/src/backend.rs +2 -2
- data/core/services/sftp/src/docs.md +7 -9
- data/core/services/sftp/src/lib.rs +9 -4
- data/core/services/sled/Cargo.toml +2 -1
- data/core/services/sled/LICENSE +201 -0
- data/core/services/sled/NOTICE +5 -0
- data/core/services/sled/README.md +56 -0
- data/core/services/sled/src/backend.rs +0 -1
- data/core/services/sled/src/docs.md +7 -4
- data/core/services/sled/src/lib.rs +12 -2
- data/core/services/sqlite/Cargo.toml +2 -1
- data/core/services/sqlite/LICENSE +201 -0
- data/core/services/sqlite/NOTICE +5 -0
- data/core/services/sqlite/README.md +56 -0
- data/core/services/sqlite/src/backend.rs +0 -1
- data/core/services/sqlite/src/docs.md +7 -6
- data/core/services/sqlite/src/lib.rs +12 -2
- data/core/services/surrealdb/Cargo.toml +2 -1
- data/core/services/surrealdb/LICENSE +201 -0
- data/core/services/surrealdb/NOTICE +5 -0
- data/core/services/surrealdb/README.md +56 -0
- data/core/services/surrealdb/src/docs.md +8 -10
- data/core/services/surrealdb/src/lib.rs +9 -3
- data/core/services/swift/Cargo.toml +2 -1
- data/core/services/swift/LICENSE +201 -0
- data/core/services/swift/NOTICE +5 -0
- data/core/services/swift/README.md +56 -0
- data/core/services/swift/src/backend.rs +2 -2
- data/core/services/swift/src/core.rs +24 -24
- data/core/services/swift/src/deleter.rs +1 -1
- data/core/services/swift/src/docs.md +7 -6
- data/core/services/swift/src/lib.rs +9 -4
- data/core/services/swift/src/writer.rs +1 -1
- data/core/services/tikv/Cargo.toml +2 -1
- data/core/services/tikv/LICENSE +201 -0
- data/core/services/tikv/NOTICE +5 -0
- data/core/services/tikv/README.md +56 -0
- data/core/services/tikv/src/backend.rs +1 -1
- data/core/services/tikv/src/docs.md +7 -8
- data/core/services/tikv/src/lib.rs +12 -2
- data/core/services/tos/Cargo.toml +5 -4
- data/core/services/tos/LICENSE +201 -0
- data/core/services/tos/NOTICE +5 -0
- data/core/services/tos/README.md +56 -0
- data/core/services/tos/src/docs.md +7 -10
- data/core/services/tos/src/lib.rs +9 -3
- data/core/services/upyun/Cargo.toml +2 -1
- data/core/services/upyun/LICENSE +201 -0
- data/core/services/upyun/NOTICE +5 -0
- data/core/services/upyun/README.md +56 -0
- data/core/services/upyun/src/backend.rs +3 -3
- data/core/services/upyun/src/docs.md +7 -7
- data/core/services/upyun/src/lib.rs +9 -4
- data/core/services/vercel-artifacts/Cargo.toml +2 -1
- data/core/services/vercel-artifacts/LICENSE +201 -0
- data/core/services/vercel-artifacts/NOTICE +5 -0
- data/core/services/vercel-artifacts/README.md +56 -0
- data/core/services/vercel-artifacts/src/docs.md +7 -7
- data/core/services/vercel-artifacts/src/lib.rs +11 -3
- data/core/services/vercel-blob/Cargo.toml +2 -1
- data/core/services/vercel-blob/LICENSE +201 -0
- data/core/services/vercel-blob/NOTICE +5 -0
- data/core/services/vercel-blob/README.md +56 -0
- data/core/services/vercel-blob/src/backend.rs +2 -2
- data/core/services/vercel-blob/src/docs.md +7 -5
- data/core/services/vercel-blob/src/lib.rs +12 -2
- data/core/services/webdav/Cargo.toml +2 -1
- data/core/services/webdav/LICENSE +201 -0
- data/core/services/webdav/NOTICE +5 -0
- data/core/services/webdav/README.md +56 -0
- data/core/services/webdav/src/backend.rs +1 -1
- data/core/services/webdav/src/docs.md +7 -7
- data/core/services/webdav/src/lib.rs +12 -2
- data/core/services/webhdfs/Cargo.toml +2 -1
- data/core/services/webhdfs/LICENSE +201 -0
- data/core/services/webhdfs/NOTICE +5 -0
- data/core/services/webhdfs/README.md +56 -0
- data/core/services/webhdfs/src/docs.md +11 -9
- data/core/services/webhdfs/src/lib.rs +12 -2
- data/core/services/yandex-disk/Cargo.toml +2 -1
- data/core/services/yandex-disk/LICENSE +201 -0
- data/core/services/yandex-disk/NOTICE +5 -0
- data/core/services/yandex-disk/README.md +56 -0
- data/core/services/yandex-disk/src/backend.rs +2 -2
- data/core/services/yandex-disk/src/docs.md +7 -5
- data/core/services/yandex-disk/src/lib.rs +9 -3
- data/core/src/lib.rs +30 -4
- data/core/testkit/Cargo.toml +5 -4
- data/core/testkit/LICENSE +201 -0
- data/core/testkit/NOTICE +5 -0
- data/core/testkit/README.md +25 -0
- data/core/testkit/src/lib.rs +4 -2
- data/core/testkit/src/read.rs +12 -13
- data/core/testkit/src/write.rs +12 -13
- data/core/tests/behavior/async_list.rs +2 -2
- data/core/tests/behavior/async_presign.rs +4 -4
- data/core/tests/behavior/async_stat.rs +1 -1
- data/core/tests/behavior/async_write.rs +1 -1
- data/core/users.md +2 -0
- data/opendal.gemspec +5 -1
- metadata +283 -2
|
@@ -725,7 +725,7 @@ impl Builder for S3Builder {
|
|
|
725
725
|
type Config = S3Config;
|
|
726
726
|
|
|
727
727
|
fn build(self) -> Result<impl Service> {
|
|
728
|
-
debug!("backend build started: {:?}",
|
|
728
|
+
debug!("backend build started: {:?}", self);
|
|
729
729
|
|
|
730
730
|
let S3Builder {
|
|
731
731
|
mut config,
|
|
@@ -738,7 +738,7 @@ impl Builder for S3Builder {
|
|
|
738
738
|
}
|
|
739
739
|
|
|
740
740
|
let root = normalize_root(&config.root.clone().unwrap_or_default());
|
|
741
|
-
debug!("backend use root {}",
|
|
741
|
+
debug!("backend use root {}", root);
|
|
742
742
|
|
|
743
743
|
// Handle bucket name.
|
|
744
744
|
let bucket = if Self::is_bucket_valid(&config) {
|
|
@@ -749,7 +749,7 @@ impl Builder for S3Builder {
|
|
|
749
749
|
.with_context("service", S3_SCHEME),
|
|
750
750
|
)
|
|
751
751
|
}?;
|
|
752
|
-
debug!("backend use bucket {}",
|
|
752
|
+
debug!("backend use bucket {}", bucket);
|
|
753
753
|
|
|
754
754
|
let default_storage_class = match &config.default_storage_class {
|
|
755
755
|
None => None,
|
|
@@ -1006,6 +1006,7 @@ impl Builder for S3Builder {
|
|
|
1006
1006
|
presign_stat: true,
|
|
1007
1007
|
presign_read: true,
|
|
1008
1008
|
presign_write: true,
|
|
1009
|
+
presign_delete: true,
|
|
1009
1010
|
|
|
1010
1011
|
shared: true,
|
|
1011
1012
|
|
|
@@ -1209,10 +1210,7 @@ impl Service for S3Backend {
|
|
|
1209
1210
|
self.core
|
|
1210
1211
|
.s3_put_object_request(path, None, &v, Buffer::new())
|
|
1211
1212
|
}
|
|
1212
|
-
PresignOperation::Delete(
|
|
1213
|
-
ErrorKind::Unsupported,
|
|
1214
|
-
"operation is not supported",
|
|
1215
|
-
)),
|
|
1213
|
+
PresignOperation::Delete(v) => self.core.s3_delete_object_request(path, &v),
|
|
1216
1214
|
_ => Err(Error::new(
|
|
1217
1215
|
ErrorKind::Unsupported,
|
|
1218
1216
|
"operation is not supported",
|
|
@@ -1361,4 +1359,59 @@ mod tests {
|
|
|
1361
1359
|
"application/json"
|
|
1362
1360
|
);
|
|
1363
1361
|
}
|
|
1362
|
+
|
|
1363
|
+
#[tokio::test]
|
|
1364
|
+
async fn test_presign_stat_encodes_version_id() {
|
|
1365
|
+
let backend = S3Builder::default()
|
|
1366
|
+
.bucket("test")
|
|
1367
|
+
.region("us-east-1")
|
|
1368
|
+
.skip_signature()
|
|
1369
|
+
.disable_config_load()
|
|
1370
|
+
.disable_ec2_metadata()
|
|
1371
|
+
.build()
|
|
1372
|
+
.expect("build");
|
|
1373
|
+
|
|
1374
|
+
let op = OpStat::default().with_version("a+b/c=d%25&e");
|
|
1375
|
+
let args = OpPresign::new(op, Duration::from_secs(3600));
|
|
1376
|
+
let ctx = OperationContext::new();
|
|
1377
|
+
let presigned = backend
|
|
1378
|
+
.presign(&ctx, "test.txt", args)
|
|
1379
|
+
.await
|
|
1380
|
+
.expect("presign")
|
|
1381
|
+
.into_presigned_request();
|
|
1382
|
+
|
|
1383
|
+
assert_eq!(
|
|
1384
|
+
presigned.uri().to_string(),
|
|
1385
|
+
"https://s3.us-east-1.amazonaws.com/test/test.txt?versionId=a%2Bb/c%3Dd%2525%26e"
|
|
1386
|
+
);
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
#[tokio::test]
|
|
1390
|
+
async fn test_presign_read_encodes_version_id() {
|
|
1391
|
+
let backend = S3Builder::default()
|
|
1392
|
+
.bucket("test")
|
|
1393
|
+
.region("us-east-1")
|
|
1394
|
+
.skip_signature()
|
|
1395
|
+
.disable_config_load()
|
|
1396
|
+
.disable_ec2_metadata()
|
|
1397
|
+
.build()
|
|
1398
|
+
.expect("build");
|
|
1399
|
+
|
|
1400
|
+
let op = OpRead::default().with_version("a+b/c=d%25&e");
|
|
1401
|
+
let args = OpPresign::new(
|
|
1402
|
+
PresignOperation::Read(BytesRange::default(), op),
|
|
1403
|
+
Duration::from_secs(3600),
|
|
1404
|
+
);
|
|
1405
|
+
let ctx = OperationContext::new();
|
|
1406
|
+
let presigned = backend
|
|
1407
|
+
.presign(&ctx, "test.txt", args)
|
|
1408
|
+
.await
|
|
1409
|
+
.expect("presign")
|
|
1410
|
+
.into_presigned_request();
|
|
1411
|
+
|
|
1412
|
+
assert_eq!(
|
|
1413
|
+
presigned.uri().to_string(),
|
|
1414
|
+
"https://s3.us-east-1.amazonaws.com/test/test.txt?versionId=a%2Bb/c%3Dd%2525%26e"
|
|
1415
|
+
);
|
|
1416
|
+
}
|
|
1364
1417
|
}
|
|
@@ -89,18 +89,26 @@ To connect to COS, we need to set:
|
|
|
89
89
|
|
|
90
90
|
[Tigris](https://www.tigrisdata.com/) is a globally distributed S3-compatible object storage service.
|
|
91
91
|
|
|
92
|
+
> Tigris serves data from the region nearest to the requester through a single global endpoint, and charges no egress fees.
|
|
93
|
+
|
|
92
94
|
To connect to Tigris, we need to set:
|
|
93
95
|
|
|
94
|
-
- `endpoint`: The endpoint of Tigris
|
|
96
|
+
- `endpoint`: The endpoint of Tigris: `https://t3.storage.dev`
|
|
95
97
|
- `region`: The region of Tigris. Please set it to `auto`.
|
|
96
98
|
- `bucket`: The bucket name of Tigris.
|
|
97
99
|
|
|
100
|
+
Credentials are standard S3 access keys, provided via `access_key_id`/`secret_access_key` or the `AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY` environment variables. See [Tigris S3 SDK docs](https://www.tigrisdata.com/docs/sdks/s3/) for details.
|
|
101
|
+
|
|
98
102
|
```rust,ignore
|
|
99
|
-
builder.endpoint("https://
|
|
103
|
+
builder.endpoint("https://t3.storage.dev");
|
|
100
104
|
builder.region("auto");
|
|
101
105
|
builder.bucket("<bucket_name>");
|
|
102
106
|
```
|
|
103
107
|
|
|
108
|
+
> `https://fly.storage.tigris.dev` is a legacy endpoint that still works, but `https://t3.storage.dev` is the current one.
|
|
109
|
+
|
|
110
|
+
Tigris buckets support zero-copy [snapshots and forks](https://www.tigrisdata.com/docs/snapshots-and-forks/). A forked bucket is a regular bucket, so it can be read and written through OpenDAL like any other — useful for testing against production data without copying it.
|
|
111
|
+
|
|
104
112
|
### Wasabi Object Storage
|
|
105
113
|
|
|
106
114
|
[Wasabi](https://wasabi.com/) is a s3 compatible service.
|
|
@@ -420,7 +420,7 @@ impl S3Core {
|
|
|
420
420
|
query_args.push(format!(
|
|
421
421
|
"{}={}",
|
|
422
422
|
constants::S3_QUERY_VERSION_ID,
|
|
423
|
-
|
|
423
|
+
percent_encode_path(version)
|
|
424
424
|
))
|
|
425
425
|
}
|
|
426
426
|
if !query_args.is_empty() {
|
|
@@ -496,7 +496,7 @@ impl S3Core {
|
|
|
496
496
|
query_args.push(format!(
|
|
497
497
|
"{}={}",
|
|
498
498
|
constants::S3_QUERY_VERSION_ID,
|
|
499
|
-
|
|
499
|
+
percent_encode_path(version)
|
|
500
500
|
))
|
|
501
501
|
}
|
|
502
502
|
if !query_args.is_empty() {
|
|
@@ -646,12 +646,7 @@ impl S3Core {
|
|
|
646
646
|
self.send(ctx, req).await
|
|
647
647
|
}
|
|
648
648
|
|
|
649
|
-
pub
|
|
650
|
-
&self,
|
|
651
|
-
ctx: &OperationContext,
|
|
652
|
-
path: &str,
|
|
653
|
-
args: &OpDelete,
|
|
654
|
-
) -> Result<Response<Buffer>> {
|
|
649
|
+
pub fn s3_delete_object_request(&self, path: &str, args: &OpDelete) -> Result<Request<Buffer>> {
|
|
655
650
|
let p = build_abs_path(&self.root, path);
|
|
656
651
|
|
|
657
652
|
let mut url = format!("{}/{}", self.endpoint, percent_encode_path(&p));
|
|
@@ -682,6 +677,16 @@ impl S3Core {
|
|
|
682
677
|
.body(Buffer::new())
|
|
683
678
|
.map_err(new_request_build_error)?;
|
|
684
679
|
|
|
680
|
+
Ok(req)
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
pub async fn s3_delete_object(
|
|
684
|
+
&self,
|
|
685
|
+
ctx: &OperationContext,
|
|
686
|
+
path: &str,
|
|
687
|
+
args: &OpDelete,
|
|
688
|
+
) -> Result<Response<Buffer>> {
|
|
689
|
+
let req = self.s3_delete_object_request(path, args)?;
|
|
685
690
|
self.send(ctx, req).await
|
|
686
691
|
}
|
|
687
692
|
|
|
@@ -765,6 +770,9 @@ impl S3Core {
|
|
|
765
770
|
.extension(Operation::Copy)
|
|
766
771
|
.extension(ServiceOperation("CopyObject"))
|
|
767
772
|
.header(constants::X_AMZ_COPY_SOURCE, &source)
|
|
773
|
+
// AWS S3 accepts CopyObject without Content-Length, but some S3-compatible
|
|
774
|
+
// providers, such as NetApp, require `Content-Length: 0` for its empty body.
|
|
775
|
+
.header(CONTENT_LENGTH, 0)
|
|
768
776
|
.body(Buffer::new())
|
|
769
777
|
.map_err(new_request_build_error)?;
|
|
770
778
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## Capabilities
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Depending on its configuration and the backing system, this service can expose:
|
|
4
4
|
|
|
5
5
|
- [ ] create_dir
|
|
6
6
|
- [x] stat
|
|
@@ -12,35 +12,14 @@ This service can be used to:
|
|
|
12
12
|
- [ ] rename
|
|
13
13
|
- [x] presign
|
|
14
14
|
|
|
15
|
+
Inspect the effective capability set with [`opendal_core::Operator::info`] and
|
|
16
|
+
[`opendal_core::OperatorInfo::capability`] after building an operator.
|
|
17
|
+
|
|
15
18
|
## Configuration
|
|
16
19
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
- `region`: Set the region for backend.
|
|
21
|
-
- `access_key_id`: Set the access_key_id for backend.
|
|
22
|
-
- `secret_access_key`: Set the secret_access_key for backend.
|
|
23
|
-
- `session_token`: Set the session_token for backend.
|
|
24
|
-
- `default_storage_class`: Set the default storage_class for backend.
|
|
25
|
-
- `server_side_encryption`: Set the server_side_encryption for backend.
|
|
26
|
-
- `server_side_encryption_aws_kms_key_id`: Set the server_side_encryption_aws_kms_key_id for backend.
|
|
27
|
-
- `server_side_encryption_customer_algorithm`: Set the server_side_encryption_customer_algorithm for backend.
|
|
28
|
-
- `server_side_encryption_customer_key`: Set the server_side_encryption_customer_key for backend.
|
|
29
|
-
- `server_side_encryption_customer_key_md5`: Set the server_side_encryption_customer_key_md5 for backend.
|
|
30
|
-
- `disable_config_load`: Disable aws config load from env.
|
|
31
|
-
- `enable_virtual_host_style`: Enable virtual host style.
|
|
32
|
-
- `enable_request_payer`: Enable the request payer for backend.
|
|
33
|
-
- `skip_signature`: Skip loading credentials and signing requests.
|
|
34
|
-
- `allow_anonymous`: Deprecated. Use `skip_signature` instead.
|
|
35
|
-
- `batch_max_operations`: Deprecated. S3 delete batch capability is enabled by default and this option is no longer needed.
|
|
36
|
-
- `delete_max_size`: Deprecated. S3 delete batch capability is enabled by default and this option is no longer needed.
|
|
37
|
-
- `disable_stat_with_override`: Deprecated. S3 stat override capabilities are enabled by default and this option is no longer needed.
|
|
38
|
-
- `disable_write_with_if_match`: Deprecated. S3 write with If-Match capability is enabled by default and this option is no longer needed.
|
|
39
|
-
- `enable_versioning`: Deprecated. S3 versioning capability is enabled by default and this option is no longer needed.
|
|
40
|
-
- `enable_write_with_append`: Deprecated. S3 append capability is enabled by default and this option is no longer needed.
|
|
41
|
-
- `default_acl`: Define the default access control list (ACL) when creating a new object. Note that some s3 services like minio do not support this option.
|
|
42
|
-
|
|
43
|
-
Refer to [`S3Builder`]'s public API docs for more information.
|
|
20
|
+
Use [`crate::S3Config`] for serializable configuration and this builder's
|
|
21
|
+
methods for direct construction. The field and method documentation defines
|
|
22
|
+
accepted values, defaults, and environment interaction.
|
|
44
23
|
|
|
45
24
|
## Temporary security credentials
|
|
46
25
|
|
data/core/services/s3/src/lib.rs
CHANGED
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
// specific language governing permissions and limitations
|
|
16
16
|
// under the License.
|
|
17
17
|
|
|
18
|
+
#![doc = include_str!("../README.md")]
|
|
18
19
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
|
19
|
-
|
|
20
|
+
#![cfg_attr(docsrs, doc(auto_cfg))]
|
|
20
21
|
#![deny(missing_docs)]
|
|
21
22
|
|
|
22
23
|
mod backend;
|
|
@@ -31,10 +32,15 @@ mod writer;
|
|
|
31
32
|
pub use backend::S3Builder as S3;
|
|
32
33
|
pub use config::S3Config;
|
|
33
34
|
|
|
34
|
-
///
|
|
35
|
+
/// URI scheme used for service registration and scheme-driven construction.
|
|
35
36
|
pub const S3_SCHEME: &str = "s3";
|
|
36
37
|
|
|
37
|
-
/// Register this service
|
|
38
|
+
/// Register this service's URI scheme or schemes with an operator registry.
|
|
39
|
+
///
|
|
40
|
+
/// Registration enables scheme-driven construction through
|
|
41
|
+
/// [`opendal_core::Operator::from_uri`] and
|
|
42
|
+
/// [`opendal_core::Operator::via_iter`]. Direct construction through
|
|
43
|
+
/// [`opendal_core::Operator::new`] does not require registration.
|
|
38
44
|
pub fn register_s3_service(registry: &opendal_core::OperatorRegistry) {
|
|
39
45
|
registry.register::<S3>(S3_SCHEME);
|
|
40
46
|
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
[package]
|
|
19
19
|
description = "Apache OpenDAL seafile service implementation"
|
|
20
20
|
name = "opendal-service-seafile"
|
|
21
|
+
readme = "README.md"
|
|
21
22
|
|
|
22
23
|
authors = { workspace = true }
|
|
23
24
|
edition = { workspace = true }
|
|
@@ -31,7 +32,7 @@ version = { workspace = true }
|
|
|
31
32
|
all-features = true
|
|
32
33
|
|
|
33
34
|
[dependencies]
|
|
34
|
-
opendal-core = { path = "../../core", version = "0.58.
|
|
35
|
+
opendal-core = { path = "../../core", version = "0.58.1", default-features = false }
|
|
35
36
|
|
|
36
37
|
bytes = { workspace = true }
|
|
37
38
|
http = { workspace = true }
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Apache OpenDAL™ Seafile Service
|
|
2
|
+
|
|
3
|
+
`opendal-service-seafile` provides access to Seafile storage for applications built with
|
|
4
|
+
Apache OpenDAL™.
|
|
5
|
+
|
|
6
|
+
## Use through `opendal`
|
|
7
|
+
|
|
8
|
+
Applications should normally enable this service through the `opendal` facade with the
|
|
9
|
+
`services-seafile` feature:
|
|
10
|
+
|
|
11
|
+
```shell
|
|
12
|
+
cargo add opendal --features services-seafile
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
The service is available as `opendal::services::Seafile`. Configure the
|
|
16
|
+
service builder, then pass it to `opendal::Operator::new`.
|
|
17
|
+
|
|
18
|
+
## Use with `opendal-core`
|
|
19
|
+
|
|
20
|
+
Add the split crates directly:
|
|
21
|
+
|
|
22
|
+
```shell
|
|
23
|
+
cargo add opendal-core opendal-service-seafile
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Pass a configured service builder to `Operator::new`:
|
|
27
|
+
|
|
28
|
+
```rust
|
|
29
|
+
use opendal_core::{Operator, OperatorRegistry, Result};
|
|
30
|
+
use opendal_service_seafile::{register_seafile_service, Seafile};
|
|
31
|
+
|
|
32
|
+
fn build_operator(builder: Seafile) -> Result<Operator> {
|
|
33
|
+
Operator::new(builder)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
fn register_for_uri() {
|
|
37
|
+
register_seafile_service(OperatorRegistry::get());
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
`register_for_uri` is only needed for scheme-driven construction through
|
|
42
|
+
`Operator::from_uri` or `Operator::via_iter`.
|
|
43
|
+
|
|
44
|
+
Services that send HTTP requests also require an HTTP transport in
|
|
45
|
+
`OperationContext`. See the
|
|
46
|
+
[`opendal-core` composition example](https://crates.io/crates/opendal-core).
|
|
47
|
+
|
|
48
|
+
## Documentation
|
|
49
|
+
|
|
50
|
+
- [Service configuration and examples](https://opendal.apache.org/services/seafile)
|
|
51
|
+
- [Rust API documentation](https://docs.rs/opendal-service-seafile)
|
|
52
|
+
- [Apache OpenDAL documentation](https://opendal.apache.org/docs/)
|
|
53
|
+
|
|
54
|
+
## License
|
|
55
|
+
|
|
56
|
+
Licensed under the Apache License, Version 2.0.
|
|
@@ -118,10 +118,10 @@ impl Builder for SeafileBuilder {
|
|
|
118
118
|
|
|
119
119
|
/// Builds the backend and returns the result of SeafileBackend.
|
|
120
120
|
fn build(self) -> Result<impl Service> {
|
|
121
|
-
debug!("backend build started: {:?}",
|
|
121
|
+
debug!("backend build started: {:?}", self);
|
|
122
122
|
|
|
123
123
|
let root = normalize_root(&self.config.root.clone().unwrap_or_default());
|
|
124
|
-
debug!("backend use root {}",
|
|
124
|
+
debug!("backend use root {}", root);
|
|
125
125
|
|
|
126
126
|
// Handle bucket.
|
|
127
127
|
if self.config.repo_name.is_empty() {
|
|
@@ -130,7 +130,7 @@ impl Builder for SeafileBuilder {
|
|
|
130
130
|
.with_context("service", SEAFILE_SCHEME));
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
debug!("backend use repo_name {}",
|
|
133
|
+
debug!("backend use repo_name {}", self.config.repo_name);
|
|
134
134
|
|
|
135
135
|
let endpoint = match &self.config.endpoint {
|
|
136
136
|
Some(endpoint) => Ok(endpoint.clone()),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## Capabilities
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Depending on its configuration and the backing system, this service can expose:
|
|
4
4
|
|
|
5
5
|
- [ ] create_dir
|
|
6
6
|
- [x] stat
|
|
@@ -12,15 +12,14 @@ This service can be used to:
|
|
|
12
12
|
- [ ] rename
|
|
13
13
|
- [ ] presign
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Inspect the effective capability set with [`opendal_core::Operator::info`] and
|
|
16
|
+
[`opendal_core::OperatorInfo::capability`] after building an operator.
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
- `endpoint`: Seafile endpoint address
|
|
19
|
-
- `username` Seafile username
|
|
20
|
-
- `password` Seafile password
|
|
21
|
-
- `repo_name` Seafile repo name
|
|
18
|
+
## Configuration
|
|
22
19
|
|
|
23
|
-
|
|
20
|
+
Use [`crate::SeafileConfig`] for serializable configuration and this builder's
|
|
21
|
+
methods for direct construction. The field and method documentation defines
|
|
22
|
+
accepted values, defaults, and environment interaction.
|
|
24
23
|
|
|
25
24
|
## Example
|
|
26
25
|
|
|
@@ -15,10 +15,20 @@
|
|
|
15
15
|
// specific language governing permissions and limitations
|
|
16
16
|
// under the License.
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
#![doc = include_str!("../README.md")]
|
|
19
|
+
#![cfg_attr(docsrs, feature(doc_cfg))]
|
|
20
|
+
#![cfg_attr(docsrs, doc(auto_cfg))]
|
|
21
|
+
#![deny(missing_docs)]
|
|
22
|
+
|
|
23
|
+
/// URI scheme used for service registration and scheme-driven construction.
|
|
19
24
|
pub const SEAFILE_SCHEME: &str = "seafile";
|
|
20
25
|
|
|
21
|
-
/// Register this service
|
|
26
|
+
/// Register this service's URI scheme or schemes with an operator registry.
|
|
27
|
+
///
|
|
28
|
+
/// Registration enables scheme-driven construction through
|
|
29
|
+
/// [`opendal_core::Operator::from_uri`] and
|
|
30
|
+
/// [`opendal_core::Operator::via_iter`]. Direct construction through
|
|
31
|
+
/// [`opendal_core::Operator::new`] does not require registration.
|
|
22
32
|
pub fn register_seafile_service(registry: &opendal_core::OperatorRegistry) {
|
|
23
33
|
registry.register::<Seafile>(SEAFILE_SCHEME);
|
|
24
34
|
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
[package]
|
|
19
19
|
description = "Apache OpenDAL SFTP service implementation"
|
|
20
20
|
name = "opendal-service-sftp"
|
|
21
|
+
readme = "README.md"
|
|
21
22
|
|
|
22
23
|
authors = { workspace = true }
|
|
23
24
|
edition = { workspace = true }
|
|
@@ -31,7 +32,7 @@ version = { workspace = true }
|
|
|
31
32
|
all-features = true
|
|
32
33
|
|
|
33
34
|
[dependencies]
|
|
34
|
-
opendal-core = { path = "../../core", version = "0.58.
|
|
35
|
+
opendal-core = { path = "../../core", version = "0.58.1", default-features = false }
|
|
35
36
|
|
|
36
37
|
bytes = { workspace = true }
|
|
37
38
|
fastpool = "1.0.2"
|