codlet-core 0.1.0

Core authentication primitives for codlet: code policy, generation, normalization, keyed lookup derivation, lifecycle state machines, and storage traits.
Documentation
# 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 = "2024"
rust-version = "1.85"
name = "codlet-core"
version = "0.1.0"
authors = ["nabbisen"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core authentication primitives for codlet: code policy, generation, normalization, keyed lookup derivation, lifecycle state machines, and storage traits."
readme = "README.md"
keywords = [
    "authentication",
    "one-time-code",
    "session",
    "csrf",
    "hmac",
]
categories = [
    "authentication",
    "cryptography",
    "no-std::no-alloc",
]
license = "Apache-2.0"
repository = "https://github.com/nabbisen/codlet"
resolver = "2"

[features]
default = ["std"]
serde = ["dep:serde"]
std = []
test-utils = []

[lib]
name = "codlet_core"
path = "src/lib.rs"

[[test]]
name = "rfc_003_004_acceptance"
path = "tests/rfc_003_004_acceptance.rs"

[dependencies.getrandom]
version = "0.2"

[dependencies.hmac]
version = "0.12"

[dependencies.serde]
version = "1"
features = ["derive"]
optional = true

[dependencies.sha2]
version = "0.10"

[dependencies.subtle]
version = "2"

[dependencies.thiserror]
version = "2"

[dev-dependencies.serde_json]
version = "1"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"