Skip to content

Commit a804703

Browse files
authored
chore(all): remove jemalloc (foundry-rs#5833)
1 parent d78309d commit a804703

File tree

8 files changed

+3
-51
lines changed

8 files changed

+3
-51
lines changed

Cargo.lock

Lines changed: 0 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ chrono = { version = "0.4", default-features = false, features = ["clock", "std"
153153
hex = { package = "const-hex", version = "1.6", features = ["hex"] }
154154
itertools = "0.11"
155155
solang-parser = "=0.3.2"
156-
tikv-jemallocator = "0.5.4"
157156

158157
#[patch."https://github.com/gakonst/ethers-rs"]
159158
#ethers = { path = "../ethers-rs/ethers" }

crates/cast/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,13 @@ tokio = { version = "1", features = ["macros", "signal"] }
6464
tracing = "0.1"
6565
yansi = "0.5"
6666

67-
[target.'cfg(not(target_env = "msvc"))'.dependencies]
68-
tikv-jemallocator = { workspace = true, optional = true }
69-
7067
[dev-dependencies]
7168
foundry-test-utils.workspace = true
7269
async-trait = "0.1"
7370
criterion = "0.5"
7471

7572
[features]
76-
default = ["rustls", "jemalloc"]
77-
jemalloc = ["dep:tikv-jemallocator"]
73+
default = ["rustls"]
7874
rustls = ["foundry-cli/rustls"]
7975
openssl = ["foundry-cli/openssl"]
8076

crates/cast/bin/main.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ pub mod opts;
2525

2626
use opts::{Opts, Subcommands, ToBaseArgs};
2727

28-
#[cfg(not(target_env = "msvc"))]
29-
#[global_allocator]
30-
static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
31-
3228
#[tokio::main]
3329
async fn main() -> Result<()> {
3430
utils::load_dotenv();

crates/chisel/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,13 @@ dirs = "5"
4949
time = { version = "0.3", features = ["formatting"] }
5050
regex = "1"
5151

52-
[target.'cfg(not(target_env = "msvc"))'.dependencies]
53-
tikv-jemallocator = { workspace = true, optional = true }
54-
5552
[dev-dependencies]
5653
criterion = { version = "0.5", features = ["async_tokio"] }
5754
serial_test = "2"
5855
once_cell = "1"
5956

6057
[features]
61-
default = ["rustls", "jemalloc"]
62-
jemalloc = ["dep:tikv-jemallocator"]
58+
default = ["rustls"]
6359
rustls = ["ethers/rustls", "reqwest/rustls-tls", "reqwest/rustls-tls-native-roots"]
6460
openssl = ["ethers/openssl", "reqwest/default-tls"]
6561

crates/chisel/bin/main.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ use foundry_config::{
2323
use rustyline::{config::Configurer, error::ReadlineError, Editor};
2424
use yansi::Paint;
2525

26-
#[cfg(not(target_env = "msvc"))]
27-
#[global_allocator]
28-
static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
29-
3026
// Loads project's figment and merges the build cli arguments into it
3127
foundry_config::merge_impl_figment_convert!(ChiselParser, opts, evm_opts);
3228

crates/forge/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ thiserror = "1"
6363
tokio = { version = "1", features = ["time"] }
6464
watchexec = "2"
6565

66-
[target.'cfg(not(target_env = "msvc"))'.dependencies]
67-
tikv-jemallocator = { workspace = true, optional = true }
68-
6966
[dev-dependencies]
7067
anvil.workspace = true
7168
foundry-test-utils.workspace = true
@@ -78,8 +75,7 @@ serial_test = "2"
7875
svm = { package = "svm-rs", version = "0.3", default-features = false, features = ["rustls"] }
7976

8077
[features]
81-
default = ["rustls", "jemalloc"]
82-
jemalloc = ["dep:tikv-jemallocator"]
78+
default = ["rustls"]
8379
rustls = ["foundry-cli/rustls", "reqwest/rustls-tls", "reqwest/rustls-tls-native-roots"]
8480
openssl = ["foundry-cli/openssl", "reqwest/default-tls"]
8581

crates/forge/bin/main.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ mod opts;
99
use cmd::{cache::CacheSubcommands, generate::GenerateSubcommands, watch};
1010
use opts::{Opts, Subcommands};
1111

12-
#[cfg(not(target_env = "msvc"))]
13-
#[global_allocator]
14-
static ALLOC: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;
15-
1612
fn main() -> Result<()> {
1713
utils::load_dotenv();
1814
handler::install()?;

0 commit comments

Comments
 (0)