Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 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 @@ -140,6 +140,7 @@ derive_setters = "0.1.6"
dialoguer = "0.12.0"
dunce = "1.0.3"
dhat = "0.3.3"
mimalloc = "0.1.48"
either = "1.9.0"
futures = "0.3.31"
gix-attributes = { version = "0.31.0", default-features = false }
Expand Down
7 changes: 7 additions & 0 deletions crates/turborepo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,10 @@ windows-sys = { version = "0.59", features = [
"Win32_Foundation",
"Win32_System_Console",
] }

# Not enabled on Windows: libmimalloc-sys compiles against the dynamic CRT
# (the workspace default) while libghostty-vt-sys ships static-CRT objects,
# and MSVC's /failifmismatch rejects linking both. Revisit if the Windows
# CRT choice is ever unified.
[target.'cfg(not(target_os = "windows"))'.dependencies]
mimalloc = { workspace = true }
4 changes: 4 additions & 0 deletions crates/turborepo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const INTERNAL_WINDOWS_CTRL_C_COMMAND: &str = "__internal_windows_ctrl_c";
#[global_allocator]
static ALLOC: dhat::Alloc = dhat::Alloc;

#[cfg(all(not(feature = "heap-dhat"), not(target_os = "windows")))]
#[global_allocator]
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;

#[derive(Debug, PartialEq)]
enum InternalLspCommand {
Probe,
Expand Down
Loading