mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Remove servo feature from servo_config
This commit is contained in:
parent
c857878ce9
commit
e07cf0a8da
10 changed files with 14 additions and 22 deletions
|
@ -20,7 +20,7 @@ msg = {path = "../msg"}
|
|||
net_traits = {path = "../net_traits"}
|
||||
profile_traits = {path = "../profile_traits"}
|
||||
script_traits = {path = "../script_traits"}
|
||||
servo_config = {path = "../config", features = ["servo"]}
|
||||
servo_config = {path = "../config"}
|
||||
servo_geometry = {path = "../geometry", features = ["servo"]}
|
||||
servo_url = {path = "../url", features = ["servo"]}
|
||||
style_traits = {path = "../style_traits"}
|
||||
|
|
|
@ -9,10 +9,6 @@ publish = false
|
|||
name = "servo_config"
|
||||
path = "lib.rs"
|
||||
|
||||
[features]
|
||||
# servo as opposed to geckolib
|
||||
servo = ["serde", "serde_derive", "servo_url/servo"]
|
||||
|
||||
[dependencies]
|
||||
euclid = "0.11"
|
||||
getopts = "0.2.11"
|
||||
|
@ -20,10 +16,10 @@ lazy_static = "0.2"
|
|||
log = "0.3.5"
|
||||
num_cpus = "1.1.0"
|
||||
rustc-serialize = "0.3"
|
||||
serde = {version = "0.9", optional = true}
|
||||
serde_derive = {version = "0.9", optional = true}
|
||||
serde = {version = "0.9"}
|
||||
serde_derive = {version = "0.9"}
|
||||
servo_geometry = {path = "../geometry"}
|
||||
servo_url = {path = "../url"}
|
||||
servo_url = {path = "../url", features = ["servo"]}
|
||||
url = "1.2"
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -10,7 +10,7 @@ extern crate getopts;
|
|||
#[macro_use] extern crate log;
|
||||
extern crate num_cpus;
|
||||
extern crate rustc_serialize;
|
||||
#[cfg(feature = "servo")] #[macro_use] extern crate serde_derive;
|
||||
#[macro_use] extern crate serde_derive;
|
||||
extern crate servo_geometry;
|
||||
extern crate servo_url;
|
||||
extern crate url;
|
||||
|
|
|
@ -25,8 +25,7 @@ use url::{self, Url};
|
|||
|
||||
|
||||
/// Global flags for Servo, currently set on the command line.
|
||||
#[derive(Clone)]
|
||||
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
|
||||
#[derive(Clone, Deserialize, Serialize)]
|
||||
pub struct Opts {
|
||||
pub is_running_problem_test: bool,
|
||||
|
||||
|
@ -446,8 +445,7 @@ fn print_debug_usage(app: &str) -> ! {
|
|||
process::exit(0)
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
|
||||
#[derive(Clone, Deserialize, Serialize)]
|
||||
pub enum OutputOptions {
|
||||
FileName(String),
|
||||
Stdout(f64)
|
||||
|
|
|
@ -20,8 +20,7 @@ lazy_static! {
|
|||
};
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Clone, Debug)]
|
||||
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
|
||||
#[derive(PartialEq, Clone, Debug, Deserialize, Serialize)]
|
||||
pub enum PrefValue {
|
||||
Boolean(bool),
|
||||
String(String),
|
||||
|
@ -92,8 +91,7 @@ impl ToJson for PrefValue {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub enum Pref {
|
||||
NoDefault(Arc<PrefValue>),
|
||||
WithDefault(Arc<PrefValue>, Option<Arc<PrefValue>>)
|
||||
|
|
|
@ -33,7 +33,7 @@ script_traits = {path = "../script_traits"}
|
|||
serde = "0.9"
|
||||
serde_derive = "0.9"
|
||||
style_traits = {path = "../style_traits"}
|
||||
servo_config = {path = "../config", features = ["servo"]}
|
||||
servo_config = {path = "../config"}
|
||||
servo_rand = {path = "../rand"}
|
||||
servo_remutex = {path = "../remutex"}
|
||||
servo_url = {path = "../url", features = ["servo"]}
|
||||
|
|
|
@ -24,7 +24,7 @@ msg = {path = "../msg"}
|
|||
num-traits = "0.1.32"
|
||||
serde = "0.9"
|
||||
serde_derive = "0.9"
|
||||
servo_config = {path = "../config", features = ["servo"]}
|
||||
servo_config = {path = "../config"}
|
||||
servo_url = {path = "../url", features = ["servo"]}
|
||||
url = {version = "1.2", features = ["heap_size"]}
|
||||
uuid = {version = "0.4", features = ["v4", "serde"]}
|
||||
|
|
|
@ -17,7 +17,7 @@ log = "0.3.5"
|
|||
serde = "0.9"
|
||||
serde_derive = "0.9"
|
||||
serde_json = "0.9"
|
||||
servo_config = {path = "../config", features = ["servo"]}
|
||||
servo_config = {path = "../config"}
|
||||
time = "0.1.12"
|
||||
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
|
|
|
@ -77,7 +77,7 @@ script_traits = {path = "../script_traits"}
|
|||
selectors = { path = "../selectors" }
|
||||
serde = "0.9"
|
||||
servo_atoms = {path = "../atoms"}
|
||||
servo_config = {path = "../config", features = ["servo"] }
|
||||
servo_config = {path = "../config"}
|
||||
servo_geometry = {path = "../geometry" }
|
||||
servo_rand = {path = "../rand"}
|
||||
servo_url = {path = "../url", features = ["servo"]}
|
||||
|
|
|
@ -22,7 +22,7 @@ net_traits = {path = "../net_traits"}
|
|||
regex = "0.2"
|
||||
rustc-serialize = "0.3.4"
|
||||
script_traits = {path = "../script_traits"}
|
||||
servo_config = {path = "../config", features = ["servo"]}
|
||||
servo_config = {path = "../config"}
|
||||
servo_url = {path = "../url", features = ["servo"]}
|
||||
url = {version = "1.2", features = ["heap_size"]}
|
||||
uuid = {version = "0.4", features = ["v4"]}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue