Skip to content

Commit d1a450b

Browse files
authored
Merge pull request #102 from github/jorendorff/geo-serde-build
Fix `cargo build -p geo_filters --features serde`
2 parents c635a29 + 51221c5 commit d1a450b

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ test:
3232
RUST_BACKTRACE=1 cargo test
3333
# Amazingly, `--all-targets` causes doc-tests not to run.
3434
RUST_BACKTRACE=1 cargo test --doc
35+
# Check that geo_filters compiles with each feature in isolation and with no features
36+
cargo check -p geo_filters --no-default-features
37+
cargo check -p geo_filters --features test-support
38+
cargo check -p geo_filters --features serde
39+
cargo check -p geo_filters --features evaluation
3540

3641
.PHONY: test-ignored
3742
test-ignored:

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.10", 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.10", optional = true }
3838

3939
[dev-dependencies]

0 commit comments

Comments
 (0)