[package]
edition = "2021"
name = "hasp-core"
version = "0.2.0-alpha"
authors = ["Hasp Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core contracts, errors, and traits for hasp."
documentation = "https://docs.rs/hasp-core"
readme = "README.md"
keywords = [
"secrets",
"credentials",
"secret",
"vault",
"keyring",
]
categories = [
"authentication",
"cryptography",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rustpunk/hasp"
[features]
cache-persistent = ["dep:dirs"]
memory-lock = ["windows-sys/Win32_System_Memory"]
test-utils = ["dep:tempfile"]
[lib]
name = "hasp_core"
path = "src/lib.rs"
[[test]]
name = "audit_no_leak"
path = "tests/audit_no_leak.rs"
[[test]]
name = "memory_lock_tests"
path = "tests/memory_lock_tests.rs"
[dependencies.dirs]
version = "6"
optional = true
[dependencies.moka]
version = "0.12"
features = ["sync"]
default-features = false
[dependencies.secrecy]
version = "0.10"
[dependencies.serde_json]
version = "1"
[dependencies.subtle]
version = "2.6"
[dependencies.tempfile]
version = "3"
optional = true
[dependencies.thiserror]
version = "1.0"
[dependencies.url]
version = "2.5"
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tempfile]
version = "3"
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_System_Diagnostics_Debug",
"Win32_System_ErrorReporting",
"Win32_System_LibraryLoader",
"Win32_System_Threading",
]