Skip to content

Commit

Permalink
geo-types: Weaken serde/std and approx/std features
Browse files Browse the repository at this point in the history
Previously, if I wanted only the `std` feature of geo_types, this would
enable the `serde` and `approx` features, too. Change these features to
be "weak dependency features", so they're only enabled (and their crates
pulled in) if the corresponding optional crate is already pulled in for
other reasons.
  • Loading branch information
w-flo committed Jun 26, 2023
1 parent 3ef315c commit 1612f1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geo-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition = "2021"

[features]
default = ["std"]
std = ["approx/std", "num-traits/std", "serde/std"]
std = ["approx?/std", "num-traits/std", "serde?/std"]
# Prefer `use-rstar` feature rather than enabling rstar directly.
# rstar integration relies on the optional approx crate, but implicit features cannot yet enable other features.
# See: https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#namespaced-features
Expand Down

0 comments on commit 1612f1d

Please sign in to comment.