[package]
edition = "2018"
name = "libreauth"
version = "0.12.0"
authors = ["Rodolphe Breard <rodolphe@what.tf>"]
include = ["src/**/*", "Cargo.toml", "Licence_*.txt"]
description = "Collection of tools for user authentication."
documentation = "https://docs.rs/libreauth/"
readme = "README.md"
keywords = ["authentication", "password", "oath", "hotp", "totp"]
license = "CECILL-C OR CECILL-2.1"
repository = "https://github.com/breard-r/libreauth"
[package.metadata.docs.rs]
features = ["cbindings", "key", "oath", "pass"]
[lib]
name = "libreauth"
crate-type = ["rlib", "staticlib", "dylib"]
[dependencies.base32]
version = "^0.4"
optional = true
[dependencies.base64]
version = "^0.10"
optional = true
[dependencies.hex]
version = "^0.3"
optional = true
[dependencies.hmac]
version = "^0.7"
optional = true
[dependencies.libc]
version = "^0.2"
optional = true
[dependencies.nom]
version = "^5.0"
optional = true
[dependencies.pbkdf2]
version = "^0.3"
optional = true
default-features = false
[dependencies.rand]
version = "^0.7"
optional = true
[dependencies.rust-argon2]
version = "^0.5"
optional = true
[dependencies.sha-1]
version = "^0.8"
optional = true
[dependencies.sha2]
version = "^0.8"
optional = true
[dependencies.sha3]
version = "^0.8"
optional = true
[dependencies.time]
version = "^0.1"
optional = true
[dependencies.unicode-normalization]
version = "^0.1"
optional = true
[dependencies.url]
version = "^2.1"
optional = true
[features]
cbindings = ["libc"]
default = ["key", "oath", "pass"]
key = ["base32", "base64", "hex", "rand"]
oath = ["base32", "base64", "hex", "hmac", "sha-1", "sha2", "sha3", "time", "url"]
pass = ["base64", "hmac", "key", "nom", "pbkdf2", "rust-argon2", "sha-1", "sha2", "sha3", "unicode-normalization"]