Skip to content

Commit

Permalink
dont hide shared deps behind features
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Jun 19, 2023
1 parent 3f2b113 commit b7d62ba
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions ferveo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ serde_with = "2.2.0"
subproductdomain = { package = "subproductdomain-pre-release", path = "../subproductdomain", version = "0.1.0-alpha.0" }
thiserror = "1.0"
zeroize = { version = "1.6.0", default-features = false, features = ["derive"] }

# Shared by Python and WASM bindings
derive_more = { version = "0.99", default-features = false, features = ["from", "as_ref", "into"], optional = true }
generic-array = { version = "0.14.7", optional = true }
generic-array = "0.14.7"
derive_more = { version = "0.99", default-features = false, features = ["from", "as_ref", "into"] }

# Python bindings
pyo3 = { version = "0.18.2", features = ["macros", "multiple-pymethods"], optional = true }
Expand All @@ -60,8 +58,8 @@ serde = { version = "1.0", features = ["derive"] }
wasm-bindgen = { version = "0.2.86", features = ["serde-serialize"] }

[features]
bindings-python = ["pyo3", "derive_more", "generic-array"]
bindings-wasm = ["console_error_panic_hook", "derive_more", "getrandom", "js-sys", "wasm-bindgen", "wasm-bindgen-derive", "generic-array"]
bindings-python = ["pyo3"]
bindings-wasm = ["console_error_panic_hook", "getrandom", "js-sys", "wasm-bindgen", "wasm-bindgen-derive"]

[[example]]
name = "bench_primitives_size"
Expand Down

0 comments on commit b7d62ba

Please sign in to comment.