Skip to content

Commit

Permalink
add log feature as default so log and tracing can be used
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Oct 28, 2024
1 parent ca56f2d commit 62aa898
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion crates/backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
default = ["opendal", "rest", "rclone"]
default = ["opendal", "rest", "rclone", "log"]
cli = ["merge", "clap"]
merge = ["dep:conflate"]
clap = ["dep:clap"]
Expand All @@ -44,6 +44,9 @@ opendal = [
]
rest = ["dep:reqwest", "dep:backoff"]
rclone = ["rest", "dep:rand", "dep:semver"]
# When the “log” feature is enabled, if no tracing Subscriber is active, invoking an event
# macro or creating a span with fields will emit a log record.
log = ["tracing/log"]

[dependencies]
# core
Expand Down
5 changes: 4 additions & 1 deletion crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ harness = true
edition = "2021"

[features]
default = []
default = ["log"]
cli = ["merge", "clap"]
merge = ["dep:conflate"]
clap = ["dep:clap"]
webdav = ["dep:dav-server", "dep:futures"]
# When the “log” feature is enabled, if no tracing Subscriber is active, invoking an event
# macro or creating a span with fields will emit a log record.
log = ["tracing/log"]

[package.metadata.docs.rs]
all-features = true
Expand Down

0 comments on commit 62aa898

Please sign in to comment.