mirror of
https://github.com/servo/servo
synced 2026-04-26 17:45:19 +02:00
* Add `use-system-allocator` feature * Allow `servo_allocator/use-system-allocator` on servoshell
25 lines
576 B
TOML
25 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 }
|