Skip to content

Commit

Permalink
argon2: forbid unsafe code outside parallel implementation
Browse files Browse the repository at this point in the history
Eventually it'd be nice to have a safe parallel implementation as well:

#154
  • Loading branch information
tarcieri committed Apr 19, 2021
1 parent d2cf7f1 commit 07191b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion argon2/src/lib.rs
Expand Up @@ -68,9 +68,12 @@
html_logo_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg",
html_favicon_url = "https://raw.githubusercontent.com/RustCrypto/meta/master/logo.svg"
)]
#![deny(unsafe_code)]
#![warn(rust_2018_idioms, missing_docs)]

// TODO(tarcieri): safe parallel implementation
// See: https://github.com/RustCrypto/password-hashes/issues/154
#![cfg_attr(not(feature = "parallel"), forbid(unsafe_code))]

#[macro_use]
extern crate alloc;

Expand Down

0 comments on commit 07191b6

Please sign in to comment.