Document which functions require std (#591)

This commit is contained in:
0xc0001a2040
2023-01-31 11:42:28 +01:00
committed by GitHub
parent c93a94b974
commit f15bba3375
5 changed files with 14 additions and 1 deletions
+9
View File
@@ -36,6 +36,15 @@ Serde support is optional and disabled by default. To enable use the feature `se
bytes = { version = "1", features = ["serde"] }
```
## Building documentation
When building the `bytes` documentation the `docsrs` option should be used, otherwise
feature gates will not be shown. This requires a nightly toolchain:
```
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc
```
## License
This project is licensed under the [MIT license](LICENSE).