sa-token-plugin-tide 0.2.0

Tide framework integration for sa-token-rust - All-in-one package
# 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-plugin-tide"
version = "0.2.0"
authors = ["金书记"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Tide framework integration for sa-token-rust - All-in-one package"
homepage = "https://github.com/sa-tokens/sa-token-rust.git"
documentation = "https://docs.rs/sa-token-rust"
readme = false
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]
features = [
    "memory",
    "redis",
    "database",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
database = ["dep:sa-token-storage-database"]
default = [
    "tide-017",
    "memory",
]
full = [
    "memory",
    "redis",
    "database",
]
memory = ["dep:sa-token-storage-memory"]
redis = ["dep:sa-token-storage-redis"]
tide-017 = ["dep:tide-017"]

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

[dependencies.async-std]
version = "1.13.2"

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

[dependencies.http]
version = "1.4.0"

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

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

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

[dependencies.sa-token-plugin-common]
version = "0.2.0"

[dependencies.sa-token-storage-database]
version = "0.2.0"
optional = true

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

[dependencies.sa-token-storage-redis]
version = "0.2.0"
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.tide-017]
version = "0.17.0-beta.1"
optional = true
package = "tide"

[dependencies.tracing]
version = "0.1.44"

[dependencies.urlencoding]
version = "2.1.3"

[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