Skip to content

Commit 55a901a

Browse files
committed
rename feature
Signed-off-by: tison <wander4096@gmail.com>
1 parent e504b75 commit 55a901a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@ unused_async = "warn"
8181
all-features = true
8282

8383
[features]
84+
# Register services enabled to the OperatorRegistry so that they can be used by `Operator::from_uri`.
85+
auto-register-services = ["dep:ctor"]
8486
blocking = ["opendal-core/blocking"]
8587
default = [
86-
"register-services",
88+
"auto-register-services",
8789
"reqwest-rustls-tls",
8890
"executors-tokio",
8991
"layers-concurrent-limit",
@@ -118,8 +120,6 @@ layers-tail-cut = ["dep:opendal-layer-tail-cut"]
118120
layers-throttle = ["dep:opendal-layer-throttle"]
119121
layers-timeout = ["dep:opendal-layer-timeout"]
120122
layers-tracing = ["dep:opendal-layer-tracing"]
121-
# Register services enabled to the OperatorRegistry so that they can be used by `Operator::from_uri`.
122-
register-services = ["dep:ctor"]
123123
reqwest-rustls-tls = ["opendal-core/reqwest-rustls-tls"]
124124
services-aliyun-drive = ["dep:opendal-service-aliyun-drive"]
125125
services-alluxio = ["dep:opendal-service-alluxio"]

core/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ fn init_default_registry_inner(registry: &OperatorRegistry) {
230230
opendal_service_redis::register_redis_service(registry);
231231
}
232232

233-
#[cfg(feature = "register-services")]
233+
#[cfg(feature = "auto-register-services")]
234234
#[ctor::ctor]
235235
fn register_default_operator_registry() {
236236
init_default_registry();

0 commit comments

Comments
 (0)