From d407e35cee87dfa975e494b3b7dd9ebdce8a746c Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Tue, 19 Aug 2025 21:42:25 -0400 Subject: [PATCH] Fix Ciphersuite feature flagging --- crypto/ciphersuite/Cargo.toml | 2 +- crypto/ciphersuite/src/lib.rs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crypto/ciphersuite/Cargo.toml b/crypto/ciphersuite/Cargo.toml index 9542aaa4..e2af42aa 100644 --- a/crypto/ciphersuite/Cargo.toml +++ b/crypto/ciphersuite/Cargo.toml @@ -24,7 +24,7 @@ rand_core = { version = "0.6", default-features = false } zeroize = { version = "^1.5", default-features = false, features = ["derive"] } subtle = { version = "^2.4", default-features = false } -digest = { version = "0.10", default-features = false } +digest = { version = "0.10", default-features = false, features = ["core-api"] } transcript = { package = "flexible-transcript", path = "../transcript", version = "^0.3.2", default-features = false } sha2 = { version = "0.10", default-features = false, optional = true } sha3 = { version = "0.10", default-features = false, optional = true } diff --git a/crypto/ciphersuite/src/lib.rs b/crypto/ciphersuite/src/lib.rs index 02c30aed..0e19b4b4 100644 --- a/crypto/ciphersuite/src/lib.rs +++ b/crypto/ciphersuite/src/lib.rs @@ -3,11 +3,11 @@ #![cfg_attr(not(feature = "std"), no_std)] use core::fmt::Debug; +#[cfg(any(feature = "alloc", feature = "std"))] #[allow(unused_imports)] -use std_shims::{ - prelude::*, - io::{self, Read}, -}; +use std_shims::prelude::*; +#[cfg(any(feature = "alloc", feature = "std"))] +use std_shims::io::{self, Read}; use rand_core::{RngCore, CryptoRng};