Skip to content

Commit

Permalink
NO-JIRA: [Rust] Use "dep:xyz" for the list of dependencies of a feature
Browse files Browse the repository at this point in the history
Enable all features for docs.rs metadata

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Feb 14, 2024
1 parent c60e1a0 commit 5ae888c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 10 additions & 5 deletions lang/rust/avro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ categories.workspace = true
documentation.workspace = true

[features]
bzip = ["bzip2"]
derive = ["apache-avro-derive"]
snappy = ["crc32fast", "snap"]
xz = ["xz2"]
zstandard = ["zstd"]
bzip = ["dep:bzip2"]
derive = ["dep:apache-avro-derive"]
snappy = ["dep:crc32fast", "dep:snap"]
xz = ["dep:xz2"]
zstandard = ["dep:zstd"]

[lib]
# disable benchmarks to allow passing criterion arguments to `cargo bench`
Expand Down Expand Up @@ -90,3 +90,8 @@ md-5 = { default-features = false, version = "0.10.6" }
pretty_assertions = { default-features = false, version = "1.4.0", features = ["std"] }
serial_test = "3.0.0"
sha2 = { default-features = false, version = "0.10.8" }


[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
4 changes: 4 additions & 0 deletions lang/rust/avro_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,7 @@ syn = { default-features = false, version = "2.0.48", features = ["full", "fold"
apache-avro = { default-features = false, path = "../avro", features = ["derive"] }
proptest = { default-features = false, version = "1.4.0", features = ["std"] }
serde = { default-features = false, version = "1.0.196", features = ["derive"] }


[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]

0 comments on commit 5ae888c

Please sign in to comment.