[package]
edition = "2024"
rust-version = "1.92.0"
name = "cf-modkit-auth"
version = "0.1.0"
authors = ["Hypernetix"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ModKit authentication library"
readme = false
keywords = [
"cyberfabric",
"cyberfabric-modkit",
]
license = "Apache-2.0"
repository = "https://github.com/hypernetix/hyperspot"
[features]
axum-ext = [
"axum",
"tower",
"http",
]
default = ["axum-ext"]
[lib]
name = "modkit_auth"
path = "src/lib.rs"
[[example]]
name = "dispatcher_usage"
path = "examples/dispatcher_usage.rs"
[[test]]
name = "auth_integration"
path = "tests/auth_integration.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "keycloak_compatibility"
path = "tests/keycloak_compatibility.rs"
[[test]]
name = "middleware_integration_test"
path = "tests/middleware_integration_test.rs"
[dependencies.arc-swap]
version = "1.7"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.8"
optional = true
[dependencies.http]
version = "1.3"
optional = true
[dependencies.jsonwebtoken]
version = "10.2"
features = ["rust_crypto"]
[dependencies.modkit-security]
version = "0.1.0"
package = "cf-modkit-security"
[dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls",
"json",
"json",
"rustls-tls",
]
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.time]
version = "0.3"
features = [
"serde",
"formatting",
"parsing",
]
[dependencies.tokio]
version = "1.47"
features = ["full"]
[dependencies.tower]
version = "0.5"
optional = true
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1.19"
features = ["serde"]
[lints.clippy]
async_yields_async = "deny"
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
cast_sign_loss = "deny"
clone_on_copy = "deny"
cognitive_complexity = "deny"
dbg_macro = "deny"
debug_assert_with_mut_call = "deny"
default_trait_access = "deny"
doc_link_with_quotes = "deny"
doc_markdown = "deny"
elidable_lifetime_names = "deny"
empty_line_after_outer_attr = "deny"
empty_structs_with_brackets = "deny"
enum_glob_use = "deny"
expect_used = "deny"
explicit_iter_loop = "deny"
float_cmp = "deny"
float_cmp_const = "deny"
format_push_string = "deny"
if_not_else = "deny"
ignore_without_reason = "deny"
ignored_unit_patterns = "deny"
implicit_clone = "deny"
implicit_hasher = "deny"
inefficient_to_string = "deny"
integer_division = "deny"
ip_constant = "deny"
items_after_statements = "deny"
large_stack_arrays = "deny"
large_types_passed_by_value = "deny"
lossy_float_literal = "deny"
manual_assert = "deny"
manual_filter_map = "deny"
manual_find_map = "deny"
manual_let_else = "deny"
manual_map = "deny"
manual_ok_or = "deny"
manual_string_new = "deny"
many_single_char_names = "deny"
map_clone = "deny"
map_unwrap_or = "deny"
match_bool = "deny"
match_same_arms = "deny"
match_wildcard_for_single_variants = "deny"
missing_errors_doc = "deny"
missing_fields_in_debug = "deny"
missing_panics_doc = "deny"
must_use_candidate = "deny"
mutex_atomic = "deny"
needless_borrow = "deny"
needless_collect = "deny"
needless_for_each = "deny"
needless_late_init = "deny"
needless_lifetimes = "deny"
needless_option_as_deref = "deny"
needless_pass_by_value = "deny"
no_effect_underscore_binding = "deny"
non_ascii_literal = "deny"
non_std_lazy_statics = "deny"
option_as_ref_cloned = "deny"
rc_buffer = "deny"
rc_mutex = "deny"
redundant_clone = "deny"
redundant_closure_for_method_calls = "deny"
redundant_else = "deny"
redundant_pattern_matching = "deny"
redundant_pub_crate = "deny"
ref_option = "deny"
regex_creation_in_loops = "deny"
return_self_not_must_use = "deny"
semicolon_if_nothing_returned = "deny"
similar_names = "deny"
single_char_pattern = "deny"
single_match_else = "deny"
str_to_string = "deny"
string_lit_as_bytes = "deny"
struct_excessive_bools = "deny"
suspicious_operation_groupings = "deny"
too_many_lines = "deny"
trivially_copy_pass_by_ref = "deny"
type_complexity = "deny"
unchecked_time_subtraction = "deny"
uninlined_format_args = "deny"
unnecessary_debug_formatting = "deny"
unnecessary_literal_bound = "deny"
unnecessary_wraps = "deny"
unnested_or_patterns = "deny"
unreadable_literal = "deny"
unused_async = "deny"
unused_self = "deny"
unwrap_used = "deny"
use_debug = "deny"
used_underscore_binding = "deny"
used_underscore_items = "deny"
useless_let_if_seq = "deny"
verbose_file_reads = "deny"
wildcard_dependencies = "deny"
wildcard_imports = "deny"
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
deprecated = "warn"
non_ascii_idents = "forbid"
noop_method_call = "warn"
unsafe_code = "forbid"
unused_import_braces = "warn"
unused_mut = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(coverage_nightly)"]