openlark-auth 0.17.0

OpenLark 认证模块 - 提供令牌管理、缓存、验证和刷新功能
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.88"
name = "openlark-auth"
version = "0.17.0"
authors = ["ZoOL <zhooul@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OpenLark 认证模块 - 提供令牌管理、缓存、验证和刷新功能"
documentation = "https://docs.rs/openlark"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/foxzool/openlark"
resolver = "2"

[package.metadata.cargo-machete]
ignored = [
    "anyhow",
    "base64",
    "criterion",
    "hex",
    "hmac",
    "pbkdf2",
    "rand",
    "regex",
    "reqwest",
    "ring",
    "sha2",
    "thiserror",
    "url",
]

[features]
advanced-cache = [
    "cache",
    "encryption",
]
cache = ["token-management"]
default = [
    "token-management",
    "cache",
    "oauth",
]
encryption = [
    "ring",
    "sha2",
    "hmac",
    "pbkdf2",
]
monitoring = []
oauth = [
    "reqwest",
    "url",
]
token-management = []

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

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

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

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

[dependencies.anyhow]
version = "1.0.86"

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
version = "0.4.38"
features = [
    "serde",
    "serde",
]

[dependencies.criterion]
version = "0.5"
features = ["html_reports"]
optional = true

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.openlark-core]
version = "0.17.0"

[dependencies.pbkdf2]
version = "0.12"
optional = true

[dependencies.rand]
version = "0.8"

[dependencies.regex]
version = "1.10"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "multipart",
    "rustls",
    "stream",
    "query",
]
optional = true
default-features = false

[dependencies.ring]
version = "0.17"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.38"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
    "full",
]

[dependencies.tracing]
version = "0.1"

[dependencies.url]
version = "2.5"
features = ["serde"]
optional = true

[dependencies.urlencoding]
version = "2.1"

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
    "v4",
    "serde",
]

[dev-dependencies.mockall]
version = "0.12"

[dev-dependencies.rstest]
version = "=0.19.0"

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
module_name_repetitions = "allow"
multiple_crate_versions = "allow"

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

[lints.rust]
missing_docs = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"