Add no_std support, by adding an `std` feature (#281)
To make the library work as `no_std` we add an `std` feature which is on by default. When it is off, we compile as `no_std` and make parts of the API that require `std::io` conditional on the `std` feature.
Showing
- Cargo.toml 4 additions, 0 deletionsCargo.toml
- ci/azure-test-stable.yml 4 additions, 0 deletionsci/azure-test-stable.yml
- src/buf/buf_impl.rs 14 additions, 2 deletionssrc/buf/buf_impl.rs
- src/buf/buf_mut.rs 14 additions, 4 deletionssrc/buf/buf_mut.rs
- src/buf/chain.rs 4 additions, 0 deletionssrc/buf/chain.rs
- src/buf/mod.rs 7 additions, 1 deletionsrc/buf/mod.rs
- src/buf/take.rs 1 addition, 1 deletionsrc/buf/take.rs
- src/buf/vec_deque.rs 1 addition, 1 deletionsrc/buf/vec_deque.rs
- src/bytes.rs 14 additions, 13 deletionssrc/bytes.rs
- src/debug.rs 1 addition, 1 deletionsrc/debug.rs
- src/either.rs 4 additions, 0 deletionssrc/either.rs
- src/hex.rs 1 addition, 1 deletionsrc/hex.rs
- src/lib.rs 7 additions, 0 deletionssrc/lib.rs
- src/serde.rs 1 addition, 1 deletionsrc/serde.rs
Loading
Please register or sign in to comment