diff options
author | Federico Mena Quintero <federico@gnome.org> | 2021-12-08 10:47:18 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2021-12-08 12:20:08 -0600 |
commit | 8a836c9e9fbc4a200a09f3367a95729e6d381f99 (patch) | |
tree | fbef28b00d14ad71513c14668311894f841b9b34 /Cargo.lock | |
parent | 19ac036fc01086e934901da976af962b59093b86 (diff) | |
download | librsvg-8a836c9e9fbc4a200a09f3367a95729e6d381f99.tar.gz |
Update to selectors 0.23.0 and cssparser 0.28.0 together
This is the latest version of selectors.
This is not the latest version of cssparser; the latest is 0.20.
However, selectors 0.23.0 depends on cssparser's traits, so they need to be
compatible versions. This is why we only update to cssparser 0.28.0.
This commit is mostly about adjusting to the API changes in selectors 0.23.0:
* Several of the associated types in the selectors::SelectorImpl trait
now must implement cssparser::ToCss instead of
fmt::Display (apparently to save allocations).
This requires us to use newtypes around the lower-level types we were
using for those associated types:
struct AttributeValue(String);
struct Identifier(markup5ever::LocalName);
struct LocalName(markup5ever::LocalName);
struct NamespacePrefix(markup5ever::Prefix);
Each of those newtypes implements From<&str> and ToCss. Specific
types have more specific requirements, like `impl AsRef<str> for AttributeValue`.
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/641>
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -332,9 +332,9 @@ dependencies = [ [[package]] name = "cssparser" -version = "0.27.2" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "754b69d351cdc2d8ee09ae203db831e005560fc6030da058f86ad60c92a9cb0a" +checksum = "1db8599a9761b371751fbf13e076fa03c6e1a78f8c5288e6ab9467f10a2322c1" dependencies = [ "cssparser-macros", "dtoa-short", @@ -1775,22 +1775,20 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" [[package]] name = "selectors" -version = "0.22.0" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df320f1889ac4ba6bc0cdc9c9af7af4bd64bb927bccdf32d81140dc1f9be12fe" +checksum = "fdea87c686be721aab36607728047801ee21561bfdbd6bf0da7ace2536d5879f" dependencies = [ "bitflags", "cssparser", "derive_more", "fxhash", "log", - "matches", "phf", "phf_codegen", "precomputed-hash", "servo_arc", "smallvec", - "thin-slice", ] [[package]] @@ -2105,12 +2103,6 @@ dependencies = [ ] [[package]] -name = "thin-slice" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c" - -[[package]] name = "thiserror" version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" |