You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datasketches.apache.org by ti...@apache.org on 2026/05/09 06:40:18 UTC
(datasketches-rust) 02/05: human run
This is an automated email from the ASF dual-hosted git repository.
tisonkun pushed a commit to branch feature-flag
in repository https://gitbox.apache.org/repos/asf/datasketches-rust.git
commit 21bf744fbf4604777422c71f3ba49fe6d538477d
Author: tison <wa...@gmail.com>
AuthorDate: Sat May 9 14:21:28 2026 +0800
human run
Signed-off-by: tison <wa...@gmail.com>
---
Cargo.toml | 1 -
datasketches/Cargo.toml | 2 ++
datasketches/src/lib.rs | 22 +++++++++++-----------
3 files changed, 13 insertions(+), 12 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index 38d8511..a51f388 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -35,7 +35,6 @@ datasketches = { path = "datasketches" }
clap = { version = "4.5.20", features = ["derive"] }
insta = { version = "1.46.1" }
googletest = { version = "0.14.2" }
-rand = { version = "0.9.2" }
which = { version = "8.0.0" }
[workspace.lints.rust]
diff --git a/datasketches/Cargo.toml b/datasketches/Cargo.toml
index ba79372..696fe39 100644
--- a/datasketches/Cargo.toml
+++ b/datasketches/Cargo.toml
@@ -36,6 +36,8 @@ rustdoc-args = ["--cfg", "docsrs"]
[features]
default = []
+
+# Each sketch has its own feature, so that users can opt in to only the sketches they need.
bloom = []
countmin = []
cpc = []
diff --git a/datasketches/src/lib.rs b/datasketches/src/lib.rs
index 0bd9d1f..833d463 100644
--- a/datasketches/src/lib.rs
+++ b/datasketches/src/lib.rs
@@ -30,30 +30,30 @@
#[cfg(target_endian = "big")]
compile_error!("datasketches does not support big-endian targets");
+// sketches modules
+
#[cfg(feature = "bloom")]
-#[cfg_attr(docsrs, doc(cfg(feature = "bloom")))]
pub mod bloom;
-pub mod codec;
-pub mod common;
#[cfg(feature = "countmin")]
-#[cfg_attr(docsrs, doc(cfg(feature = "countmin")))]
pub mod countmin;
#[cfg(feature = "cpc")]
-#[cfg_attr(docsrs, doc(cfg(feature = "cpc")))]
pub mod cpc;
-pub mod error;
#[cfg(feature = "frequencies")]
-#[cfg_attr(docsrs, doc(cfg(feature = "frequencies")))]
pub mod frequencies;
-pub mod hash_value;
#[cfg(feature = "hll")]
-#[cfg_attr(docsrs, doc(cfg(feature = "hll")))]
pub mod hll;
#[cfg(feature = "tdigest")]
-#[cfg_attr(docsrs, doc(cfg(feature = "tdigest")))]
pub mod tdigest;
#[cfg(feature = "theta")]
-#[cfg_attr(docsrs, doc(cfg(feature = "theta")))]
pub mod theta;
+// common used modules
+
+pub mod codec;
+pub mod common;
+pub mod error;
+pub mod hash_value;
+
+// private internal modules
+
mod hash;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datasketches.apache.org
For additional commands, e-mail: commits-help@datasketches.apache.org