Skip to content

Commit 22c8678

Browse files
committed
Fix cargo build -p geo_filters --features serde
This previously failed with ``` ❯ cargo build -p geo_filters --features serde Compiling geo_filters v0.1.0 (/Users/jorendorff/src/rust-gems/crates/geo_filters) error[E0433]: failed to resolve: could not find `Deserialize` in `serde` --> crates/geo_filters/src/diff_count/sim_hash.rs:28:45 | 28 | #[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))] | ^^^^^^^^^^^ could not find `Deserialize` in `serde` | note: found an item that was configured out --> /Users/jorendorff/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.214/src/lib.rs:343:24 | 341 | #[cfg(feature = "serde_derive")] | ------------------------ the item is gated behind the `serde_derive` feature 342 | #[cfg_attr(docsrs, doc(cfg(feature = "derive")))] 343 | pub use serde_derive::{Deserialize, Serialize}; | ^^^^^^^^^^^ ``` ...and two other similar errors.
1 parent 8c9fda4 commit 22c8678

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/geo_filters/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "geo_filters"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2021"
55
description = "Geometric filters for set cardinality estimation."
66
repository = "https://github.com/github/rust-gems"
@@ -33,7 +33,7 @@ once_cell = "1.18"
3333
rand = { version = "0.9", optional = true }
3434
rayon = { version = "1.7", optional = true }
3535
regex = { version = "1", optional = true }
36-
serde = { version = "1.0", default-features = false, optional = true }
36+
serde = { version = "1.0", default-features = false, features = ["derive"], optional = true }
3737
rand_chacha = { version = "0.9", optional = true }
3838

3939
[dev-dependencies]

0 commit comments

Comments
 (0)