mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-11 13:39:25 +00:00
transcript, dalek-ff-group, ed449, and ciphersuite are all usable with no_std alone. The rest additionally require alloc. Part of #279.
25 lines
428 B
Rust
25 lines
428 B
Rust
#![cfg_attr(not(feature = "std"), no_std)]
|
|
|
|
#[cfg(not(feature = "std"))]
|
|
#[allow(unused_imports)]
|
|
#[doc(hidden)]
|
|
#[macro_use]
|
|
pub extern crate alloc;
|
|
|
|
pub mod collections;
|
|
pub mod io;
|
|
|
|
pub mod str {
|
|
#[cfg(not(feature = "std"))]
|
|
pub use alloc::str::*;
|
|
#[cfg(feature = "std")]
|
|
pub use std::str::*;
|
|
}
|
|
|
|
pub mod vec {
|
|
#[cfg(not(feature = "std"))]
|
|
pub use alloc::vec::*;
|
|
#[cfg(feature = "std")]
|
|
pub use std::vec::*;
|
|
}
|