mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Auto merge of #19476 - servo:default-members, r=nox
Use workspace.default-members to specify default crates for cargo build … and 'cargo test', etc. Include Servo and its unit tests, but not Stylo because that would try to compile the style crate with incompatible feature flags: https://github.com/rust-lang/cargo/issues/4463 `workspace.default-members` was added in https://github.com/rust-lang/cargo/pull/4743. Older Cargo versions ignore it. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19476) <!-- Reviewable:end -->
This commit is contained in:
commit
df68eea3f2
24 changed files with 52 additions and 71 deletions
15
Cargo.lock
generated
15
Cargo.lock
generated
|
@ -1050,7 +1050,6 @@ dependencies = [
|
||||||
"smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
"smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"style 0.0.1",
|
"style 0.0.1",
|
||||||
"style_traits 0.0.1",
|
"style_traits 0.0.1",
|
||||||
"stylo_tests 0.0.1",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -2807,24 +2806,10 @@ dependencies = [
|
||||||
"android_injected_glue 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"android_injected_glue 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"backtrace 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"backtrace 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"browserhtml 0.1.17 (git+https://github.com/browserhtml/browserhtml?branch=crate)",
|
"browserhtml 0.1.17 (git+https://github.com/browserhtml/browserhtml?branch=crate)",
|
||||||
"deny_public_fields_tests 0.0.1",
|
|
||||||
"gfx_tests 0.0.1",
|
|
||||||
"glutin_app 0.0.1",
|
"glutin_app 0.0.1",
|
||||||
"layout_tests 0.0.1",
|
|
||||||
"libservo 0.0.1",
|
"libservo 0.0.1",
|
||||||
"log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
"log 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"malloc_size_of_tests 0.0.1",
|
|
||||||
"metrics_tests 0.0.1",
|
|
||||||
"msg_tests 0.0.1",
|
|
||||||
"net_tests 0.0.1",
|
|
||||||
"net_traits_tests 0.0.1",
|
|
||||||
"profile_tests 0.0.1",
|
|
||||||
"script_plugins_tests 0.0.1",
|
|
||||||
"script_tests 0.0.1",
|
|
||||||
"servo_config_tests 0.0.1",
|
|
||||||
"servo_remutex_tests 0.0.1",
|
|
||||||
"sig 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
"sig 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"style_tests 0.0.1",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
12
Cargo.toml
12
Cargo.toml
|
@ -1,8 +1,16 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
members = [
|
members = [
|
||||||
"ports/cef",
|
|
||||||
"ports/geckolib",
|
|
||||||
"ports/servo",
|
"ports/servo",
|
||||||
|
"tests/unit/*",
|
||||||
|
|
||||||
|
"ports/geckolib",
|
||||||
|
"ports/geckolib/tests",
|
||||||
|
|
||||||
|
"ports/cef",
|
||||||
|
]
|
||||||
|
default-members = [
|
||||||
|
"ports/servo",
|
||||||
|
"tests/unit/*",
|
||||||
]
|
]
|
||||||
exclude = [".cargo"]
|
exclude = [".cargo"]
|
||||||
|
|
||||||
|
|
|
@ -19,5 +19,9 @@ pub fn dom_struct(args: TokenStream, input: TokenStream) -> TokenStream {
|
||||||
#[must_root]
|
#[must_root]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Work around https://github.com/rust-lang/rust/issues/46489
|
||||||
|
let attributes = attributes.to_string().parse().unwrap();
|
||||||
|
|
||||||
iter::once(attributes).chain(iter::once(input)).collect()
|
iter::once(attributes).chain(iter::once(input)).collect()
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,3 @@ servo_arc = {path = "../../components/servo_arc"}
|
||||||
smallvec = "0.6"
|
smallvec = "0.6"
|
||||||
style = {path = "../../components/style", features = ["gecko"]}
|
style = {path = "../../components/style", features = ["gecko"]}
|
||||||
style_traits = {path = "../../components/style_traits"}
|
style_traits = {path = "../../components/style_traits"}
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
stylo_tests = {path = "../../tests/unit/stylo"}
|
|
||||||
|
|
|
@ -13,22 +13,6 @@ path = "main.rs"
|
||||||
test = false
|
test = false
|
||||||
bench = false
|
bench = false
|
||||||
|
|
||||||
[dev-dependencies]
|
|
||||||
deny_public_fields_tests = {path = "../../tests/unit/deny_public_fields"}
|
|
||||||
gfx_tests = {path = "../../tests/unit/gfx"}
|
|
||||||
layout_tests = {path = "../../tests/unit/layout"}
|
|
||||||
malloc_size_of_tests = {path = "../../tests/unit/malloc_size_of"}
|
|
||||||
metrics_tests = {path = "../../tests/unit/metrics"}
|
|
||||||
msg_tests = {path = "../../tests/unit/msg"}
|
|
||||||
net_tests = {path = "../../tests/unit/net"}
|
|
||||||
net_traits_tests = {path = "../../tests/unit/net_traits"}
|
|
||||||
profile_tests = {path = "../../tests/unit/profile"}
|
|
||||||
script_tests = {path = "../../tests/unit/script"}
|
|
||||||
script_plugins_tests = {path = "../../tests/unit/script_plugins"}
|
|
||||||
servo_config_tests = {path = "../../tests/unit/servo_config"}
|
|
||||||
servo_remutex_tests = {path = "../../tests/unit/servo_remutex"}
|
|
||||||
style_tests = {path = "../../tests/unit/style"}
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["unstable", "default-except-unstable"]
|
default = ["unstable", "default-except-unstable"]
|
||||||
default-except-unstable = ["webdriver", "max_log_level"]
|
default-except-unstable = ["webdriver", "max_log_level"]
|
||||||
|
@ -38,7 +22,7 @@ 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", "profile_tests/unstable"]
|
unstable = ["libservo/unstable"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
backtrace = "0.3"
|
backtrace = "0.3"
|
||||||
|
|
|
@ -402,8 +402,7 @@ class MachCommands(CommandBase):
|
||||||
self.ensure_clobbered()
|
self.ensure_clobbered()
|
||||||
|
|
||||||
ret = None
|
ret = None
|
||||||
opts = []
|
opts = ["-p", "embedding"]
|
||||||
opts += ["--manifest-path", self.cef_manifest()]
|
|
||||||
|
|
||||||
if jobs is not None:
|
if jobs is not None:
|
||||||
opts += ["-j", jobs]
|
opts += ["-j", jobs]
|
||||||
|
@ -458,8 +457,7 @@ class MachCommands(CommandBase):
|
||||||
env = self.build_env(is_build=True, geckolib=True)
|
env = self.build_env(is_build=True, geckolib=True)
|
||||||
|
|
||||||
ret = None
|
ret = None
|
||||||
opts = []
|
opts = ["-p", "geckoservo"]
|
||||||
opts += ["--manifest-path", self.geckolib_manifest()]
|
|
||||||
features = []
|
features = []
|
||||||
|
|
||||||
if jobs is not None:
|
if jobs is not None:
|
||||||
|
|
|
@ -94,7 +94,7 @@ class MachCommands(CommandBase):
|
||||||
'params', default=None, nargs='...',
|
'params', default=None, nargs='...',
|
||||||
help="Command-line arguments to be passed through to cargo check")
|
help="Command-line arguments to be passed through to cargo check")
|
||||||
def check_geckolib(self, params):
|
def check_geckolib(self, params):
|
||||||
return self.run_cargo(params, check=True, geckolib=True)
|
return self.run_cargo(["-p", "geckoservo"] + (params or []), check=True, geckolib=True)
|
||||||
|
|
||||||
@Command('cargo-update',
|
@Command('cargo-update',
|
||||||
description='Same as update-cargo',
|
description='Same as update-cargo',
|
||||||
|
|
|
@ -254,6 +254,9 @@ class MachCommands(CommandBase):
|
||||||
env = self.build_env()
|
env = self.build_env()
|
||||||
env["RUST_BACKTRACE"] = "1"
|
env["RUST_BACKTRACE"] = "1"
|
||||||
|
|
||||||
|
# Work around https://github.com/rust-lang/cargo/issues/4790
|
||||||
|
del env["RUSTDOCFLAGS"]
|
||||||
|
|
||||||
if "msvc" in host_triple():
|
if "msvc" in host_triple():
|
||||||
# on MSVC, we need some DLLs in the path. They were copied
|
# on MSVC, we need some DLLs in the path. They were copied
|
||||||
# in to the servo.exe build dir, so just point PATH to that.
|
# in to the servo.exe build dir, so just point PATH to that.
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
nightly-2017-11-14
|
nightly-2017-12-07
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
#![cfg(test)]
|
||||||
|
|
||||||
extern crate gfx;
|
extern crate gfx;
|
||||||
|
|
||||||
#[cfg(test)] mod text_util;
|
mod text_util;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
extern crate layout;
|
#[cfg(all(test, target_pointer_width = "64"))] extern crate layout;
|
||||||
#[macro_use] extern crate size_of_test;
|
#[cfg(all(test, target_pointer_width = "64"))] #[macro_use] extern crate size_of_test;
|
||||||
|
|
||||||
#[cfg(all(test, target_pointer_width = "64"))] mod size_of;
|
#[cfg(all(test, target_pointer_width = "64"))] mod size_of;
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
#![cfg(test)]
|
||||||
|
|
||||||
extern crate euclid;
|
extern crate euclid;
|
||||||
extern crate gfx;
|
extern crate gfx;
|
||||||
extern crate gfx_traits;
|
extern crate gfx_traits;
|
||||||
|
@ -13,7 +15,5 @@ extern crate profile_traits;
|
||||||
extern crate style;
|
extern crate style;
|
||||||
extern crate time;
|
extern crate time;
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod interactive_time;
|
mod interactive_time;
|
||||||
#[cfg(test)]
|
|
||||||
mod paint_time;
|
mod paint_time;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
extern crate msg;
|
#[cfg(all(test, target_pointer_width = "64"))] extern crate msg;
|
||||||
#[macro_use] extern crate size_of_test;
|
#[cfg(all(test, target_pointer_width = "64"))] #[macro_use] extern crate size_of_test;
|
||||||
|
|
||||||
#[cfg(all(test, target_pointer_width = "64"))] mod size_of;
|
#[cfg(all(test, target_pointer_width = "64"))] mod size_of;
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
#![cfg(test)]
|
||||||
|
|
||||||
extern crate cookie as cookie_rs;
|
extern crate cookie as cookie_rs;
|
||||||
extern crate devtools_traits;
|
extern crate devtools_traits;
|
||||||
extern crate flate2;
|
extern crate flate2;
|
||||||
|
@ -19,18 +21,18 @@ extern crate time;
|
||||||
extern crate unicase;
|
extern crate unicase;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
|
||||||
#[cfg(test)] mod chrome_loader;
|
mod chrome_loader;
|
||||||
#[cfg(test)] mod cookie;
|
mod cookie;
|
||||||
#[cfg(test)] mod cookie_http_state;
|
mod cookie_http_state;
|
||||||
#[cfg(test)] mod data_loader;
|
mod data_loader;
|
||||||
#[cfg(test)] mod file_loader;
|
mod fetch;
|
||||||
#[cfg(test)] mod fetch;
|
mod file_loader;
|
||||||
#[cfg(test)] mod mime_classifier;
|
mod filemanager_thread;
|
||||||
#[cfg(test)] mod resource_thread;
|
mod hsts;
|
||||||
#[cfg(test)] mod hsts;
|
mod http_loader;
|
||||||
#[cfg(test)] mod http_loader;
|
mod mime_classifier;
|
||||||
#[cfg(test)] mod filemanager_thread;
|
mod resource_thread;
|
||||||
#[cfg(test)] mod subresource_integrity;
|
mod subresource_integrity;
|
||||||
|
|
||||||
use devtools_traits::DevtoolsControlMsg;
|
use devtools_traits::DevtoolsControlMsg;
|
||||||
use hyper::server::{Handler, Listening, Server};
|
use hyper::server::{Handler, Listening, Server};
|
||||||
|
|
|
@ -2,10 +2,12 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
#![cfg(test)]
|
||||||
|
|
||||||
extern crate net_traits;
|
extern crate net_traits;
|
||||||
|
|
||||||
#[cfg(test)] mod image;
|
mod image;
|
||||||
#[cfg(test)] mod pub_domains;
|
mod pub_domains;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_trim_http_whitespace() {
|
fn test_trim_http_whitespace() {
|
||||||
|
|
|
@ -9,9 +9,6 @@ name = "profile_tests"
|
||||||
path = "lib.rs"
|
path = "lib.rs"
|
||||||
doctest = false
|
doctest = false
|
||||||
|
|
||||||
[features]
|
|
||||||
unstable = ["servo_allocator/unstable"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ipc-channel = "0.9"
|
ipc-channel = "0.9"
|
||||||
profile = {path = "../../../components/profile"}
|
profile = {path = "../../../components/profile"}
|
||||||
|
|
|
@ -2,10 +2,11 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
#![cfg(test)]
|
||||||
|
|
||||||
extern crate ipc_channel;
|
extern crate ipc_channel;
|
||||||
extern crate profile;
|
extern crate profile;
|
||||||
extern crate profile_traits;
|
extern crate profile_traits;
|
||||||
extern crate servo_allocator;
|
extern crate servo_allocator;
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod time;
|
mod time;
|
||||||
|
|
|
@ -32,7 +32,7 @@ mod parsing;
|
||||||
mod properties;
|
mod properties;
|
||||||
mod rule_tree;
|
mod rule_tree;
|
||||||
mod size_of;
|
mod size_of;
|
||||||
#[path = "../stylo/specified_values.rs"]
|
#[path = "../../../ports/geckolib/tests/specified_values.rs"]
|
||||||
mod specified_values;
|
mod specified_values;
|
||||||
mod str;
|
mod str;
|
||||||
mod stylesheets;
|
mod stylesheets;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue