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 709f100
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion argon2/src/lib.rs
Expand Up @@ -63,12 +63,14 @@
//! [Password Hashing Competition]: https://www.password-hashing.net/

#![no_std]
// TODO(tarcieri): safe parallel implementation
// See: https://github.com/RustCrypto/password-hashes/issues/154
#![cfg_attr(not(feature = "parallel"), forbid(unsafe_code))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc(
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)]

#[macro_use]
Expand Down

0 comments on commit 709f100

Please sign in to comment.