-
Notifications
You must be signed in to change notification settings - Fork 146
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
Add no_std support #49
Conversation
Usually crates define a |
Or maybe I dreamt that... I was pretty sure it was the case for |
Sure, I can do that too. Some crates follow that convention, but some others don't (like |
Following |
no_std is an anti pattern, see rust-lang/rfcs#1841 (The RFC itself is being rejected, but it stays an antipattern). |
I think Unfortunately we delayed long enough that the |
@bors-servo r+ Since the move to |
📌 Commit 47d33b1 has been approved by |
Add no_std support This library can easily support `no_std` code on `nightly`; it does require the `collections` feature, however. This PR adds support for this feature by enabling a on-by-default `std` feature. This feature can be turned off to support `no_std` mode. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/49) <!-- Reviewable:end -->
The other thing is that I believe that the collections crate still exists; now it's just a wrapper around |
☀️ Test successful - status-travis |
New features: * `no_std` support (servo#49).
New features: * `no_std` support (servo#49).
New features: * `no_std` support (servo#49).
Document and test no_std support This builds on the new "std" Cargo feature added in #49. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-smallvec/53) <!-- Reviewable:end -->
This library can easily support
no_std
code onnightly
; it does require thecollections
feature, however. This PR adds support for this feature by enabling a on-by-defaultstd
feature. This feature can be turned off to supportno_std
mode.This change is