Browse Source

rust/trillium: update dependencies (#8849)

Jacob Rothstein 1 year ago
parent
commit
8fb5292da4

File diff suppressed because it is too large
+ 164 - 210
frameworks/Rust/trillium/Cargo.lock


+ 11 - 11
frameworks/Rust/trillium/Cargo.toml

@@ -8,23 +8,23 @@ jemallocator = ["dep:jemallocator"]
 
 [dependencies]
 askama = "0.12.1"
-fastrand = "2.0.1"
-futures-lite = "2.2.0"
-serde = { version = "1.0.196", features = ["derive"] }
-serde_json = "1.0.113"
-trillium = "0.2.16"
+fastrand = "2.0.2"
+futures-lite = "2.3.0"
+serde = { version = "1.0.197", features = ["derive"] }
+serde_json = "1.0.115"
+trillium = "0.2.19"
 trillium-api = "0.1.0"
 trillium-askama = "0.3.2"
-trillium-smol = "0.3.3"
-trillium-logger = "0.4.4"
-trillium-router = "0.3.6"
-unicycle = "0.9.4"
-env_logger = "0.11.2"
+trillium-smol = "0.4.0"
+trillium-logger = "0.4.5"
+trillium-router = "0.4.1"
+unicycle = "0.10.1"
+env_logger = "0.11.3"
 moka = { version = "0.12.5", features = ["future"] }
 jemallocator = {version="0.5.4", optional = true}
 
 [dependencies.sea-orm]
-version = "0.12.14"
+version = "0.12.15"
 default-features = false
 features = ["runtime-async-std-native-tls", "sqlx-postgres", "macros"]
 

+ 1 - 1
frameworks/Rust/trillium/src/routes/fortune.rs

@@ -34,5 +34,5 @@ pub async fn handler(conn: Conn) -> Conn {
     conn.render(FortuneTemplate {
         fortunes: &fortunes,
     })
-    .with_header(ContentType, "text/html; charset=utf-8")
+    .with_response_header(ContentType, "text/html; charset=utf-8")
 }

+ 1 - 1
frameworks/Rust/trillium/src/routes/plaintext.rs

@@ -1,6 +1,6 @@
 use trillium::{Conn, KnownHeaderName};
 
 pub async fn handler(conn: Conn) -> Conn {
-    conn.with_header(KnownHeaderName::ContentType, "text/plain")
+    conn.with_response_header(KnownHeaderName::ContentType, "text/plain")
         .ok("Hello, World!")
 }

Some files were not shown because too many files changed in this diff