mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
* Add `use-system-allocator` feature * Allow `servo_allocator/use-system-allocator` on servoshell
24 lines
576 B
TOML
24 lines
576 B
TOML
[package]
|
|
name = "servo_allocator"
|
|
version = "0.0.1"
|
|
authors = ["The Servo Project Developers"]
|
|
license = "MPL-2.0"
|
|
edition = "2018"
|
|
publish = false
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
|
|
[features]
|
|
use-system-allocator = ["libc"]
|
|
|
|
[target.'cfg(not(any(windows, target_os = "android")))'.dependencies]
|
|
jemallocator = { workspace = true }
|
|
jemalloc-sys = { workspace = true }
|
|
libc = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
winapi = { workspace = true, features = ["heapapi"] }
|
|
|
|
[target.'cfg(target_os = "android")'.dependencies]
|
|
libc = { workspace = true }
|