css-inline 0.21.1__tar.gz → 0.21.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {css_inline-0.21.1 → css_inline-0.21.3}/PKG-INFO +1 -1
- {css_inline-0.21.1 → css_inline-0.21.3}/bindings/python/CHANGELOG.md +15 -1
- {css_inline-0.21.1 → css_inline-0.21.3}/bindings/python/Cargo.lock +102 -111
- {css_inline-0.21.1 → css_inline-0.21.3}/bindings/python/Cargo.toml +1 -1
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/Cargo.toml +1 -1
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/resolver.rs +22 -5
- {css_inline-0.21.1 → css_inline-0.21.3}/pyproject.toml +0 -3
- {css_inline-0.21.1 → css_inline-0.21.3}/LICENSE +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/README.md +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/bindings/python/README.md +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/bindings/python/build.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/bindings/python/src/lib.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/README.md +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/benches/inliner.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/rustfmt.toml +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/error.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/attributes.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/document.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/element.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/iter.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/mod.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/node.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/parser.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/attr_value.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/local_name.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/mod.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/parser.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/pseudo_classes.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/pseudo_elements.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/selector_impl.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/serializer.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/lib.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/main.rs +0 -0
- {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/parser.rs +0 -0
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.21.3] - 2026-09-14
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Pyodide 3.14 wheels for the `pyemscripten_2026_0` platform. [#786](https://github.com/Stranger6667/css-inline/issues/786)
|
|
10
|
+
|
|
11
|
+
## [0.21.2] - 2026-08-24
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- `file://` stylesheet URLs not percent-decoded and broken on Windows drive letters.
|
|
16
|
+
|
|
5
17
|
## [0.21.1] - 2026-08-08
|
|
6
18
|
|
|
7
19
|
### Fixed
|
|
@@ -591,7 +603,9 @@
|
|
|
591
603
|
|
|
592
604
|
- Initial public release
|
|
593
605
|
|
|
594
|
-
[Unreleased]: https://github.com/Stranger6667/css-inline/compare/python-v0.21.
|
|
606
|
+
[Unreleased]: https://github.com/Stranger6667/css-inline/compare/python-v0.21.3...HEAD
|
|
607
|
+
[0.21.3]: https://github.com/Stranger6667/css-inline/compare/python-v0.21.2...python-v0.21.3
|
|
608
|
+
[0.21.2]: https://github.com/Stranger6667/css-inline/compare/python-v0.21.1...python-v0.21.2
|
|
595
609
|
[0.21.1]: https://github.com/Stranger6667/css-inline/compare/python-v0.21.0...python-v0.21.1
|
|
596
610
|
[0.21.0]: https://github.com/Stranger6667/css-inline/compare/python-v0.20.2...python-v0.21.0
|
|
597
611
|
[0.20.2]: https://github.com/Stranger6667/css-inline/compare/python-v0.20.1...python-v0.20.2
|
|
@@ -37,9 +37,9 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
|
|
37
37
|
|
|
38
38
|
[[package]]
|
|
39
39
|
name = "bitflags"
|
|
40
|
-
version = "2.13.
|
|
40
|
+
version = "2.13.2"
|
|
41
41
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
42
|
-
checksum = "
|
|
42
|
+
checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
|
|
43
43
|
|
|
44
44
|
[[package]]
|
|
45
45
|
name = "built"
|
|
@@ -77,9 +77,9 @@ dependencies = [
|
|
|
77
77
|
|
|
78
78
|
[[package]]
|
|
79
79
|
name = "cc"
|
|
80
|
-
version = "1.4.
|
|
80
|
+
version = "1.4.6"
|
|
81
81
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
82
|
-
checksum = "
|
|
82
|
+
checksum = "a3eb0f42d6c360dc3f8a821f6bf2fdea7f72bfd36b3076eb0e6d1e9e0752fff4"
|
|
83
83
|
dependencies = [
|
|
84
84
|
"find-msvc-tools",
|
|
85
85
|
"shlex",
|
|
@@ -99,9 +99,9 @@ checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"
|
|
|
99
99
|
|
|
100
100
|
[[package]]
|
|
101
101
|
name = "chacha20"
|
|
102
|
-
version = "0.10.
|
|
102
|
+
version = "0.10.2"
|
|
103
103
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
104
|
-
checksum = "
|
|
104
|
+
checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
|
|
105
105
|
dependencies = [
|
|
106
106
|
"cfg-if",
|
|
107
107
|
"cpufeatures",
|
|
@@ -127,18 +127,18 @@ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
|
|
|
127
127
|
|
|
128
128
|
[[package]]
|
|
129
129
|
name = "cpufeatures"
|
|
130
|
-
version = "0.3.
|
|
130
|
+
version = "0.3.1"
|
|
131
131
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
132
|
-
checksum = "
|
|
132
|
+
checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
|
|
133
133
|
dependencies = [
|
|
134
134
|
"libc",
|
|
135
135
|
]
|
|
136
136
|
|
|
137
137
|
[[package]]
|
|
138
138
|
name = "crossbeam-deque"
|
|
139
|
-
version = "0.8.
|
|
139
|
+
version = "0.8.8"
|
|
140
140
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
141
|
-
checksum = "
|
|
141
|
+
checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
|
|
142
142
|
dependencies = [
|
|
143
143
|
"crossbeam-epoch",
|
|
144
144
|
"crossbeam-utils",
|
|
@@ -146,22 +146,22 @@ dependencies = [
|
|
|
146
146
|
|
|
147
147
|
[[package]]
|
|
148
148
|
name = "crossbeam-epoch"
|
|
149
|
-
version = "0.9.
|
|
149
|
+
version = "0.9.21"
|
|
150
150
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
151
|
-
checksum = "
|
|
151
|
+
checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
|
|
152
152
|
dependencies = [
|
|
153
153
|
"crossbeam-utils",
|
|
154
154
|
]
|
|
155
155
|
|
|
156
156
|
[[package]]
|
|
157
157
|
name = "crossbeam-utils"
|
|
158
|
-
version = "0.8.
|
|
158
|
+
version = "0.8.23"
|
|
159
159
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
160
|
-
checksum = "
|
|
160
|
+
checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
|
|
161
161
|
|
|
162
162
|
[[package]]
|
|
163
163
|
name = "css-inline"
|
|
164
|
-
version = "0.21.
|
|
164
|
+
version = "0.21.2"
|
|
165
165
|
dependencies = [
|
|
166
166
|
"cssparser",
|
|
167
167
|
"html5ever",
|
|
@@ -177,7 +177,7 @@ dependencies = [
|
|
|
177
177
|
|
|
178
178
|
[[package]]
|
|
179
179
|
name = "css-inline-python"
|
|
180
|
-
version = "0.21.
|
|
180
|
+
version = "0.21.3"
|
|
181
181
|
dependencies = [
|
|
182
182
|
"built",
|
|
183
183
|
"css-inline",
|
|
@@ -202,12 +202,12 @@ dependencies = [
|
|
|
202
202
|
|
|
203
203
|
[[package]]
|
|
204
204
|
name = "cssparser-macros"
|
|
205
|
-
version = "0.7.
|
|
205
|
+
version = "0.7.1"
|
|
206
206
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
207
|
-
checksum = "
|
|
207
|
+
checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a"
|
|
208
208
|
dependencies = [
|
|
209
209
|
"quote",
|
|
210
|
-
"syn
|
|
210
|
+
"syn 3.0.5",
|
|
211
211
|
]
|
|
212
212
|
|
|
213
213
|
[[package]]
|
|
@@ -239,7 +239,7 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
|
|
|
239
239
|
dependencies = [
|
|
240
240
|
"proc-macro2",
|
|
241
241
|
"quote",
|
|
242
|
-
"syn 3.0.
|
|
242
|
+
"syn 3.0.5",
|
|
243
243
|
]
|
|
244
244
|
|
|
245
245
|
[[package]]
|
|
@@ -259,9 +259,9 @@ dependencies = [
|
|
|
259
259
|
|
|
260
260
|
[[package]]
|
|
261
261
|
name = "either"
|
|
262
|
-
version = "1.
|
|
262
|
+
version = "1.18.0"
|
|
263
263
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
264
|
-
checksum = "
|
|
264
|
+
checksum = "252afb9ae5eaa683babdc6a068b3f5726eb19e05070c731f9b2a23a7c3e8ed34"
|
|
265
265
|
|
|
266
266
|
[[package]]
|
|
267
267
|
name = "equivalent"
|
|
@@ -277,9 +277,9 @@ checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
|
|
|
277
277
|
|
|
278
278
|
[[package]]
|
|
279
279
|
name = "find-msvc-tools"
|
|
280
|
-
version = "0.1.
|
|
280
|
+
version = "0.1.12"
|
|
281
281
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
282
|
-
checksum = "
|
|
282
|
+
checksum = "3e0f1c7c3a72c66fd80abe965175f7523475c0489a87d3ff9d6e8c87d87a9d2d"
|
|
283
283
|
|
|
284
284
|
[[package]]
|
|
285
285
|
name = "foldhash"
|
|
@@ -298,9 +298,9 @@ dependencies = [
|
|
|
298
298
|
|
|
299
299
|
[[package]]
|
|
300
300
|
name = "futures-channel"
|
|
301
|
-
version = "0.3.
|
|
301
|
+
version = "0.3.34"
|
|
302
302
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
303
|
-
checksum = "
|
|
303
|
+
checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"
|
|
304
304
|
dependencies = [
|
|
305
305
|
"futures-core",
|
|
306
306
|
"futures-sink",
|
|
@@ -308,33 +308,33 @@ dependencies = [
|
|
|
308
308
|
|
|
309
309
|
[[package]]
|
|
310
310
|
name = "futures-core"
|
|
311
|
-
version = "0.3.
|
|
311
|
+
version = "0.3.34"
|
|
312
312
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
313
|
-
checksum = "
|
|
313
|
+
checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
|
|
314
314
|
|
|
315
315
|
[[package]]
|
|
316
316
|
name = "futures-io"
|
|
317
|
-
version = "0.3.
|
|
317
|
+
version = "0.3.34"
|
|
318
318
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
319
|
-
checksum = "
|
|
319
|
+
checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"
|
|
320
320
|
|
|
321
321
|
[[package]]
|
|
322
322
|
name = "futures-sink"
|
|
323
|
-
version = "0.3.
|
|
323
|
+
version = "0.3.34"
|
|
324
324
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
325
|
-
checksum = "
|
|
325
|
+
checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"
|
|
326
326
|
|
|
327
327
|
[[package]]
|
|
328
328
|
name = "futures-task"
|
|
329
|
-
version = "0.3.
|
|
329
|
+
version = "0.3.34"
|
|
330
330
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
331
|
-
checksum = "
|
|
331
|
+
checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
|
|
332
332
|
|
|
333
333
|
[[package]]
|
|
334
334
|
name = "futures-util"
|
|
335
|
-
version = "0.3.
|
|
335
|
+
version = "0.3.34"
|
|
336
336
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
337
|
-
checksum = "
|
|
337
|
+
checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
|
|
338
338
|
dependencies = [
|
|
339
339
|
"futures-core",
|
|
340
340
|
"futures-io",
|
|
@@ -421,9 +421,9 @@ dependencies = [
|
|
|
421
421
|
|
|
422
422
|
[[package]]
|
|
423
423
|
name = "http-body-util"
|
|
424
|
-
version = "0.1.
|
|
424
|
+
version = "0.1.5"
|
|
425
425
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
426
|
-
checksum = "
|
|
426
|
+
checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c"
|
|
427
427
|
dependencies = [
|
|
428
428
|
"bytes",
|
|
429
429
|
"futures-core",
|
|
@@ -440,9 +440,9 @@ checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
|
|
|
440
440
|
|
|
441
441
|
[[package]]
|
|
442
442
|
name = "hyper"
|
|
443
|
-
version = "1.11.
|
|
443
|
+
version = "1.11.1"
|
|
444
444
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
445
|
-
checksum = "
|
|
445
|
+
checksum = "27b501faa50e7a26c3d3560ca625132f4078a17771f4810baf70475ae48cbe43"
|
|
446
446
|
dependencies = [
|
|
447
447
|
"atomic-waker",
|
|
448
448
|
"bytes",
|
|
@@ -625,9 +625,9 @@ dependencies = [
|
|
|
625
625
|
|
|
626
626
|
[[package]]
|
|
627
627
|
name = "indexmap"
|
|
628
|
-
version = "2.14.
|
|
628
|
+
version = "2.14.2"
|
|
629
629
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
630
|
-
checksum = "
|
|
630
|
+
checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
|
|
631
631
|
dependencies = [
|
|
632
632
|
"equivalent",
|
|
633
633
|
"hashbrown",
|
|
@@ -635,9 +635,9 @@ dependencies = [
|
|
|
635
635
|
|
|
636
636
|
[[package]]
|
|
637
637
|
name = "ipnet"
|
|
638
|
-
version = "2.12.
|
|
638
|
+
version = "2.12.2"
|
|
639
639
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
640
|
-
checksum = "
|
|
640
|
+
checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0"
|
|
641
641
|
|
|
642
642
|
[[package]]
|
|
643
643
|
name = "itoa"
|
|
@@ -647,9 +647,9 @@ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
|
647
647
|
|
|
648
648
|
[[package]]
|
|
649
649
|
name = "js-sys"
|
|
650
|
-
version = "0.3.
|
|
650
|
+
version = "0.3.105"
|
|
651
651
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
652
|
-
checksum = "
|
|
652
|
+
checksum = "ce57d20d1ea864ce2ac172ab472d409214f4fd359f0b2a2775abdf522e2af99e"
|
|
653
653
|
dependencies = [
|
|
654
654
|
"cfg-if",
|
|
655
655
|
"futures-util",
|
|
@@ -664,9 +664,9 @@ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
|
|
|
664
664
|
|
|
665
665
|
[[package]]
|
|
666
666
|
name = "litemap"
|
|
667
|
-
version = "0.8.
|
|
667
|
+
version = "0.8.3"
|
|
668
668
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
669
|
-
checksum = "
|
|
669
|
+
checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
|
|
670
670
|
|
|
671
671
|
[[package]]
|
|
672
672
|
name = "lock_api"
|
|
@@ -679,24 +679,24 @@ dependencies = [
|
|
|
679
679
|
|
|
680
680
|
[[package]]
|
|
681
681
|
name = "log"
|
|
682
|
-
version = "0.4.
|
|
682
|
+
version = "0.4.34"
|
|
683
683
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
684
|
-
checksum = "
|
|
684
|
+
checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
|
|
685
685
|
|
|
686
686
|
[[package]]
|
|
687
687
|
name = "lru"
|
|
688
|
-
version = "0.18.
|
|
688
|
+
version = "0.18.4"
|
|
689
689
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
690
|
-
checksum = "
|
|
690
|
+
checksum = "ff9840bcc50b71349309900da0ce7279aa336ae71d73250b07998932c7d97c25"
|
|
691
691
|
dependencies = [
|
|
692
692
|
"hashbrown",
|
|
693
693
|
]
|
|
694
694
|
|
|
695
695
|
[[package]]
|
|
696
696
|
name = "lru-slab"
|
|
697
|
-
version = "0.1.
|
|
697
|
+
version = "0.1.3"
|
|
698
698
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
699
|
-
checksum = "
|
|
699
|
+
checksum = "4050469837a6ff301cd14c1f8f24f88549e6d548f24f64e2148eb0f72cebc51f"
|
|
700
700
|
|
|
701
701
|
[[package]]
|
|
702
702
|
name = "markup5ever"
|
|
@@ -717,9 +717,9 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
|
717
717
|
|
|
718
718
|
[[package]]
|
|
719
719
|
name = "mio"
|
|
720
|
-
version = "1.2.
|
|
720
|
+
version = "1.2.3"
|
|
721
721
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
722
|
-
checksum = "
|
|
722
|
+
checksum = "4b18443e9c262bfe8fa82f51666e2642c53393f7e5c27b3e1aeab922cff5b9d8"
|
|
723
723
|
dependencies = [
|
|
724
724
|
"libc",
|
|
725
725
|
"wasi",
|
|
@@ -837,15 +837,15 @@ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
|
|
837
837
|
|
|
838
838
|
[[package]]
|
|
839
839
|
name = "portable-atomic"
|
|
840
|
-
version = "1.
|
|
840
|
+
version = "1.15.0"
|
|
841
841
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
842
|
-
checksum = "
|
|
842
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
843
843
|
|
|
844
844
|
[[package]]
|
|
845
845
|
name = "potential_utf"
|
|
846
|
-
version = "0.1.
|
|
846
|
+
version = "0.1.6"
|
|
847
847
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
848
|
-
checksum = "
|
|
848
|
+
checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
|
|
849
849
|
dependencies = [
|
|
850
850
|
"zerovec",
|
|
851
851
|
]
|
|
@@ -950,9 +950,9 @@ dependencies = [
|
|
|
950
950
|
|
|
951
951
|
[[package]]
|
|
952
952
|
name = "quinn-proto"
|
|
953
|
-
version = "0.11.
|
|
953
|
+
version = "0.11.17"
|
|
954
954
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
955
|
-
checksum = "
|
|
955
|
+
checksum = "04759210543be93709136e28212294a659ef5001836ff4eab4d663e4529bba83"
|
|
956
956
|
dependencies = [
|
|
957
957
|
"bytes",
|
|
958
958
|
"getrandom 0.4.3",
|
|
@@ -1125,9 +1125,9 @@ dependencies = [
|
|
|
1125
1125
|
|
|
1126
1126
|
[[package]]
|
|
1127
1127
|
name = "rustls"
|
|
1128
|
-
version = "0.23.
|
|
1128
|
+
version = "0.23.44"
|
|
1129
1129
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1130
|
-
checksum = "
|
|
1130
|
+
checksum = "6725596c3f2c3a0aef021139e145d4eafe314a6623e4680ca83852b2c67ab2ba"
|
|
1131
1131
|
dependencies = [
|
|
1132
1132
|
"once_cell",
|
|
1133
1133
|
"ring",
|
|
@@ -1149,9 +1149,9 @@ dependencies = [
|
|
|
1149
1149
|
|
|
1150
1150
|
[[package]]
|
|
1151
1151
|
name = "rustls-webpki"
|
|
1152
|
-
version = "0.103.
|
|
1152
|
+
version = "0.103.15"
|
|
1153
1153
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1154
|
-
checksum = "
|
|
1154
|
+
checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"
|
|
1155
1155
|
dependencies = [
|
|
1156
1156
|
"ring",
|
|
1157
1157
|
"rustls-pki-types",
|
|
@@ -1232,7 +1232,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
|
1232
1232
|
dependencies = [
|
|
1233
1233
|
"proc-macro2",
|
|
1234
1234
|
"quote",
|
|
1235
|
-
"syn 3.0.
|
|
1235
|
+
"syn 3.0.5",
|
|
1236
1236
|
]
|
|
1237
1237
|
|
|
1238
1238
|
[[package]]
|
|
@@ -1298,9 +1298,9 @@ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|
|
1298
1298
|
|
|
1299
1299
|
[[package]]
|
|
1300
1300
|
name = "smallvec"
|
|
1301
|
-
version = "1.
|
|
1301
|
+
version = "1.16.1"
|
|
1302
1302
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1303
|
-
checksum = "
|
|
1303
|
+
checksum = "ba467056f1b547ed52077911161fc86985becbc60e8e1857c8a144dab0def891"
|
|
1304
1304
|
|
|
1305
1305
|
[[package]]
|
|
1306
1306
|
name = "socket2"
|
|
@@ -1361,9 +1361,9 @@ dependencies = [
|
|
|
1361
1361
|
|
|
1362
1362
|
[[package]]
|
|
1363
1363
|
name = "syn"
|
|
1364
|
-
version = "3.0.
|
|
1364
|
+
version = "3.0.5"
|
|
1365
1365
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1366
|
-
checksum = "
|
|
1366
|
+
checksum = "12df2e0110f65b775f769bb17ef989067a1d931b2eb822bd4346631eeada89f9"
|
|
1367
1367
|
dependencies = [
|
|
1368
1368
|
"proc-macro2",
|
|
1369
1369
|
"quote",
|
|
@@ -1422,14 +1422,14 @@ checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af"
|
|
|
1422
1422
|
dependencies = [
|
|
1423
1423
|
"proc-macro2",
|
|
1424
1424
|
"quote",
|
|
1425
|
-
"syn 3.0.
|
|
1425
|
+
"syn 3.0.5",
|
|
1426
1426
|
]
|
|
1427
1427
|
|
|
1428
1428
|
[[package]]
|
|
1429
1429
|
name = "tinystr"
|
|
1430
|
-
version = "0.8.
|
|
1430
|
+
version = "0.8.4"
|
|
1431
1431
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1432
|
-
checksum = "
|
|
1432
|
+
checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643"
|
|
1433
1433
|
dependencies = [
|
|
1434
1434
|
"displaydoc",
|
|
1435
1435
|
"zerovec",
|
|
@@ -1437,18 +1437,9 @@ dependencies = [
|
|
|
1437
1437
|
|
|
1438
1438
|
[[package]]
|
|
1439
1439
|
name = "tinyvec"
|
|
1440
|
-
version = "1.
|
|
1441
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1442
|
-
checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f"
|
|
1443
|
-
dependencies = [
|
|
1444
|
-
"tinyvec_macros",
|
|
1445
|
-
]
|
|
1446
|
-
|
|
1447
|
-
[[package]]
|
|
1448
|
-
name = "tinyvec_macros"
|
|
1449
|
-
version = "0.1.1"
|
|
1440
|
+
version = "1.13.3"
|
|
1450
1441
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1451
|
-
checksum = "
|
|
1442
|
+
checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
|
|
1452
1443
|
|
|
1453
1444
|
[[package]]
|
|
1454
1445
|
name = "tokio"
|
|
@@ -1466,9 +1457,9 @@ dependencies = [
|
|
|
1466
1457
|
|
|
1467
1458
|
[[package]]
|
|
1468
1459
|
name = "tokio-rustls"
|
|
1469
|
-
version = "0.26.
|
|
1460
|
+
version = "0.26.5"
|
|
1470
1461
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1471
|
-
checksum = "
|
|
1462
|
+
checksum = "b0c85f2c3ef0b1cd58b36682f4b17aaa995f0e5db534d85692b4903abce21f67"
|
|
1472
1463
|
dependencies = [
|
|
1473
1464
|
"rustls",
|
|
1474
1465
|
"tokio",
|
|
@@ -1632,9 +1623,9 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
|
|
1632
1623
|
|
|
1633
1624
|
[[package]]
|
|
1634
1625
|
name = "wasm-bindgen"
|
|
1635
|
-
version = "0.2.
|
|
1626
|
+
version = "0.2.128"
|
|
1636
1627
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1637
|
-
checksum = "
|
|
1628
|
+
checksum = "aecb87a33d3b0c5e3b7aa46336eaf486cffafbd281b195e4c8b80d50df2351bf"
|
|
1638
1629
|
dependencies = [
|
|
1639
1630
|
"cfg-if",
|
|
1640
1631
|
"once_cell",
|
|
@@ -1645,9 +1636,9 @@ dependencies = [
|
|
|
1645
1636
|
|
|
1646
1637
|
[[package]]
|
|
1647
1638
|
name = "wasm-bindgen-futures"
|
|
1648
|
-
version = "0.4.
|
|
1639
|
+
version = "0.4.78"
|
|
1649
1640
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1650
|
-
checksum = "
|
|
1641
|
+
checksum = "6ef4c5d3d2cdf5c54f4231181768f5510842e350db025faf1f7163b1030ed928"
|
|
1651
1642
|
dependencies = [
|
|
1652
1643
|
"js-sys",
|
|
1653
1644
|
"wasm-bindgen",
|
|
@@ -1655,9 +1646,9 @@ dependencies = [
|
|
|
1655
1646
|
|
|
1656
1647
|
[[package]]
|
|
1657
1648
|
name = "wasm-bindgen-macro"
|
|
1658
|
-
version = "0.2.
|
|
1649
|
+
version = "0.2.128"
|
|
1659
1650
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1660
|
-
checksum = "
|
|
1651
|
+
checksum = "a690d511e3c1a8b3a55e33511e3c2c00c78415cd23650f32b808627f5696b9ed"
|
|
1661
1652
|
dependencies = [
|
|
1662
1653
|
"quote",
|
|
1663
1654
|
"wasm-bindgen-macro-support",
|
|
@@ -1665,31 +1656,31 @@ dependencies = [
|
|
|
1665
1656
|
|
|
1666
1657
|
[[package]]
|
|
1667
1658
|
name = "wasm-bindgen-macro-support"
|
|
1668
|
-
version = "0.2.
|
|
1659
|
+
version = "0.2.128"
|
|
1669
1660
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1670
|
-
checksum = "
|
|
1661
|
+
checksum = "411e4887f0071ef2d2164a9d5fdf2d20efbef78fccd3a78b0c10a1dc5295e48a"
|
|
1671
1662
|
dependencies = [
|
|
1672
1663
|
"bumpalo",
|
|
1673
1664
|
"proc-macro2",
|
|
1674
1665
|
"quote",
|
|
1675
|
-
"syn
|
|
1666
|
+
"syn 3.0.5",
|
|
1676
1667
|
"wasm-bindgen-shared",
|
|
1677
1668
|
]
|
|
1678
1669
|
|
|
1679
1670
|
[[package]]
|
|
1680
1671
|
name = "wasm-bindgen-shared"
|
|
1681
|
-
version = "0.2.
|
|
1672
|
+
version = "0.2.128"
|
|
1682
1673
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1683
|
-
checksum = "
|
|
1674
|
+
checksum = "81941cd78d0c92026c33e5e01312845a4cb1e9af3407f9134b100dd03144103e"
|
|
1684
1675
|
dependencies = [
|
|
1685
1676
|
"unicode-ident",
|
|
1686
1677
|
]
|
|
1687
1678
|
|
|
1688
1679
|
[[package]]
|
|
1689
1680
|
name = "web-sys"
|
|
1690
|
-
version = "0.3.
|
|
1681
|
+
version = "0.3.105"
|
|
1691
1682
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1692
|
-
checksum = "
|
|
1683
|
+
checksum = "9fbddc4a036f00ec4f18c83445bd3115cb306a91da554919a099d9222fe4a7f8"
|
|
1693
1684
|
dependencies = [
|
|
1694
1685
|
"js-sys",
|
|
1695
1686
|
"wasm-bindgen",
|
|
@@ -1707,9 +1698,9 @@ dependencies = [
|
|
|
1707
1698
|
|
|
1708
1699
|
[[package]]
|
|
1709
1700
|
name = "web_atoms"
|
|
1710
|
-
version = "0.2.
|
|
1701
|
+
version = "0.2.6"
|
|
1711
1702
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1712
|
-
checksum = "
|
|
1703
|
+
checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3"
|
|
1713
1704
|
dependencies = [
|
|
1714
1705
|
"phf",
|
|
1715
1706
|
"phf_codegen",
|
|
@@ -1878,9 +1869,9 @@ dependencies = [
|
|
|
1878
1869
|
|
|
1879
1870
|
[[package]]
|
|
1880
1871
|
name = "writeable"
|
|
1881
|
-
version = "0.6.
|
|
1872
|
+
version = "0.6.4"
|
|
1882
1873
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1883
|
-
checksum = "
|
|
1874
|
+
checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
|
|
1884
1875
|
|
|
1885
1876
|
[[package]]
|
|
1886
1877
|
name = "yoke"
|
|
@@ -1934,9 +1925,9 @@ checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"
|
|
|
1934
1925
|
|
|
1935
1926
|
[[package]]
|
|
1936
1927
|
name = "zerotrie"
|
|
1937
|
-
version = "0.2.
|
|
1928
|
+
version = "0.2.5"
|
|
1938
1929
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1939
|
-
checksum = "
|
|
1930
|
+
checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
|
|
1940
1931
|
dependencies = [
|
|
1941
1932
|
"displaydoc",
|
|
1942
1933
|
"yoke",
|
|
@@ -1945,9 +1936,9 @@ dependencies = [
|
|
|
1945
1936
|
|
|
1946
1937
|
[[package]]
|
|
1947
1938
|
name = "zerovec"
|
|
1948
|
-
version = "0.11.
|
|
1939
|
+
version = "0.11.8"
|
|
1949
1940
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1950
|
-
checksum = "
|
|
1941
|
+
checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8"
|
|
1951
1942
|
dependencies = [
|
|
1952
1943
|
"yoke",
|
|
1953
1944
|
"zerofrom",
|
|
@@ -1956,13 +1947,13 @@ dependencies = [
|
|
|
1956
1947
|
|
|
1957
1948
|
[[package]]
|
|
1958
1949
|
name = "zerovec-derive"
|
|
1959
|
-
version = "0.11.
|
|
1950
|
+
version = "0.11.6"
|
|
1960
1951
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1961
|
-
checksum = "
|
|
1952
|
+
checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"
|
|
1962
1953
|
dependencies = [
|
|
1963
1954
|
"proc-macro2",
|
|
1964
1955
|
"quote",
|
|
1965
|
-
"syn
|
|
1956
|
+
"syn 3.0.5",
|
|
1966
1957
|
]
|
|
1967
1958
|
|
|
1968
1959
|
[[package]]
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
use crate::{InlineError, Result};
|
|
2
|
-
use std::io::ErrorKind;
|
|
2
|
+
use std::{borrow::Cow, io::ErrorKind, path::Path};
|
|
3
|
+
|
|
4
|
+
/// Turn a `file://` URL into a filesystem path.
|
|
5
|
+
///
|
|
6
|
+
/// Percent-decodes the path and handles Windows drive letters. URLs with a host
|
|
7
|
+
/// (e.g. `file://relative-dir/`) keep the legacy prefix-stripping behavior.
|
|
8
|
+
fn to_file_path(location: &str) -> Cow<'_, Path> {
|
|
9
|
+
#[cfg(any(unix, windows, target_os = "redox", target_os = "wasi"))]
|
|
10
|
+
if let Ok(url) = url::Url::parse(location) {
|
|
11
|
+
if url.scheme() == "file" && url.host().is_none() {
|
|
12
|
+
if let Ok(path) = url.to_file_path() {
|
|
13
|
+
return Cow::Owned(path);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
Cow::Borrowed(Path::new(location.trim_start_matches("file://")))
|
|
18
|
+
}
|
|
3
19
|
|
|
4
20
|
/// Blocking way of resolving stylesheets from various sources.
|
|
5
21
|
pub trait StylesheetResolver: Send + Sync {
|
|
@@ -52,14 +68,15 @@ pub trait StylesheetResolver: Send + Sync {
|
|
|
52
68
|
///
|
|
53
69
|
/// Any filesystem-related error.
|
|
54
70
|
fn retrieve_from_path(&self, path: &str) -> Result<String> {
|
|
55
|
-
let path = path
|
|
56
|
-
std::fs::read_to_string(path).map_err(|error| match error.kind() {
|
|
71
|
+
let path = to_file_path(path);
|
|
72
|
+
std::fs::read_to_string(&path).map_err(|error| match error.kind() {
|
|
57
73
|
ErrorKind::NotFound => InlineError::MissingStyleSheet {
|
|
58
|
-
path: path.to_string(),
|
|
74
|
+
path: path.display().to_string(),
|
|
59
75
|
},
|
|
60
76
|
#[cfg(target_family = "wasm")]
|
|
61
77
|
ErrorKind::Unsupported => self.unsupported(&format!(
|
|
62
|
-
"Loading local files is not supported on WASM: {
|
|
78
|
+
"Loading local files is not supported on WASM: {}",
|
|
79
|
+
path.display()
|
|
63
80
|
)),
|
|
64
81
|
_ => InlineError::IO(error),
|
|
65
82
|
})
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|