caio.co/de/cantine

Split compilation features into default and unstable

Id
e965be8958430498da25a9aab973bcc777f37cc5
Author
Caio
Commit time
2020-01-25T09:40:15+01:00

Modified tique/Cargo.toml

@@ -1,15 +1,20
[package]
name = "tique"
version = "0.1.0"
authors = ["Caio Romão <contact@caio.co>"]
edition = "2018"

+[features]
+default = []
+unstable = ["tique_derive", "serde", "byteorder", "nom"]
+
[dependencies]
-tique_derive = { path = "../tique_derive" }
tantivy = "0.11"
-serde = { version = "1", features = ["derive"] }
-byteorder = "1.3"
-nom = "5"
+
+tique_derive = { path = "../tique_derive", optional = true }
+serde = { version = "1", features = ["derive"], optional = true }
+byteorder = { version = "1.3", optional = true }
+nom = { version = "5", optional = true }

[dev-dependencies]
zerocopy = "0.2"

Modified tique/src/lib.rs

@@ -1,7 +1,13
pub mod conditional_collector;
+
+#[cfg(feature = "unstable")]
pub mod queryparser;

+#[cfg(feature = "unstable")]
mod derive;

+#[cfg(feature = "unstable")]
pub use derive::RangeStats;
+
+#[cfg(feature = "unstable")]
pub use tique_derive::FilterAndAggregation;