220 lines
4.0 KiB
TOML
220 lines
4.0 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2018"
|
|
name = "authenticator"
|
|
version = "0.6.0"
|
|
authors = [
|
|
"Dana Keeler <dkeeler@mozilla.com>",
|
|
"J.C. Jones <jc@mozilla.com>",
|
|
"John Schanck <jschanck@mozilla.com>",
|
|
"Kyle Machulis <kyle@nonpolynomial.com>",
|
|
"Martin Sirringhaus <martin.sirringhaus@suse.com",
|
|
"Tim Taubert <ttaubert@mozilla.com>",
|
|
]
|
|
build = "build.rs"
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Library for interacting with CTAP1/2 security keys for Web Authentication. Used by Firefox."
|
|
readme = "README.md"
|
|
keywords = [
|
|
"ctap2",
|
|
"u2f",
|
|
"fido",
|
|
"webauthn",
|
|
]
|
|
categories = [
|
|
"cryptography",
|
|
"hardware-support",
|
|
"os",
|
|
]
|
|
license = "MPL-2.0"
|
|
repository = "https://github.com/mozilla/authenticator-rs/"
|
|
|
|
[badges.maintenance]
|
|
status = "actively-developed"
|
|
|
|
[badges.travis-ci]
|
|
branch = "master"
|
|
repository = "mozilla/authenticator-rs"
|
|
|
|
[features]
|
|
binding-recompile = ["bindgen"]
|
|
crypto_dummy = []
|
|
crypto_nss = [
|
|
"nss-rs",
|
|
"pkcs11-bindings",
|
|
]
|
|
crypto_openssl = [
|
|
"openssl",
|
|
"openssl-sys",
|
|
]
|
|
crypto_rust = [
|
|
"aes",
|
|
"cbc",
|
|
"rand_core",
|
|
"p256",
|
|
"hmac",
|
|
]
|
|
default = ["crypto_nss"]
|
|
gecko = ["nss-rs/gecko"]
|
|
|
|
[lib]
|
|
name = "authenticator"
|
|
path = "src/lib.rs"
|
|
|
|
[[example]]
|
|
name = "ctap2"
|
|
path = "examples/ctap2.rs"
|
|
|
|
[[example]]
|
|
name = "ctap2_discoverable_creds"
|
|
path = "examples/ctap2_discoverable_creds.rs"
|
|
|
|
[[example]]
|
|
name = "interactive_management"
|
|
path = "examples/interactive_management.rs"
|
|
|
|
[[example]]
|
|
name = "prf"
|
|
path = "examples/prf.rs"
|
|
|
|
[[example]]
|
|
name = "reset"
|
|
path = "examples/reset.rs"
|
|
|
|
[[example]]
|
|
name = "set_pin"
|
|
path = "examples/set_pin.rs"
|
|
|
|
[[example]]
|
|
name = "test_exclude_list"
|
|
path = "examples/test_exclude_list.rs"
|
|
|
|
[dependencies]
|
|
base64 = "^0.21"
|
|
bitflags = "1.0"
|
|
cfg-if = "1.0"
|
|
libc = "0.2"
|
|
log = "0.4"
|
|
rand = "0.8"
|
|
runloop = "0.1.0"
|
|
serde_bytes = "0.11"
|
|
serde_json = "1.0"
|
|
sha2 = "^0.10.0"
|
|
|
|
[dependencies.aes]
|
|
version = "0.8"
|
|
optional = true
|
|
|
|
[dependencies.bytes]
|
|
version = "0.5"
|
|
features = ["serde"]
|
|
optional = true
|
|
|
|
[dependencies.cbc]
|
|
version = "0.1"
|
|
features = ["std"]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.hmac]
|
|
version = "0.12"
|
|
optional = true
|
|
|
|
[dependencies.nss-rs]
|
|
version = ">=0.12"
|
|
git = "https://github.com/mozilla/nss-rs"
|
|
optional = true
|
|
|
|
[dependencies.openssl]
|
|
version = "0.10"
|
|
optional = true
|
|
|
|
[dependencies.openssl-sys]
|
|
version = "0.9"
|
|
optional = true
|
|
|
|
[dependencies.p256]
|
|
version = "0.13"
|
|
features = [
|
|
"arithmetic",
|
|
"ecdsa",
|
|
"ecdh",
|
|
"std",
|
|
]
|
|
optional = true
|
|
default-features = false
|
|
|
|
[dependencies.pkcs11-bindings]
|
|
version = "0.1.4"
|
|
optional = true
|
|
|
|
[dependencies.rand_core]
|
|
version = "0.6"
|
|
features = ["getrandom"]
|
|
optional = true
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
features = ["derive"]
|
|
|
|
[dependencies.serde_cbor]
|
|
version = "0.13"
|
|
package = "serde_cbor_2"
|
|
|
|
[dev-dependencies]
|
|
aes-gcm = "0.10"
|
|
assert_matches = "1.2"
|
|
env_logger = "^0.6"
|
|
flate3 = "~1.1"
|
|
getopts = "^0.2"
|
|
rpassword = "5.0"
|
|
|
|
[dev-dependencies.generic-array]
|
|
version = "1.3"
|
|
features = ["compat-0_14"]
|
|
|
|
[build-dependencies.bindgen]
|
|
version = "^0.58.1"
|
|
optional = true
|
|
|
|
[target.'cfg(target_os = "freebsd")'.dependencies]
|
|
devd-rs = "0.3"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
libudev = "^0.2"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
core-foundation = "0.10"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
memoffset = "0.8"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies.winapi]
|
|
version = "^0.3"
|
|
features = [
|
|
"handleapi",
|
|
"hidclass",
|
|
"hidpi",
|
|
"hidusage",
|
|
"setupapi",
|
|
]
|
|
|
|
[lints.rust.unexpected_cfgs]
|
|
level = "warn"
|
|
priority = 0
|
|
check-cfg = ["cfg(fuzzing)"]
|