incrementalmerkletree: Remove `std` from default features.

`std` was actually only ever required for `test-dependencies`, which is
not in `default`.
This commit is contained in:
Kris Nuttycombe 2025-01-27 15:44:44 -07:00
parent 32fe37e11c
commit 65db41c91d
2 changed files with 6 additions and 3 deletions

View File

@ -30,7 +30,9 @@ rand_core = "0.6"
rand_chacha = "0.3"
[features]
default = ["std"]
# The `std` feature is no longer enabled by default because it is not needed
# for backwards compatibility; it is only enabled by the `test-dependencies`
# feature.
std = []
# The legacy-api feature guards types and functions that were previously
# part of the `zcash_primitives` crate. Those types were removed in the

View File

@ -681,8 +681,8 @@ pub mod testing {
use proptest::prelude::*;
use rand::{distributions::Standard, prelude::Distribution};
use std::collections::hash_map::DefaultHasher;
use std::hash::Hasher;
#[cfg(feature = "std")]
use {core::hash::Hasher, std::collections::hash_map::DefaultHasher};
use crate::{frontier::Frontier, Hashable, Level};
@ -701,6 +701,7 @@ pub mod testing {
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
pub struct TestNode(pub u64);
#[cfg(feature = "std")]
impl Hashable for TestNode {
fn empty_leaf() -> Self {
Self(0)