Add README build docs for std and no-std

This commit is contained in:
Steve Myers 2023-03-16 14:59:11 -05:00
parent 2982681d59
commit 33ee7a58af
No known key found for this signature in database
GPG Key ID: 8105A46B22C2D051
1 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,10 @@ versions than the current stable one (see MSRV section).
## Building
The cargo feature `std` is enabled by default. At least one of the features `std` or `no-std` or both must be enabled.
Enabling the `no-std` feature does not disable `std`. To disable the `std` feature you must disable default features. The `no-std` feature only enables additional features required for this crate to be usable without `std`. Both can be enabled without conflict.
The library can be built and tested using [`cargo`](https://github.com/rust-lang/cargo/):
```