mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Further changes required by Servo
This commit is contained in:
parent
10f8eb4239
commit
ea3fcce25f
2 changed files with 4 additions and 3 deletions
|
@ -17,7 +17,7 @@ path = "lib.rs"
|
||||||
doctest = false
|
doctest = false
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
gecko = ["style_traits/gecko", "bindgen", "regex", "toml", "num_cpus", "mozbuild"]
|
gecko = ["style_traits/gecko", "bindgen", "regex", "toml", "mozbuild"]
|
||||||
servo = [
|
servo = [
|
||||||
"serde",
|
"serde",
|
||||||
"style_traits/servo",
|
"style_traits/servo",
|
||||||
|
@ -59,7 +59,7 @@ new_debug_unreachable = "1.0"
|
||||||
num-derive = "0.3"
|
num-derive = "0.3"
|
||||||
num-integer = "0.1"
|
num-integer = "0.1"
|
||||||
num-traits = "0.2"
|
num-traits = "0.2"
|
||||||
num_cpus = { version = "1.1.0", optional = true }
|
num_cpus = { version = "1.1.0" }
|
||||||
owning_ref = "0.4"
|
owning_ref = "0.4"
|
||||||
parking_lot = "0.12"
|
parking_lot = "0.12"
|
||||||
precomputed-hash = "0.1.1"
|
precomputed-hash = "0.1.1"
|
||||||
|
|
|
@ -114,7 +114,8 @@ impl StyleThreadPool {
|
||||||
|
|
||||||
#[cfg(feature = "servo")]
|
#[cfg(feature = "servo")]
|
||||||
fn stylo_threads_pref() -> i32 {
|
fn stylo_threads_pref() -> i32 {
|
||||||
pref!(layout.threads)
|
use servo_config::pref;
|
||||||
|
pref!(layout.threads) as i32
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue