Debian Codegraph @

.cargo/vendor/rustix/src/maybe_polyfill/no_std/mod.rs

raw
1 //! Polyfill of parts of the standard library for `no_std` builds.
2 //!
3 //! All code in this subtree is derived from the standard library and licensed
4 //! MIT or Apache 2.0 at your option.
5 //!
6 //! This implementation is used when `std` is not available and polyfills the
7 //! necessary items from `std`. When the `std` feature is specified (so the
8 //! standard library is available), the file `src/polyfill/std` is used
9 //! instead, which just imports the respective items from `std`.
10
11 #[cfg(not(windows))]
12 pub mod io;
13 #[cfg(not(any(target_os = "redox", target_os = "wasi")))]
14 #[cfg(feature = "net")]
15 pub mod net;
16 pub mod os;