aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack O'Connor <[email protected]>2024-11-26 17:56:34 -0800
committerJack O'Connor <[email protected]>2024-11-26 18:11:47 -0800
commitc57d6b6ac25a08360f0adf82f7bbe87156a5fec0 (patch)
treefb712ce26b74076e62933c88332a1823c89e8353
parent1170f023bf459ea3d0bedd285d6ae32309ee348c (diff)
add back an explicit "digest" feature, for back compat
-rw-r--r--Cargo.toml9
1 files changed, 9 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c5f8c99..e60b8d0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -55,6 +55,15 @@ traits-preview = ["dep:digest"]
# The following features are mainly intended for testing and benchmarking, and
# they might change or disappear at any time without a major version bump.
+# It wasn't originally intended to expose "digest" as its own feature, but the
+# traits-preview feature above predated the "dep:" syntax in Cargo. Version
+# 1.5.2 of this crate started using "dep:" syntax, but that broke some callers
+# in the wild (https://solana.stackexchange.com/q/17787/29050). This feature
+# unbreaks those callers. When Cargo gains the ability to deprecate features,
+# this feature will be deprecated. Note that the relevant trait implementations
+# are still gated by "traits-preview".
+digest = ["dep:digest"]
+
# By default on x86_64, this crate uses Samuel Neves' hand-written assembly
# implementations for SSE4.1, AVX2, and AVX512. (These provide both the best
# runtime performance, and the fastest build times.) And by default on 32-bit