Add an 'unstable' top-level cargo feature to control optional unstable stuff.

This commit is contained in:
Simon Sapin 2017-10-11 23:41:06 +02:00
parent c496aa16a0
commit 132b540518
5 changed files with 8 additions and 7 deletions

View file

@ -21,7 +21,7 @@ net_traits = {path = "../net_traits"}
profile_traits = {path = "../profile_traits"} profile_traits = {path = "../profile_traits"}
script_traits = {path = "../script_traits"} script_traits = {path = "../script_traits"}
servo_config = {path = "../config"} servo_config = {path = "../config"}
servo_geometry = {path = "../geometry", features = ["servo"]} servo_geometry = {path = "../geometry"}
servo_url = {path = "../url"} servo_url = {path = "../url"}
style_traits = {path = "../style_traits"} style_traits = {path = "../style_traits"}
time = "0.1.17" time = "0.1.17"

View file

@ -9,10 +9,6 @@ publish = false
name = "servo_geometry" name = "servo_geometry"
path = "lib.rs" path = "lib.rs"
[features]
# servo as opposed to geckolib
servo = ["euclid/unstable"]
[dependencies] [dependencies]
app_units = "0.5" app_units = "0.5"
euclid = "0.15" euclid = "0.15"

View file

@ -9,6 +9,9 @@ publish = false
name = "layout_thread" name = "layout_thread"
path = "lib.rs" path = "lib.rs"
[features]
unstable = ["parking_lot/nightly"]
[dependencies] [dependencies]
app_units = "0.5" app_units = "0.5"
atomic_refcell = "0.1" atomic_refcell = "0.1"
@ -26,7 +29,7 @@ log = "0.3.5"
metrics = {path = "../metrics"} metrics = {path = "../metrics"}
msg = {path = "../msg"} msg = {path = "../msg"}
net_traits = {path = "../net_traits"} net_traits = {path = "../net_traits"}
parking_lot = {version = "0.4", features = ["nightly"]} parking_lot = "0.4"
profile_traits = {path = "../profile_traits"} profile_traits = {path = "../profile_traits"}
range = {path = "../range"} range = {path = "../range"}
rayon = "0.8" rayon = "0.8"

View file

@ -19,6 +19,7 @@ energy-profiling = ["profile_traits/energy-profiling"]
debugmozjs = ["script/debugmozjs"] debugmozjs = ["script/debugmozjs"]
googlevr = ["webvr/googlevr"] googlevr = ["webvr/googlevr"]
oculusvr = ["webvr/oculusvr"] oculusvr = ["webvr/oculusvr"]
unstable = ["euclid/unstable", "layout_thread/unstable"]
[dependencies] [dependencies]
bluetooth_traits = {path = "../bluetooth_traits"} bluetooth_traits = {path = "../bluetooth_traits"}

View file

@ -29,13 +29,14 @@ servo_remutex_tests = {path = "../../tests/unit/servo_remutex"}
style_tests = {path = "../../tests/unit/style"} style_tests = {path = "../../tests/unit/style"}
[features] [features]
default = ["webdriver", "max_log_level"] default = ["webdriver", "max_log_level", "unstable"]
max_log_level = ["log/release_max_level_info"] max_log_level = ["log/release_max_level_info"]
webdriver = ["libservo/webdriver_server"] webdriver = ["libservo/webdriver_server"]
energy-profiling = ["libservo/energy-profiling"] energy-profiling = ["libservo/energy-profiling"]
debugmozjs = ["libservo/debugmozjs"] debugmozjs = ["libservo/debugmozjs"]
googlevr = ["libservo/googlevr"] googlevr = ["libservo/googlevr"]
oculusvr = ["libservo/oculusvr"] oculusvr = ["libservo/oculusvr"]
unstable = ["libservo/unstable"]
[dependencies] [dependencies]
backtrace = "0.3" backtrace = "0.3"