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

Use namespaced/weak features; MSRV 1.60 #235

Merged
merged 1 commit into from
Dec 20, 2022

Conversation

tarcieri
Copy link
Contributor

@tarcieri tarcieri commented Dec 8, 2022

This enables activating the alloc and std features without unnecessarily pulling in optional dependencies like rand and serde.

It also fixes tests for --no-default-features (w\ --lib only)

Closes #234 (I think?)

@tarcieri tarcieri requested a review from rozbb December 8, 2022 17:38
@tarcieri tarcieri force-pushed the use-namespaced-and-weak-features branch 4 times, most recently from 99919b8 to ba54a9d Compare December 10, 2022 02:57
@tarcieri tarcieri force-pushed the use-namespaced-and-weak-features branch from ba54a9d to 58e0dcf Compare December 18, 2022 16:24
This enables activating the `alloc` and `std` features without
unnecessarily pulling in optional dependencies like `rand` and `serde`.

It also fixes tests for `--no-default-features` (w\ `--lib` only)
@tarcieri tarcieri force-pushed the use-namespaced-and-weak-features branch from 58e0dcf to 8f47fd5 Compare December 18, 2022 16:38
@rozbb
Copy link
Contributor

rozbb commented Dec 20, 2022

LGTM. One thing I wanna do is go through all the std flags and see which ones we actually use. My guess is most do nothing

@rozbb rozbb merged commit f6a242a into release/2.0 Dec 20, 2022
@tarcieri tarcieri deleted the use-namespaced-and-weak-features branch December 20, 2022 14:34
@tarcieri
Copy link
Contributor Author

@rozbb the main use is enabling the std::error::Error impls for the respective error types for these dependencies, however there is ongoing work to move that to core.

However, there is at least one legitimate use for pkcs8: it enables support for reading/writing keys from/to files, including setting the file permissions for private keys appropriately:

https://docs.rs/pkcs8/latest/pkcs8/trait.EncodePrivateKey.html#method.write_pkcs8_der_file

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