Bladeren bron

Salvo: upgrade to version 0.31.0 (#7562)

Chrislearn Young 3 jaren geleden
bovenliggende
commit
9a5bb4b148
2 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 2 2
      frameworks/Rust/salvo/Cargo.toml
  2. 2 2
      frameworks/Rust/salvo/src/main.rs

+ 2 - 2
frameworks/Rust/salvo/Cargo.toml

@@ -22,11 +22,11 @@ bytes = "1"
 diesel = { version = "1.4", features = ["postgres", "r2d2"] }
 futures = "0.3"
 markup = "0.13"
-mimalloc = { version = "0.1", default-features = false }
+# mimalloc = { version = "0.1", default-features = false }
 once_cell = "1"
 rand = { version = "0.8", features = ["min_const_gen", "small_rng"] }
 random-fast-rng = "0.1"
-salvo = { version = "0.30", default-features = false, features = ["anyhow"] }
+salvo = { version = "0.31", default-features = false, features = ["anyhow"] }
 serde = { version = "1", features = ["derive"] }
 serde_json = "1"
 smallvec = "1"

+ 2 - 2
frameworks/Rust/salvo/src/main.rs

@@ -1,5 +1,5 @@
-#[global_allocator]
-static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
+// #[global_allocator]
+// static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
 
 use std::sync::Arc;