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

Add no_std support #48

Merged
merged 1 commit into from
May 8, 2020
Merged

Add no_std support #48

merged 1 commit into from
May 8, 2020

Conversation

Zireael-N
Copy link
Contributor

I also replaced rand with a smaller dependency, getrandom, because that's pretty much what OsRng::fill_bytes is: https://github.com/rust-random/rand/blob/bf8b5a98ac95da19953f0b3b0f6da6ec8eda940b/rand_core/src/os.rs#L66-L69.

OsRng::fill_bytes's return value was previously ignored, I assume that's not intended, so I changed that.

@Zireael-N
Copy link
Contributor Author

When building with --no-default-features --features alloc minimum supported Rust version is a bit higher, seems to be 1.36.0.

@Keats
Copy link
Owner

Keats commented May 7, 2020

Can you add a no-std run to CI? The MSRV bump is fine

@Zireael-N
Copy link
Contributor Author

Done.

- name: Check formatting
if: matrix.rust == 'stable'
run: |
cargo fmt --all -- --check
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to myself: I'll move it to another CI check, along with clippy probably

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I have something like that for the Rust repos at work: https://github.com/onecodex/needletail/blob/master/.github/workflows/tests.yml

@Keats Keats merged commit 42c20e0 into Keats:master May 8, 2020
@Keats
Copy link
Owner

Keats commented May 8, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants