Upgrade to Loco 1.0
This commit is contained in:
Generated
+1277
-491
File diff suppressed because it is too large
Load Diff
@@ -10,7 +10,7 @@ default-run = "notes_service-cli"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
loco-rs = { version = "0.16" }
|
loco-rs = { version = "1.0.1" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
loco-rs = { workspace = true }
|
loco-rs = { workspace = true }
|
||||||
@@ -25,7 +25,7 @@ tracing = { version = "0.1" }
|
|||||||
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
|
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
|
||||||
regex = { version = "1.11" }
|
regex = { version = "1.11" }
|
||||||
migration = { path = "migration" }
|
migration = { path = "migration" }
|
||||||
sea-orm = { version = "1.1", features = [
|
sea-orm = { version = "2.0", features = [
|
||||||
"sqlx-sqlite",
|
"sqlx-sqlite",
|
||||||
"sqlx-postgres",
|
"sqlx-postgres",
|
||||||
"runtime-tokio-rustls",
|
"runtime-tokio-rustls",
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ loco-rs = { workspace = true }
|
|||||||
|
|
||||||
|
|
||||||
[dependencies.sea-orm-migration]
|
[dependencies.sea-orm-migration]
|
||||||
version = "1.1.0"
|
version = "2.0"
|
||||||
features = [
|
features = [
|
||||||
# Enable at least one `ASYNC_RUNTIME` and `DATABASE_DRIVER` feature if you want to run migration via CLI.
|
# Enable at least one `ASYNC_RUNTIME` and `DATABASE_DRIVER` feature if you want to run migration via CLI.
|
||||||
# View the list of supported features at https://www.sea-ql.org/SeaORM/docs/install-and-config/database-and-async-runtime.
|
# View the list of supported features at https://www.sea-ql.org/SeaORM/docs/install-and-config/database-and-async-runtime.
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ impl Initializer for ViewEngineInitializer {
|
|||||||
);
|
);
|
||||||
info!("locales loaded");
|
info!("locales loaded");
|
||||||
|
|
||||||
engines::TeraView::build()?.post_process(move |tera| {
|
engines::TeraView::build_with_post_process(move |tera| {
|
||||||
tera.register_function("t", FluentLoader::new(arc.clone()));
|
tera.register_function("t", FluentLoader::new(arc.clone()));
|
||||||
Ok(())
|
Ok(())
|
||||||
})?
|
})?
|
||||||
|
|||||||
Reference in New Issue
Block a user