[package]
edition = "2021"
rust-version = "1.70"
name = "apple-localauthentication"
version = "0.2.0"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
"src/**/*",
"swift-bridge/Package.swift",
"swift-bridge/Sources/**/*",
"examples/**/*",
"tests/**/*",
"build.rs",
"Cargo.toml",
"README.md",
"COVERAGE.md",
"LICENSE-*",
"CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's LocalAuthentication framework — contexts, rights, persisted secrets, keys, and credentials on macOS"
homepage = "https://github.com/doom-fish/localauthentication-rs"
readme = "README.md"
keywords = [
"localauthentication",
"biometrics",
"touchid",
"faceid",
"macos",
]
categories = [
"api-bindings",
"os::macos-apis",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/localauthentication-rs"
[package.metadata.docs.rs]
all-features = true
default-target = "aarch64-apple-darwin"
targets = [
"aarch64-apple-darwin",
"x86_64-apple-darwin",
]
rustdoc-args = [
"--cfg",
"docsrs",
]
[badges.maintenance]
status = "actively-developed"
[features]
default = []
[lib]
name = "localauthentication"
crate-type = ["lib"]
path = "src/lib.rs"
[[example]]
name = "01_smoke"
path = "examples/01_smoke.rs"
[[example]]
name = "02_policy_catalog"
path = "examples/02_policy_catalog.rs"
[[example]]
name = "03_error_codes"
path = "examples/03_error_codes.rs"
[[example]]
name = "04_credentials"
path = "examples/04_credentials.rs"
[[example]]
name = "05_authentication_requirements"
path = "examples/05_authentication_requirements.rs"
[[example]]
name = "06_rights"
path = "examples/06_rights.rs"
[[example]]
name = "07_right_store"
path = "examples/07_right_store.rs"
[[example]]
name = "08_persisted_right"
path = "examples/08_persisted_right.rs"
[[example]]
name = "09_public_key"
path = "examples/09_public_key.rs"
[[test]]
name = "la_authentication_requirement_tests"
path = "tests/la_authentication_requirement_tests.rs"
[[test]]
name = "la_context_tests"
path = "tests/la_context_tests.rs"
[[test]]
name = "la_credential_tests"
path = "tests/la_credential_tests.rs"
[[test]]
name = "la_error_tests"
path = "tests/la_error_tests.rs"
[[test]]
name = "la_persisted_right_tests"
path = "tests/la_persisted_right_tests.rs"
[[test]]
name = "la_policy_tests"
path = "tests/la_policy_tests.rs"
[[test]]
name = "la_public_key_tests"
path = "tests/la_public_key_tests.rs"
[[test]]
name = "la_right_store_tests"
path = "tests/la_right_store_tests.rs"
[[test]]
name = "la_right_tests"
path = "tests/la_right_tests.rs"
[dependencies.libc]
version = "0.2"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
[profile.release]
debug = 2
strip = "none"