Commit 22c8678
committed
Fix
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.cargo build -p geo_filters --features serde
1 parent 8c9fda4 commit 22c8678
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments