libmacaroon 0.2.1

Macaroons (bearer credentials with contextual caveats) in pure Rust, with first-party and third-party caveats, WASM support, and cross-language interop.
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 = "2021"
rust-version = "1.71"
name = "libmacaroon"
version = "0.2.1"
authors = [
    "Connor Hindley <conn.hindley@gmail.com>",
    "Jack Lund <jackl@geekheads.net>",
    "macaroon-rs Contributors",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Macaroons (bearer credentials with contextual caveats) in pure Rust, with first-party and third-party caveats, WASM support, and cross-language interop."
homepage = "https://github.com/connyay/libmacaroon"
documentation = "https://docs.rs/libmacaroon"
readme = "README.md"
keywords = [
    "macaroon",
    "authorization",
    "credentials",
    "bearer-token",
]
categories = [
    "authentication",
    "cryptography",
]
license = "MIT"
repository = "https://github.com/connyay/libmacaroon"

[features]
default = ["v2json"]
v2json = [
    "dep:serde",
    "dep:serde_json",
]
wasm = ["getrandom/js"]

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

[[example]]
name = "wasm_example"
path = "examples/wasm_example.rs"

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

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

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

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

[dependencies.base64]
version = "0.22"

[dependencies.crypto_secretbox]
version = "0.1"
features = [
    "alloc",
    "salsa20",
]
default-features = false

[dependencies.getrandom]
version = "0.2"

[dependencies.hmac]
version = "0.12"

[dependencies.log]
version = "0.4"

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

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.sha2]
version = "0.10"

[dependencies.subtle]
version = "2.6"

[dependencies.zeroize]
version = "1.8"
features = ["derive"]

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.proptest]
version = "1"