1 2 3 4 5 6 7 8 9 10 11 12 13
#![no_std] extern crate no_std_compat as std; extern crate alloc; use std::prelude::v1::*; //#![cfg_attr(not(feature = "std"), no_std)] #[cfg(not(feature = "std"))] pub use no_std_net::*; #[cfg(feature = "std")] pub use std::net::*;