mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
eb5a0d0bde
Now that rust-cssparser reports 1-based locations, bump the required cssparser version and remove get_location_with_offset. Previously, some code paths were not calling get_location_with_offset; see https://bugzilla.mozilla.org/show_bug.cgi?id=1398869 for some background. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix https://bugzilla.mozilla.org/show_bug.cgi?id=1398869 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [x] These changes do not require tests because tests are in rust-cssparser and/or M-C Source-Repo: https://github.com/servo/servo Source-Revision: 7746896bc4cf5a2a6dc78c00f643e4cff8e49da4 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 919aeee03abfd07cd5dbcc9d478dd98cc76f054e
90 lines
2.6 KiB
TOML
90 lines
2.6 KiB
TOML
[package]
|
|
name = "style"
|
|
version = "0.0.1"
|
|
authors = ["The Servo Project Developers"]
|
|
license = "MPL-2.0"
|
|
publish = false
|
|
|
|
build = "build.rs"
|
|
|
|
# https://github.com/rust-lang/cargo/issues/3544
|
|
links = "for some reason the links key is required to pass data around between build scripts"
|
|
|
|
[lib]
|
|
name = "style"
|
|
path = "lib.rs"
|
|
doctest = false
|
|
|
|
[features]
|
|
gecko = ["malloc_size_of", "malloc_size_of_derive", "nsstring_vendor", "num_cpus",
|
|
"style_traits/gecko", "fallible/known_system_malloc"]
|
|
use_bindgen = ["bindgen", "regex", "toml"]
|
|
servo = ["serde", "heapsize", "heapsize_derive",
|
|
"style_traits/servo", "servo_atoms", "servo_config", "html5ever",
|
|
"cssparser/heapsize", "cssparser/serde", "encoding", "smallvec/heapsizeof",
|
|
|
|
# FIXME: Uncomment when https://github.com/servo/servo/pull/16953 has landed:
|
|
#"arrayvec/use_union"
|
|
|
|
"servo_url"]
|
|
gecko_debug = ["nsstring_vendor/gecko_debug"]
|
|
|
|
[dependencies]
|
|
app_units = "0.5.5"
|
|
arrayvec = "0.3.20"
|
|
arraydeque = "0.2.3"
|
|
atomic_refcell = "0.1"
|
|
bitflags = "0.7"
|
|
byteorder = "1.0"
|
|
cfg-if = "0.1.0"
|
|
cssparser = "0.21.0"
|
|
encoding = {version = "0.2", optional = true}
|
|
euclid = "0.15"
|
|
fallible = { path = "../fallible" }
|
|
fnv = "1.0"
|
|
hashglobe = { path = "../hashglobe" }
|
|
heapsize = {version = "0.4", optional = true}
|
|
heapsize_derive = {version = "0.1", optional = true}
|
|
itertools = "0.5"
|
|
itoa = "0.3"
|
|
html5ever = {version = "0.19", optional = true}
|
|
lazy_static = "0.2"
|
|
log = "0.3"
|
|
malloc_size_of = { path = "../malloc_size_of", optional=true }
|
|
malloc_size_of_derive = { path = "../malloc_size_of_derive", optional=true }
|
|
matches = "0.1"
|
|
nsstring_vendor = {path = "gecko_bindings/nsstring_vendor", optional = true}
|
|
num_cpus = {version = "1.1.0", optional = true}
|
|
num-integer = "0.1.32"
|
|
num-traits = "0.1.32"
|
|
ordered-float = "0.4"
|
|
owning_ref = "0.3.3"
|
|
parking_lot = "0.4"
|
|
pdqsort = "0.1.0"
|
|
precomputed-hash = "0.1"
|
|
rayon = "0.8"
|
|
selectors = { path = "../selectors" }
|
|
serde = {version = "1.0", optional = true, features = ["derive"]}
|
|
servo_arc = { path = "../servo_arc" }
|
|
servo_atoms = {path = "../atoms", optional = true}
|
|
servo_config = {path = "../config", optional = true}
|
|
smallbitvec = "1.0"
|
|
smallvec = "0.4"
|
|
style_derive = {path = "../style_derive"}
|
|
style_traits = {path = "../style_traits"}
|
|
servo_url = {path = "../url", optional = true}
|
|
time = "0.1"
|
|
unicode-bidi = "0.3"
|
|
unicode-segmentation = "1.0"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
kernel32-sys = "0.2"
|
|
|
|
[build-dependencies]
|
|
lazy_static = "0.2"
|
|
log = "0.3"
|
|
bindgen = { version = "0.29", optional = true }
|
|
regex = {version = "0.2", optional = true}
|
|
walkdir = "1.0"
|
|
toml = {version = "0.2.1", optional = true, default-features = false}
|