mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +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
35 lines
716 B
TOML
35 lines
716 B
TOML
[package]
|
|
name = "profile"
|
|
version = "0.0.1"
|
|
authors = ["The Servo Project Developers"]
|
|
license = "MPL-2.0"
|
|
publish = false
|
|
|
|
[lib]
|
|
name = "profile"
|
|
path = "lib.rs"
|
|
|
|
[features]
|
|
unstable = ["jemalloc-sys"]
|
|
|
|
[dependencies]
|
|
profile_traits = {path = "../profile_traits"}
|
|
influent = "0.4"
|
|
ipc-channel = "0.9"
|
|
heartbeats-simple = "0.4"
|
|
log = "0.3.5"
|
|
serde = "1.0"
|
|
serde_json = "1.0"
|
|
servo_config = {path = "../config"}
|
|
time = "0.1.12"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
task_info = {path = "../../support/rust-task_info"}
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
regex = "0.2"
|
|
|
|
[target.'cfg(not(target_os = "windows"))'.dependencies]
|
|
libc = "0.2"
|
|
jemalloc-sys = {version = "0.1.3", optional = true}
|