mirror of
https://github.com/servo/servo.git
synced 2025-06-28 19:13:41 +01:00
CC https://github.com/alexcrichton/jemallocator/pull/40, https://github.com/rust-lang/rust/pull/49669 The new version of jemallocator requires a more recent jemalloc https://github.com/alexcrichton/jemallocator/pull/34 which doesn’t build on our current Android toolchain https://github.com/jemalloc/jemalloc/issues/1175. To avoid blocking on figuring that out, duplicate ~70 lines from jemallocator and use the older jemalloc-sys directly.
21 lines
513 B
TOML
21 lines
513 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", "jemalloc-sys"]
|
|
|
|
[dependencies]
|
|
libc = "0.2" # Only used when 'unstable' is disabled, but looks like Cargo cannot express that.
|
|
|
|
[target.'cfg(not(windows))'.dependencies]
|
|
jemalloc-sys = { version = "0.1.4", optional = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
kernel32-sys = { version = "0.2.1", optional = true }
|