Skip to content

Commit

Permalink
build: cargo update
Browse files Browse the repository at this point in the history
  • Loading branch information
Itsusinn committed Dec 21, 2024
1 parent 5b83984 commit 73c7c7d
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 41 deletions.
71 changes: 32 additions & 39 deletions Cargo.lock

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

7 changes: 7 additions & 0 deletions tuic-client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ mod error;
mod socks5;
mod utils;

#[cfg(feature = "jemallocator")]
use tikv_jemallocator::Jemalloc;

#[cfg(feature = "jemallocator")]
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;

#[tokio::main]
async fn main() {
let cfg = match Config::parse(env::args_os()) {
Expand Down
4 changes: 2 additions & 2 deletions tuic-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ mod server;
mod tls;
mod utils;

#[cfg(all(not(target_env = "msvc"), feature = "jemallocator"))]
#[cfg(feature = "jemallocator")]
use tikv_jemallocator::Jemalloc;

#[cfg(all(not(target_env = "msvc"), feature = "jemallocator"))]
#[cfg(feature = "jemallocator")]
#[global_allocator]
static GLOBAL: Jemalloc = Jemalloc;

Expand Down

0 comments on commit 73c7c7d

Please sign in to comment.