-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build (warning-free) on modern Rust and deps (#11)
* profile.debug should be profile.dev profile.dev apparently was always the proper name in spite of some confusion in cargo (see rust-lang/cargo#3519). With Rust 1.48.0, cargo refuses to build with a [profile.debug], saying you need the named-profiles nightly feature for that. * update most deps, notably ring ring folks think it's quite important to stay current: https://github.com/briansmith/ring#versioning--stability so update, catching up on two years of ring API changes: * ring's "std" feature is roughly equivalent to the previous "new-heap". It's required for ring::error::Unspecified to impl Error as expected by libpasta's error_chain! block. * hkdf uses hkdf::Salt rather than directly operating on an hmac::SigningKey (9addfcebdf). * hkdf::extract_and_expand is gone, in favor of methods (6ec8f34c57). * SystemRandom must be constructed with new (f31f41d7a5). * hmac, hkdf, and pbdf2 use distinct Algorithm types (169803f490). A few interesting points here: * I took out a branch from hash_from_id when updating this: SHA512_256 doesn't map to a hkdf type. It was effectively dead; the caller (Pbkdf2::hash_id) would panic on encountering it. * I changed hash_to_id to not rely on ring's Debug that has no guarantee of stability. * I changed Pbkdf2's Debug output slightly, as a ring::pbkdf2::Algorithm is inconvenient to use as before (no Debug impl or access to underlying type). This should be the only visible behavior change. There were no code changes necessary for the other dep updates. I left the "time" crate alone. * cargo +nightly fix This fixed a bunch of warnings, particularly adding "dyn" to trait refs and a couple renamed lints. * stop referencing obsolete plugin_as_library lint Addresses this warning: warning: lint `plugin_as_library` has been removed: `plugins have been deprecated and retired` This one wasn't automatically fixed by "cargo +nightly fix"; maybe it only does the renames and not the removals.
- Loading branch information
Showing
11 changed files
with
108 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.