bcrypt-bsd 0.1.3

Rust wrapper around BCrypt implementation in C, fully compatible with OpenBSD bcrypt
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Bring in a dependency on an externally maintained `gcc` package which manages
// invoking the C compiler.
extern crate gcc;

fn main() {
    let names: Vec<String> = vec![
        "crypt_blowfish.c",
        "crypt_gensalt.c",
        "wrapper.c",
        "rust-interface.c"
    ].into_iter().map(|n| "src/c/".to_owned() + n).collect();

    gcc::Build::new()
        .files(names)
        .compile("bcrypt-bsd");
}