Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ rust-version.workspace = true
[features]
default = [
"auth_jwt",
"jwt_aws_lc_rs",
"cli",
"with-db",
"cache_inmem",
Expand All @@ -31,6 +32,8 @@ default = [
"bg_sqlt",
]
auth_jwt = ["dep:jsonwebtoken"]
jwt_aws_lc_rs = ["dep:jsonwebtoken", "jsonwebtoken/aws_lc_rs"]
jwt_rustcrypto = ["dep:jsonwebtoken", "jsonwebtoken/rust_crypto"]
cli = ["dep:clap"]
testing = ["dep:axum-test", "dep:scraper", "dep:tree-fs"]
with-db = [
Expand Down Expand Up @@ -112,11 +115,11 @@ byte-unit = "4.0.19"

argon2 = { version = "0.5", features = ["std"] }
rand = { version = "0.9", features = ["std"] }
jsonwebtoken = { version = "9.3.0", optional = true }
jsonwebtoken = { version = "10.3.0", optional = true }
validator = { version = "0.20.0", features = ["derive"] }
futures-util = "0.3"
tower = { workspace = true }
bytes = "1.1"
bytes = "1.11"
ipnetwork = "0.20.0"
semver = "1"

Expand Down Expand Up @@ -215,4 +218,4 @@ sqlx = { version = "0.8.2", default-features = false, features = [
"sqlite",
"migrate",
] }
testcontainers = { version = "0.23.3" }
testcontainers = { version = "0.27.1" }
6 changes: 6 additions & 0 deletions src/auth/mod.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
#[cfg(feature = "auth_jwt")]
pub mod jwt;

#[cfg(all(
any(feature = "jwt_aws_lc_rs", feature = "jwt_rustcrypto"),
not(feature = "auth_jwt")
))]
compile_error!("jwt_aws_lc_rs and jwt_rustcrypto features require auth_jwt feature");
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Ok(
x5c: None,
x5t: None,
x5t_s256: None,
crit: None,
enc: None,
zip: None,
url: None,
nonce: None,
extras: {},
},
claims: UserClaims {
pid: "pid",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Ok(
x5c: None,
x5t: None,
x5t_s256: None,
crit: None,
enc: None,
zip: None,
url: None,
nonce: None,
extras: {},
},
claims: UserClaims {
pid: "pid",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Ok(
x5c: None,
x5t: None,
x5t_s256: None,
crit: None,
enc: None,
zip: None,
url: None,
nonce: None,
extras: {},
},
claims: UserClaims {
pid: "pid",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Ok(
x5c: None,
x5t: None,
x5t_s256: None,
crit: None,
enc: None,
zip: None,
url: None,
nonce: None,
extras: {},
},
claims: UserClaims {
pid: "pid",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Ok(
x5c: None,
x5t: None,
x5t_s256: None,
crit: None,
enc: None,
zip: None,
url: None,
nonce: None,
extras: {},
},
claims: UserClaims {
pid: "pid",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Ok(
x5c: None,
x5t: None,
x5t_s256: None,
crit: None,
enc: None,
zip: None,
url: None,
nonce: None,
extras: {},
},
claims: UserClaims {
pid: "pid",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Ok(
x5c: None,
x5t: None,
x5t_s256: None,
crit: None,
enc: None,
zip: None,
url: None,
nonce: None,
extras: {},
},
claims: UserClaims {
pid: "pid",
Expand Down
Loading