Skip to content

Commit

Permalink
switch out askama
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Nov 29, 2024
1 parent 5becbfe commit 86b61da
Show file tree
Hide file tree
Showing 47 changed files with 390 additions and 321 deletions.
27 changes: 25 additions & 2 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ hickory-resolver = { version = "0.25.0-alpha.4", default-features = false, featu
] }
iso8601-timestamp = "0.3.1"
itertools = { version = "0.13.0", default-features = false }
minijinja = { version = "2.5.0", features = ["loader"] }
moka = { version = "=0.12.7", features = ["sync"] }
simdutf8 = { version = "0.1.5", features = ["aarch64_neon"] }
sonic-rs = "=0.3.14"
Expand Down
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.215"
sha2 = "0.10.8"
sonic-rs = { workspace = true }
speedy-uuid = { workspace = true }
sonic-rs.workspace = true
speedy-uuid.workspace = true
tracing = "0.1.41"
triomphe = { workspace = true }
triomphe.workspace = true
typed-builder = "0.20.0"
url = "2.5.4"

Expand All @@ -46,9 +46,9 @@ sha2 = { version = "0.10.8", features = ["asm"] }
[dev-dependencies]
http-body-util = "0.1.2"
hyper = "1.5.1"
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.215"
sonic-rs = { workspace = true }
sonic-rs.workspace = true
tracing = "0.1.41"
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.215", 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.215", 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.19", default-features = false, features = [
Expand All @@ -30,18 +30,18 @@ rustls = { version = "0.23.19", default-features = false, features = [
] }
rustls-native-certs = "0.8.1"
serde = { version = "1.0.215", 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.41"
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.2"
tracing = "0.1.41"

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.4"

[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,20 +6,20 @@ 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-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-http-client.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-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
Loading

0 comments on commit 86b61da

Please sign in to comment.