jppe/
std.rs

1#[cfg(feature = "std")]
2#[allow(unused_imports)]
3pub use std::{
4    ops,
5    cmp,
6    hash,
7    fmt,
8    format,
9    str,
10    str::FromStr,
11    string::{String, ToString},
12    vec,
13    vec::Vec,
14    net::{IpAddr, Ipv4Addr, Ipv6Addr},
15    cell::RefCell,
16    collections::BTreeMap,
17    mem::MaybeUninit,
18    marker::{PhantomData, PhantomPinned},
19};
20#[cfg(not(feature = "std"))]
21#[allow(unused_imports)]
22pub use core::{
23    ops,
24    cmp,
25    fmt,
26    hash,
27    str,
28    str::FromStr,
29    net::{IpAddr, Ipv4Addr, Ipv6Addr},
30    cell::RefCell,
31    mem::MaybeUninit,
32    marker::{PhantomData, PhantomPinned},
33};
34#[cfg(not(feature = "std"))]
35#[allow(unused_imports)]
36pub use alloc::{
37    format,
38    string::{String, ToString},
39    vec,
40    vec::Vec,
41    collections::BTreeMap,
42};