sa-token-core 0.2.0

Core library for sa-token-rust, a powerful authentication and authorization framework
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 = "sa-token-core"
version = "0.2.0"
authors = ["金书记"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core library for sa-token-rust, a powerful authentication and authorization framework"
homepage = "https://github.com/sa-tokens/sa-token-rust.git"
documentation = "https://docs.rs/sa-token-rust"
readme = "README.md"
keywords = [
    "authentication",
    "authorization",
    "token",
    "security",
    "web",
]
categories = [
    "authentication",
    "web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sa-tokens/sa-token-rust.git"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
fory = ["sa-token-adapter/fory"]
sso-http = ["dep:reqwest"]

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.argon2]
version = "0.5"

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

[dependencies.chrono]
version = "0.4.44"
features = ["serde"]

[dependencies.getrandom]
version = "0.2"

[dependencies.hex]
version = "0.4.3"

[dependencies.hmac]
version = "0.13"

[dependencies.jsonwebtoken]
version = "10.4.0"
features = ["rust_crypto"]

[dependencies.reqwest]
version = "0.12"
features = ["rustls-tls"]
optional = true
default-features = false

[dependencies.sa-token-adapter]
version = "0.2.0"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.11.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tokio]
version = "1.52.3"
features = ["full"]

[dependencies.tracing]
version = "0.1.44"

[dependencies.urlencoding]
version = "2.1.3"

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

[dev-dependencies.sa-token-storage-memory]
version = "0.2.0"

[lints.clippy]
dbg_macro = "deny"
expect_used = "warn"
float_cmp = "deny"
indexing_slicing = "warn"
mem_forget = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
panic = "warn"
print_stderr = "deny"
print_stdout = "deny"
todo = "deny"
too_many_lines = "allow"
unimplemented = "deny"
unwrap_in_result = "warn"
unwrap_used = "warn"

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

[lints.clippy.pedantic]
level = "allow"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_lifetimes = "deny"
unused_must_use = "deny"
unused_qualifications = "warn"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1