mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-30 14:17:36 -10:00
Servo needs to know whether C++ code is compiled with MOZ_DEBUG, and passing along an explicit feature is a better way to determine that information than relying on cfg(debug_assertions). MozReview-Commit-ID: B3XCskDQ56p
45 lines
832 B
TOML
45 lines
832 B
TOML
[package]
|
|
name = "gkrust"
|
|
version = "0.1.0"
|
|
authors = ["[email protected]"]
|
|
license = "MPL-2.0"
|
|
description = "Rust code for libxul"
|
|
|
|
[features]
|
|
bindgen = ["gkrust-shared/bindgen"]
|
|
servo = ["gkrust-shared/servo"]
|
|
quantum_render = ["gkrust-shared/quantum_render"]
|
|
cubeb_pulse_rust = ["gkrust-shared/cubeb_pulse_rust"]
|
|
gecko_debug = ["gkrust-shared/gecko_debug"]
|
|
|
|
[dependencies]
|
|
gkrust-shared = { path = "shared" }
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
crate-type = ["staticlib"]
|
|
test = false
|
|
doctest = false
|
|
bench = false
|
|
doc = false
|
|
plugin = false
|
|
harness = false
|
|
|
|
# Explicitly specify what our profiles use.
|
|
[profile.dev]
|
|
opt-level = 1
|
|
debug = true
|
|
rpath = false
|
|
lto = false
|
|
debug-assertions = true
|
|
codegen-units = 4
|
|
panic = "abort"
|
|
|
|
[profile.release]
|
|
opt-level = 2
|
|
debug = true
|
|
rpath = false
|
|
lto = true
|
|
debug-assertions = false
|
|
panic = "abort"
|