-
Notifications
You must be signed in to change notification settings - Fork 313
Add feature to support platforms without atomic CAS #467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 16 commits
4ab919f
3dbe14b
7b2b1c1
6bad5b0
22292b5
2105374
32d1b3c
77f3082
dc925c8
b02b594
2be8c5e
c50b621
5633dee
539ad28
6a1e9b6
dbd420b
b30fe89
1e0f3a8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,19 @@ Next, add this to your crate: | |
use bytes::{Bytes, BytesMut, Buf, BufMut}; | ||
``` | ||
|
||
## no_std support | ||
|
||
To use `bytes` with no_std environment, disable the (enabled by default) `std` feature. | ||
|
||
```toml | ||
[dependencies] | ||
bytes = { version = "1", default-features = false } | ||
``` | ||
|
||
To use `bytes` with no_std environment without atomic CAS, such as thumbv6m, you also need to enable | ||
the `extra-platforms` feature. See the [documentation for the `portable-atomic` | ||
crate](https://docs.rs/portable-atomic) for more information. | ||
Comment on lines
+39
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It probably makes sense to say that this feature is not subject to the MSRV. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added the mention about the MSRV in b30fe89.
|
||
|
||
## Serde support | ||
|
||
Serde support is optional and disabled by default. To enable use the feature `serde`. | ||
|
Uh oh!
There was an error while loading. Please reload this page.