hiver-security 0.1.0-alpha.6

Security framework for Hiver Framework. Hiver框架的安全框架。 Equivalent to: Spring Security (@PreAuthorize, @Secured, @RolesAllowed)
# 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.87"
name = "hiver-security"
version = "0.1.0-alpha.6"
authors = ["Hiver Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Security framework for Hiver Framework.
Hiver框架的安全框架。
Equivalent to: Spring Security (@PreAuthorize, @Secured, @RolesAllowed)
"""
homepage = "https://viewway.github.io/hiver"
readme = "README.md"
keywords = [
    "http",
    "async",
    "web",
    "framework",
    "hiver",
]
categories = [
    "web-programming::http-server",
    "web-programming::websocket",
    "network-programming",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ViewWay/hiver"

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

[features]
default = []
http-client = ["reqwest"]

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

[dependencies.anyhow]
version = "1.0"

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

[dependencies.base64]
version = "0.22"

[dependencies.bcrypt]
version = "0.18.0"

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

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.hiver-http]
version = "0.1.0-alpha.6"

[dependencies.hiver-runtime]
version = "0.1.0-alpha.6"

[dependencies.hmac]
version = "0.12"

[dependencies.http]
version = "1.4.0"

[dependencies.jsonwebtoken]
version = "10.3"
features = ["aws_lc_rs"]

[dependencies.md-5]
version = "0.11.0-rc.3"

[dependencies.once_cell]
version = "1.20"

[dependencies.rand]
version = "0.9.3"

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

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.subtle]
version = "2.5"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.43"
features = [
    "sync",
    "macros",
    "rt",
    "net",
    "io-util",
    "time",
]
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.urlencoding]
version = "2.1"

[dev-dependencies.tokio]
version = "1.43"
features = [
    "macros",
    "rt-multi-thread",
]
default-features = false

[lints.clippy]
assertions_on_constants = "allow"
bool_comparison = "allow"
borrow_as_ptr = "allow"
cargo_common_metadata = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
clone_on_copy = "allow"
collapsible_else_if = "allow"
deref_by_slicing = "allow"
doc_markdown = "allow"
double_comparisons = "allow"
expect_used = "warn"
if_same_then_else = "allow"
implicit_clone = "allow"
indexing_slicing = "warn"
linkedlist = "allow"
manual_is_power_of_two = "allow"
match_single_binding = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
missing_safety_doc = "allow"
missing_trait_methods = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
mut_from_ref = "allow"
needless_bool = "allow"
needless_else = "allow"
needless_range_loop = "allow"
panic = "allow"
panic_in_result_fn = "allow"
ptr_arg = "allow"
ptr_as_ptr = "allow"
redundant_clone = "allow"
redundant_closure = "allow"
redundant_pattern_matching = "allow"
ref_as_ptr = "allow"
return_self_not_must_use = "allow"
should_implement_trait = "allow"
similar_names = "allow"
std_instead_of_core = "allow"
struct_excessive_bools = "allow"
todo = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
type_complexity = "allow"
unimplemented = "allow"
uninlined_format_args = "allow"
unnecessary_debug_formatting = "allow"
unnecessary_wraps = "allow"
unreachable = "allow"
unused_self = "allow"
unwrap_used = "warn"
use_self = "allow"
used_underscore_binding = "allow"
useless_let_if_seq = "allow"

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

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

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

[lints.clippy.correctness]
level = "deny"
priority = -1

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

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

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

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

[lints.rust]
const_item_mutation = "warn"
explicit_outlives_requirements = "warn"
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
missing_debug_implementations = "allow"
missing_docs = "warn"
single_use_lifetimes = "warn"
unit_bindings = "warn"
unreachable_pub = "warn"
unsafe_code = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"