Skip to content
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

Issue #151: impl std::io::Write for u8-based TinyVecs #152

Merged
merged 3 commits into from
Sep 24, 2021

Conversation

eeeebbbbrrrr
Copy link
Contributor

@eeeebbbbrrrr eeeebbbbrrrr commented Sep 24, 2021

This PR implements std::io::Write for u8-based TinyVecs. As such, it also introduces a new feature flag named std, which is off by default.

I didn't really see anywhere interesting to document that this exists, so any pointers there would be cool.

This closes issue #151

@Lokathor
Copy link
Owner

Normally a feature could be documented in the crate docs of lib.rs.

Unfortunately there's not a good "official" way to doc features at this time.

@Shnatsel
Copy link
Collaborator

There is https://doc.rust-lang.org/rustdoc/unstable-features.html#doccfg-recording-what-platforms-or-features-are-required-for-code-to-be-present which is only available on rustdoc nightly, but is already enabled on docs.rs

@Lokathor
Copy link
Owner

If you want I could merge it now and just put in some docs before i publish it later today.

@eeeebbbbrrrr
Copy link
Contributor Author

If you want I could merge it now and just put in some docs before i publish it later today.

Sure, that's obviously fine with me. ;) Much appreciated!

@Lokathor Lokathor merged commit 750f684 into Lokathor:main Sep 24, 2021
@Lokathor
Copy link
Owner

released as 1.5.0!

jrguzman-ms pushed a commit to msft-mirror-aosp/platform.external.rust.crates.tinyvec that referenced this pull request Jan 24, 2023
Instead of force-patching lib.rs, remove the ![no_std] attribute through
the upstream feature 'std', which was added in 1.5.0 [1].

Update Android.bp by running cargo2android.py.

[1]: Lokathor/tinyvec#152

Test: TH
Change-Id: Idea781c1ad3f8a4b1ebec7c651b7081feff581ff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants