dcrypt_utils/lib.rs
1// File: dcrypt/crates/utils/src/lib.rs
2
3//! Utility functions for the dcrypt library
4//!
5//! This crate provides common utilities and helpers that are used by
6//! other dcrypt crates but are not part of the public API.
7
8#![cfg_attr(not(feature = "std"), no_std)]
9#![forbid(unsafe_code)]
10
11// Ensure alloc is available if no_std and alloc feature is on
12#[cfg(all(not(feature = "std"), feature = "alloc"))]
13extern crate alloc;
14
15/// Text/binary conversion helpers require an allocator.
16#[cfg(any(feature = "std", feature = "alloc"))]
17pub mod data_conversion;