mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
c97a708440
We’ve been bitten before by symbol names changing: https://github.com/servo/heapsize/pull/46, and upstream is planning to stop using jemalloc by default: https://github.com/rust-lang/rust/issues/33082#issuecomment-309781465 So use the (relatively) new `#[global_allocator]` attribute to explicitly select the system allocator on Windows and jemalloc (now in an external crate) on other platforms. This choice matches current defaults. Source-Repo: https://github.com/servo/servo Source-Revision: 07e9794306d597afe5d90d192fd32a99572c3cc3 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : c773f809c4f783e63c42218220e7c8c190727e6e
19 lines
400 B
TOML
19 lines
400 B
TOML
[package]
|
|
name = "servo_allocator"
|
|
version = "0.0.1"
|
|
authors = ["The Servo Project Developers"]
|
|
license = "MPL-2.0"
|
|
publish = false
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
|
|
[features]
|
|
unstable = ["kernel32-sys", "jemallocator"]
|
|
|
|
[target.'cfg(not(windows))'.dependencies]
|
|
jemallocator = { version = "0.1.3", optional = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
kernel32-sys = { version = "0.2.1", optional = true }
|