Skip to content

Commit

Permalink
authorizer extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Oct 26, 2024
1 parent f27cffd commit 529373d
Show file tree
Hide file tree
Showing 45 changed files with 353 additions and 296 deletions.
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 24 additions & 24 deletions crates/kitsune-activitypub/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,35 @@ license.workspace = true
[dependencies]
async-trait = "0.1.83"
base64-simd = "0.8.0"
diesel = { workspace = true }
diesel-async = { workspace = true }
diesel.workspace = true
diesel-async.workspace = true
futures-util = "0.3.31"
headers = "0.4.0"
http = "1.1.0"
iso8601-timestamp = { workspace = true }
kitsune-cache = { workspace = true }
kitsune-config = { workspace = true }
kitsune-core = { workspace = true }
kitsune-db = { workspace = true }
kitsune-embed = { workspace = true }
kitsune-error = { workspace = true }
kitsune-federation-filter = { workspace = true }
kitsune-http-client = { workspace = true }
kitsune-language = { workspace = true }
kitsune-search = { workspace = true }
kitsune-service = { workspace = true }
kitsune-type = { workspace = true }
kitsune-url = { workspace = true }
kitsune-util = { workspace = true }
kitsune-wasm-mrf = { workspace = true }
iso8601-timestamp.workspace = true
kitsune-cache.workspace = true
kitsune-config.workspace = true
kitsune-core.workspace = true
kitsune-db.workspace = true
kitsune-embed.workspace = true
kitsune-error.workspace = true
kitsune-federation-filter.workspace = true
kitsune-http-client.workspace = true
kitsune-language.workspace = true
kitsune-search.workspace = true
kitsune-service.workspace = true
kitsune-type.workspace = true
kitsune-url.workspace = true
kitsune-util.workspace = true
kitsune-wasm-mrf.workspace = true
mime = "0.3.17"
mime_guess = { version = "2.0.5", default-features = false }
serde = "1.0.213"
sha2 = "0.10.8"
sonic-rs = { workspace = true }
speedy-uuid = { workspace = true }
sonic-rs.workspace = true
speedy-uuid.workspace = true
tracing = "0.1.40"
triomphe = { workspace = true }
triomphe.workspace = true
typed-builder = "0.20.0"
url = "2.5.2"

Expand All @@ -46,9 +46,9 @@ sha2 = { version = "0.10.8", features = ["asm"] }
[dev-dependencies]
http-body-util = "0.1.2"
hyper = "1.5.0"
kitsune-config = { workspace = true }
kitsune-test = { workspace = true }
kitsune-webfinger = { workspace = true }
kitsune-config.workspace = true
kitsune-test.workspace = true
kitsune-webfinger.workspace = true
pretty_assertions = "1.4.1"
tokio = { workspace = true, features = ["macros"] }
tower = { version = "0.5.1", default-features = false, features = ["util"] }
Expand Down
10 changes: 5 additions & 5 deletions crates/kitsune-cache/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ license.workspace = true

[dependencies]
enum_dispatch = "0.3.13"
fred = { workspace = true }
kitsune-error = { workspace = true }
moka = { workspace = true }
fred.workspace = true
kitsune-error.workspace = true
moka.workspace = true
serde = "1.0.213"
sonic-rs = { workspace = true }
sonic-rs.workspace = true
tracing = "0.1.40"
triomphe = { workspace = true }
triomphe.workspace = true
typed-builder = "0.20.0"

[dev-dependencies]
Expand Down
6 changes: 3 additions & 3 deletions crates/kitsune-captcha/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ license.workspace = true
[dependencies]
enum_dispatch = "0.3.13"
http = "1.1.0"
kitsune-error = { workspace = true }
kitsune-http-client = { workspace = true }
kitsune-error.workspace = true
kitsune-http-client.workspace = true
serde = { version = "1.0.213", features = ["derive"] }
serde_urlencoded = "0.7.1"
sonic-rs = { workspace = true }
sonic-rs.workspace = true
strum = { version = "0.26.3", features = ["derive"] }
typed-builder = "0.20.0"

Expand Down
6 changes: 3 additions & 3 deletions crates/kitsune-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ license.workspace = true
async-trait = "0.1.83"
const_format = "0.2.33"
git-version = "0.3.9"
kitsune-db = { workspace = true }
kitsune-error = { workspace = true }
kitsune-db.workspace = true
kitsune-error.workspace = true
paste = "1.0.15"
serde = { version = "1.0.213", features = ["derive"] }
triomphe = { workspace = true }
triomphe.workspace = true
typed-builder = "0.20.0"
unsize = "1.1.0"

Expand Down
20 changes: 10 additions & 10 deletions crates/kitsune-db/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ build = "build.rs"

[dependencies]
blowocking = { workspace = true, features = ["io"] }
diesel = { workspace = true }
diesel-async = { workspace = true }
diesel_full_text_search = { workspace = true }
diesel.workspace = true
diesel-async.workspace = true
diesel_full_text_search.workspace = true
diesel_migrations = "2.2.0"
futures-util = { version = "0.3.31", default-features = false, features = [
"alloc",
] }
iso8601-timestamp = { workspace = true, features = ["diesel-pg"] }
kitsune-config = { workspace = true }
kitsune-error = { workspace = true }
kitsune-language = { workspace = true }
kitsune-type = { workspace = true }
kitsune-config.workspace = true
kitsune-error.workspace = true
kitsune-language.workspace = true
kitsune-type.workspace = true
num-derive = "0.4.2"
num-traits = "0.2.19"
rustls = { version = "0.23.15", default-features = false, features = [
Expand All @@ -30,18 +30,18 @@ rustls = { version = "0.23.15", default-features = false, features = [
] }
rustls-native-certs = "0.8.0"
serde = { version = "1.0.213", features = ["derive"] }
sonic-rs = { workspace = true }
sonic-rs.workspace = true
speedy-uuid = { workspace = true, features = ["diesel"] }
tokio = { workspace = true, features = ["rt"] }
tokio-postgres = "0.7.12"
tokio-postgres-rustls = "0.13.0"
tracing = "0.1.40"
tracing-log = "0.2.0"
trials = { workspace = true }
trials.workspace = true
typed-builder = "0.20.0"

[dev-dependencies]
kitsune-test = { workspace = true }
kitsune-test.workspace = true
tokio = { workspace = true, features = ["macros"] }

[lints]
Expand Down
2 changes: 1 addition & 1 deletion crates/kitsune-derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license.workspace = true

[dependencies]
kitsune-derive-impl = { path = "impl" }
triomphe = { workspace = true }
triomphe.workspace = true
typed-builder = "0.20.0"

[lints]
Expand Down
18 changes: 9 additions & 9 deletions crates/kitsune-email/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ license.workspace = true
ignored = ["askama_axum"] # See reason below.

[dependencies]
askama = { workspace = true }
askama.workspace = true
askama_axum = "0.4.0" # Damn it, cargo. Because "kitsune" uses "askama" with the axum feature, we have to have the crate available here as well..
diesel = { workspace = true }
diesel-async = { workspace = true }
kitsune-db = { workspace = true }
kitsune-derive = { workspace = true }
kitsune-error = { workspace = true }
kitsune-url = { workspace = true }
diesel.workspace = true
diesel-async.workspace = true
kitsune-db.workspace = true
kitsune-derive.workspace = true
kitsune-error.workspace = true
kitsune-url.workspace = true
lettre = { version = "0.11.10", default-features = false, features = [
"builder",
"hostname",
Expand All @@ -30,8 +30,8 @@ mrml = { version = "4.0.1", default-features = false, features = [
"parse",
"render",
] }
speedy-uuid = { workspace = true }
triomphe = { workspace = true }
speedy-uuid.workspace = true
triomphe.workspace = true
typed-builder = "0.20.0"

[lints]
Expand Down
16 changes: 8 additions & 8 deletions crates/kitsune-embed/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ version.workspace = true
license.workspace = true

[dependencies]
diesel = { workspace = true }
diesel-async = { workspace = true }
diesel.workspace = true
diesel-async.workspace = true
http = "1.1.0"
iso8601-timestamp = { workspace = true }
kitsune-db = { workspace = true }
kitsune-derive = { workspace = true }
kitsune-error = { workspace = true }
kitsune-http-client = { workspace = true }
iso8601-timestamp.workspace = true
kitsune-db.workspace = true
kitsune-derive.workspace = true
kitsune-error.workspace = true
kitsune-http-client.workspace = true
lantern-client-sdk = { package = "client-sdk", git = "https://github.com/Lantern-chat/client-sdk-rs.git", rev = "efb4288d9b107b48609802193d57b29f7ae395a1", default-features = false }
schaber = { workspace = true }
schaber.workspace = true
smol_str = "0.3.2"

[lints]
Expand Down
4 changes: 2 additions & 2 deletions crates/kitsune-error/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ license.workspace = true
[dependencies]
axum-core = "0.4.5"
eyre = "0.6.12"
garde = { workspace = true }
garde.workspace = true
http = "1.1.0"
sonic-rs = { workspace = true }
sonic-rs.workspace = true
sync_wrapper = "1.0.1"
tracing = "0.1.40"

Expand Down
8 changes: 4 additions & 4 deletions crates/kitsune-federation-filter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ license.workspace = true

[dependencies]
globset = "0.4.15"
kitsune-config = { workspace = true }
kitsune-derive = { workspace = true }
kitsune-error = { workspace = true }
kitsune-type = { workspace = true }
kitsune-config.workspace = true
kitsune-derive.workspace = true
kitsune-error.workspace = true
kitsune-type.workspace = true
url = "2.5.2"

[lints]
Expand Down
26 changes: 13 additions & 13 deletions crates/kitsune-federation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ version.workspace = true
license.workspace = true

[dependencies]
kitsune-activitypub = { workspace = true }
kitsune-cache = { workspace = true }
kitsune-config = { workspace = true }
kitsune-core = { workspace = true }
kitsune-db = { workspace = true }
kitsune-embed = { workspace = true }
kitsune-federation-filter = { workspace = true }
kitsune-search = { workspace = true }
kitsune-service = { workspace = true }
kitsune-url = { workspace = true }
kitsune-wasm-mrf = { workspace = true }
kitsune-webfinger = { workspace = true }
triomphe = { workspace = true }
kitsune-activitypub.workspace = true
kitsune-cache.workspace = true
kitsune-config.workspace = true
kitsune-core.workspace = true
kitsune-db.workspace = true
kitsune-embed.workspace = true
kitsune-federation-filter.workspace = true
kitsune-search.workspace = true
kitsune-service.workspace = true
kitsune-url.workspace = true
kitsune-wasm-mrf.workspace = true
kitsune-webfinger.workspace = true
triomphe.workspace = true
typed-builder = "0.20.0"

[lints]
Expand Down
10 changes: 5 additions & 5 deletions crates/kitsune-http-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ edition.workspace = true
license.workspace = true

[dependencies]
asynk-strim = { workspace = true }
asynk-strim.workspace = true
bytes = "1.8.0"
futures-util = { version = "0.3.31", default-features = false, features = [
"alloc",
] }
http-body = "1.0.1"
http-body-util = "0.1.2"
http-signatures = { workspace = true }
http-signatures.workspace = true
hyper = "1.5.0"
hyper-util = { version = "0.1.9", features = [
"client-legacy",
Expand All @@ -29,11 +29,11 @@ hyper-rustls = { version = "0.27.3", default-features = false, features = [
"ring",
"tls12",
] }
kitsune-type = { workspace = true }
kitsune-type.workspace = true
pin-project = "1.1.7"
serde = "1.0.213"
simdutf8 = { workspace = true }
sonic-rs = { workspace = true }
simdutf8.workspace = true
sonic-rs.workspace = true
tower = { version = "0.5.1", features = ["util"] }
tower-http = { version = "0.6.1", features = [
# Explicitly exclude `zstd`
Expand Down
16 changes: 8 additions & 8 deletions crates/kitsune-jobs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ version.workspace = true
license.workspace = true

[dependencies]
athena = { workspace = true }
athena.workspace = true
derive_more = { version = "1.0.0", features = ["from"] }
diesel = { workspace = true }
diesel-async = { workspace = true }
diesel.workspace = true
diesel-async.workspace = true
futures-util = "0.3.31"
kitsune-core = { workspace = true }
kitsune-db = { workspace = true }
kitsune-email = { workspace = true }
kitsune-error = { workspace = true }
kitsune-core.workspace = true
kitsune-db.workspace = true
kitsune-email.workspace = true
kitsune-error.workspace = true
serde = { version = "1.0.213", features = ["derive"] }
speedy-uuid = { workspace = true }
speedy-uuid.workspace = true
tracing = "0.1.40"
typed-builder = "0.20.0"

Expand Down
6 changes: 3 additions & 3 deletions crates/kitsune-language/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ version.workspace = true
license.workspace = true

[dependencies]
diesel = { workspace = true }
diesel-async = { workspace = true }
kitsune-config = { workspace = true }
diesel.workspace = true
diesel-async.workspace = true
kitsune-config.workspace = true
isolang = { version = "2.4.0", features = [
"english_names",
"list_languages",
Expand Down
Loading

0 comments on commit 529373d

Please sign in to comment.