Skip to content

Commit

Permalink
AVRO-3915: [Rust] Extract dependencies used by more than one member c…
Browse files Browse the repository at this point in the history
…rates into the workspace (#2609)

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g authored Dec 6, 2023
1 parent cf1c8e5 commit eff386e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
7 changes: 7 additions & 0 deletions lang/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ keywords = ["avro", "data", "serialization"]
categories = ["encoding"]
documentation = "https://docs.rs/apache-avro"

# dependencies used by more than one members
[workspace.dependencies]
lazy_static = { default-features = false, version = "1.4.0" }
log = { default-features = false, version = "0.4.20" }
serde = { default-features = false, version = "1.0.193", features = ["derive"] }
serde_json = { default-features = false, version = "1.0.108", features = ["std"] }

[profile.release.package.hello-wasm]
# Tell `rustc` to optimize for small code size.
opt-level = "s"
9 changes: 5 additions & 4 deletions lang/rust/avro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ bigdecimal = { default-features = false, version = "0.4.2", features = ["std"] }
bzip2 = { default-features = false, version = "0.4.4", optional = true }
crc32fast = { default-features = false, version = "1.3.2", optional = true }
digest = { default-features = false, version = "0.10.7", features = ["core-api"] }
lazy_static = { default-features = false, version = "1.4.0" }
lazy_static = { workspace = true }
libflate = { default-features = false, version = "2.0.0", features = ["std"] }
log = { default-features = false, version = "0.4.20" }
log = { workspace = true }
num-bigint = { default-features = false, version = "0.4.4" }
regex-lite = { default-features = false, version = "0.1.5", features = ["std", "string"] }
serde = { default-features = false, version = "1.0.193", features = ["derive"] }
serde_json = { default-features = false, version = "1.0.108", features = ["std"] }
serde = { workspace = true }
serde_json = { workspace = true }
snap = { default-features = false, version = "1.1.0", optional = true }
strum = { default-features = false, version = "0.25.0" }
strum_macros = { default-features = false, version = "0.25.3" }
Expand All @@ -75,6 +75,7 @@ uuid = { default-features = false, version = "1.6.1", features = ["serde", "std"
xz2 = { default-features = false, version = "0.1.7", optional = true }
zstd = { default-features = false, version = "0.13.0", optional = true }


[target.'cfg(target_arch = "wasm32")'.dependencies]
quad-rand = { default-features = false, version = "0.2.1" }

Expand Down
2 changes: 1 addition & 1 deletion lang/rust/avro_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ proc-macro = true
darling = { default-features = false, version = "0.20.3" }
proc-macro2 = { default-features = false, version = "1.0.70" }
quote = { default-features = false, version = "1.0.33" }
serde_json = { default-features = false, version = "1.0.108", features = ["std"] }
serde_json = { workspace = true }
syn = { default-features = false, version = "2.0.39", features = ["full", "fold"] }

[dev-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions lang/rust/avro_test_helper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ anyhow = { default-features = false, version = "1.0.75", features = ["std"] }
better-panic = { default-features = false, version = "0.3.0" }
ctor = { default-features = false, version = "0.2.5" }
env_logger = { default-features = false, version = "0.10.1" }
lazy_static = { default-features = false, version = "1.4.0" }
log = { default-features = false, version = "0.4.20" }
lazy_static = { workspace = true }
log = { workspace = true }
ref_thread_local = { default-features = false, version = "0.1.1" }

0 comments on commit eff386e

Please sign in to comment.