mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Move Stylo to its own repo (#31350)
* Remove packages that were moved to external repo
* Add workspace dependencies pointing to 2023-06-14 branch
* Fix servo-tidy.toml errors
* Update commit to include #31346
* Update commit to include servo/stylo#2
* Move css-properties.json lookup to target/doc/stylo
* Remove dependency on vendored mako in favour of pypi dependency
This also removes etc/ci/generate_workflow.py, which has been unused
since at least 9e71bd6a70
.
* Add temporary code to debug Windows test failures
* Fix failures on Windows due to custom target dir
* Update commit to include servo/stylo#3
* Fix license in tests/unit/style/build.rs
* Document how to build with local Stylo in Cargo.toml
This commit is contained in:
parent
b07505417e
commit
faf754dfa6
400 changed files with 112 additions and 123600 deletions
|
@ -10,5 +10,5 @@ path = "lib.rs"
|
|||
test = false
|
||||
|
||||
[dependencies]
|
||||
malloc_size_of = {path = "../../../components/malloc_size_of"}
|
||||
servo_arc = {path = "../../../components/servo_arc"}
|
||||
malloc_size_of = { workspace = true }
|
||||
servo_arc = { workspace = true }
|
||||
|
|
|
@ -16,9 +16,9 @@ euclid = { workspace = true }
|
|||
html5ever = { workspace = true }
|
||||
rayon = { workspace = true }
|
||||
serde_json = { workspace = true }
|
||||
selectors = {path = "../../../components/selectors" }
|
||||
servo_arc = {path = "../../../components/servo_arc"}
|
||||
servo_atoms = {path = "../../../components/atoms"}
|
||||
style = {path = "../../../components/style", features = ["servo"]}
|
||||
style_traits = {path = "../../../components/style_traits"}
|
||||
selectors = { workspace = true }
|
||||
servo_arc = { workspace = true }
|
||||
servo_atoms = { workspace = true }
|
||||
style = { workspace = true }
|
||||
style_traits = { workspace = true }
|
||||
url = { workspace = true }
|
||||
|
|
8
tests/unit/style/build.rs
Normal file
8
tests/unit/style/build.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
fn main() {
|
||||
// Dummy build script, just so the code can get env!("OUT_DIR").
|
||||
println!("cargo:rerun-if-changed=build.rs");
|
||||
}
|
|
@ -10,14 +10,17 @@ use serde_json::{self, Value};
|
|||
|
||||
#[test]
|
||||
fn properties_list_json() {
|
||||
let top = Path::new(&env::var("CARGO_MANIFEST_DIR").unwrap())
|
||||
// Four dotdots: /path/to/target(4)/debug(3)/build(2)/style_tests-*(1)/out
|
||||
// Do not ascend above the target dir, because it may not be called target
|
||||
// or even have a parent (see CARGO_TARGET_DIR).
|
||||
let target_dir = Path::new(env!("OUT_DIR"))
|
||||
.join("..")
|
||||
.join("..")
|
||||
.join("..")
|
||||
.join("..");
|
||||
let json = top
|
||||
.join("target")
|
||||
let json = target_dir
|
||||
.join("doc")
|
||||
.join("servo")
|
||||
.join("stylo")
|
||||
.join("css-properties.json");
|
||||
|
||||
let properties: Value = serde_json::from_reader(File::open(json).unwrap()).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue