File tree 4 files changed +26
-0
lines changed
4 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -2202,6 +2202,16 @@ version = "0.2.8"
2202
2202
source = " registry+https://github.com/rust-lang/crates.io-index"
2203
2203
checksum = " 4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058"
2204
2204
2205
+ [[package ]]
2206
+ name = " libmimalloc-sys"
2207
+ version = " 0.1.35"
2208
+ source = " registry+https://github.com/rust-lang/crates.io-index"
2209
+ checksum = " 3979b5c37ece694f1f5e51e7ecc871fdb0f517ed04ee45f88d15d6d553cb9664"
2210
+ dependencies = [
2211
+ " cc" ,
2212
+ " libc" ,
2213
+ ]
2214
+
2205
2215
[[package ]]
2206
2216
name = " libredox"
2207
2217
version = " 0.0.1"
@@ -2407,6 +2417,15 @@ dependencies = [
2407
2417
" autocfg" ,
2408
2418
]
2409
2419
2420
+ [[package ]]
2421
+ name = " mimalloc"
2422
+ version = " 0.1.39"
2423
+ source = " registry+https://github.com/rust-lang/crates.io-index"
2424
+ checksum = " fa01922b5ea280a911e323e4d2fd24b7fe5cc4042e0d2cda3c40775cdc4bdc9c"
2425
+ dependencies = [
2426
+ " libmimalloc-sys" ,
2427
+ ]
2428
+
2410
2429
[[package ]]
2411
2430
name = " mime"
2412
2431
version = " 0.3.17"
@@ -3737,6 +3756,7 @@ dependencies = [
3737
3756
name = " rustc_driver"
3738
3757
version = " 0.0.0"
3739
3758
dependencies = [
3759
+ " mimalloc" ,
3740
3760
" rustc_driver_impl" ,
3741
3761
]
3742
3762
Original file line number Diff line number Diff line change @@ -8,5 +8,6 @@ crate-type = ["dylib"]
8
8
9
9
[dependencies ]
10
10
# tidy-alphabetical-start
11
+ mimalloc = " 0.1.39"
11
12
rustc_driver_impl = { path = " ../rustc_driver_impl" }
12
13
# tidy-alphabetical-end
Original file line number Diff line number Diff line change 5
5
#![ feature( rustdoc_internals) ]
6
6
#![ doc( rust_logo) ]
7
7
8
+ #[ global_allocator]
9
+ static GLOBAL : mimalloc:: MiMalloc = mimalloc:: MiMalloc ;
10
+
8
11
pub use rustc_driver_impl:: * ;
Original file line number Diff line number Diff line change @@ -270,6 +270,7 @@ const PERMITTED_RUSTC_DEPENDENCIES: &[&str] = &[
270
270
"leb128" ,
271
271
"libc" ,
272
272
"libloading" ,
273
+ "libmimalloc-sys" ,
273
274
"linux-raw-sys" ,
274
275
"litemap" ,
275
276
"lock_api" ,
@@ -280,6 +281,7 @@ const PERMITTED_RUSTC_DEPENDENCIES: &[&str] = &[
280
281
"memchr" ,
281
282
"memmap2" ,
282
283
"memoffset" ,
284
+ "mimalloc" ,
283
285
"miniz_oxide" ,
284
286
"nu-ansi-term" ,
285
287
"num-conv" ,
You can’t perform that action at this time.
0 commit comments