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

Attempt to get library building without the Rust standard library #88

Closed
ernieturner opened this issue Sep 16, 2019 · 1 comment
Closed
Assignees
Labels

Comments

@ernieturner
Copy link
Contributor

We should see how much work it would take to try and get recrypt to compile without the Rust standard library. This would make it much more portable and let it work in environments such as Alpine linux. Probably a feature flag and not something we'd do by default. This ticket will just be the investigation work and we'll write up subsequent tickets on things to change if the investigation goes well.

@skeet70
Copy link
Member

skeet70 commented Oct 7, 2019

I built gridiron no_std successfully in no_std and no_std_flag. Benchmarking showed some (2-5%) change but repeated benchmarks seemed to vary so that may not have been a real issue.

Moving to recrypt revealed that the Error type requires std as do alternatives. This means quick_error can't be no_std, and we're using that a lot. The rust standard library Mutex also requires std, though there are alternative implementations that seem to be quality. Both of these problems are pretty large effort to get past so I'm going to stop working on this for now, but if we decide we want to do the work it should be possible. Also pushed a branch with this attempt in its current state.

@ernieturner ernieturner removed this from the 2019-10-18 milestone Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants