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.
Files changed (34) hide show
  1. {css_inline-0.21.1 → css_inline-0.21.3}/PKG-INFO +1 -1
  2. {css_inline-0.21.1 → css_inline-0.21.3}/bindings/python/CHANGELOG.md +15 -1
  3. {css_inline-0.21.1 → css_inline-0.21.3}/bindings/python/Cargo.lock +102 -111
  4. {css_inline-0.21.1 → css_inline-0.21.3}/bindings/python/Cargo.toml +1 -1
  5. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/Cargo.toml +1 -1
  6. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/resolver.rs +22 -5
  7. {css_inline-0.21.1 → css_inline-0.21.3}/pyproject.toml +0 -3
  8. {css_inline-0.21.1 → css_inline-0.21.3}/LICENSE +0 -0
  9. {css_inline-0.21.1 → css_inline-0.21.3}/README.md +0 -0
  10. {css_inline-0.21.1 → css_inline-0.21.3}/bindings/python/README.md +0 -0
  11. {css_inline-0.21.1 → css_inline-0.21.3}/bindings/python/build.rs +0 -0
  12. {css_inline-0.21.1 → css_inline-0.21.3}/bindings/python/src/lib.rs +0 -0
  13. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/README.md +0 -0
  14. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/benches/inliner.rs +0 -0
  15. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/rustfmt.toml +0 -0
  16. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/error.rs +0 -0
  17. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/attributes.rs +0 -0
  18. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/document.rs +0 -0
  19. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/element.rs +0 -0
  20. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/iter.rs +0 -0
  21. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/mod.rs +0 -0
  22. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/node.rs +0 -0
  23. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/parser.rs +0 -0
  24. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/attr_value.rs +0 -0
  25. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/local_name.rs +0 -0
  26. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/mod.rs +0 -0
  27. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/parser.rs +0 -0
  28. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/pseudo_classes.rs +0 -0
  29. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/pseudo_elements.rs +0 -0
  30. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/selectors/selector_impl.rs +0 -0
  31. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/html/serializer.rs +0 -0
  32. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/lib.rs +0 -0
  33. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/main.rs +0 -0
  34. {css_inline-0.21.1 → css_inline-0.21.3}/css-inline/src/parser.rs +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: css-inline
3
- Version: 0.21.1
3
+ Version: 0.21.3
4
4
  Classifier: Development Status :: 4 - Beta
5
5
  Classifier: Intended Audience :: Developers
6
6
  Classifier: License :: OSI Approved :: MIT License
@@ -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.1...HEAD
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.1"
40
+ version = "2.13.2"
41
41
  source = "registry+https://github.com/rust-lang/crates.io-index"
42
- checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
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.2"
80
+ version = "1.4.6"
81
81
  source = "registry+https://github.com/rust-lang/crates.io-index"
82
- checksum = "5d262e149917187838d5b42777c8253bcb64500067342904e7d429499a6f277e"
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.1"
102
+ version = "0.10.2"
103
103
  source = "registry+https://github.com/rust-lang/crates.io-index"
104
- checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81"
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.0"
130
+ version = "0.3.1"
131
131
  source = "registry+https://github.com/rust-lang/crates.io-index"
132
- checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
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.7"
139
+ version = "0.8.8"
140
140
  source = "registry+https://github.com/rust-lang/crates.io-index"
141
- checksum = "5181e0de7b61eb03a81e347d6dd8797bae9da5146707b51077e2d71a54ec0ceb"
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.20"
149
+ version = "0.9.21"
150
150
  source = "registry+https://github.com/rust-lang/crates.io-index"
151
- checksum = "2d6914041f254d6e9176c01941b21115dcfb7089e55135a35411081bd106ef3f"
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.22"
158
+ version = "0.8.23"
159
159
  source = "registry+https://github.com/rust-lang/crates.io-index"
160
- checksum = "61803da095bee82a81bb1a452ecc25d3b2f1416d1897eb86430c6159ef717c17"
160
+ checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
161
161
 
162
162
  [[package]]
163
163
  name = "css-inline"
164
- version = "0.21.1"
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.1"
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.0"
205
+ version = "0.7.1"
206
206
  source = "registry+https://github.com/rust-lang/crates.io-index"
207
- checksum = "10a2a99df6e410a8ff4245aa2006499ea662245f967cc7c0a38c83ef8eb44dbf"
207
+ checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a"
208
208
  dependencies = [
209
209
  "quote",
210
- "syn 2.0.119",
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.3",
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.17.0"
262
+ version = "1.18.0"
263
263
  source = "registry+https://github.com/rust-lang/crates.io-index"
264
- checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
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.10"
280
+ version = "0.1.12"
281
281
  source = "registry+https://github.com/rust-lang/crates.io-index"
282
- checksum = "26b73573e6edcd2af0cdf47bd6cb58f0b3839491263c314eaad1ccf24430e1de"
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.33"
301
+ version = "0.3.34"
302
302
  source = "registry+https://github.com/rust-lang/crates.io-index"
303
- checksum = "262590f4fe6afeb0bc83be1daa64e52657fe185690a958af7f3ad0e92085c5ae"
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.33"
311
+ version = "0.3.34"
312
312
  source = "registry+https://github.com/rust-lang/crates.io-index"
313
- checksum = "2cd50c473c80f6d7c3670a752354b8e569b1a7cbfdc0419ec88e5edad85e0dc7"
313
+ checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
314
314
 
315
315
  [[package]]
316
316
  name = "futures-io"
317
- version = "0.3.33"
317
+ version = "0.3.34"
318
318
  source = "registry+https://github.com/rust-lang/crates.io-index"
319
- checksum = "4577ecaa3c4f96589d473f679a71b596316f6641bc350038b962a5daf0085d7a"
319
+ checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"
320
320
 
321
321
  [[package]]
322
322
  name = "futures-sink"
323
- version = "0.3.33"
323
+ version = "0.3.34"
324
324
  source = "registry+https://github.com/rust-lang/crates.io-index"
325
- checksum = "e34418ac499d6305c2fb5ad0ed2f6ac998c5f8ca209b4510f7f94242c647e307"
325
+ checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"
326
326
 
327
327
  [[package]]
328
328
  name = "futures-task"
329
- version = "0.3.33"
329
+ version = "0.3.34"
330
330
  source = "registry+https://github.com/rust-lang/crates.io-index"
331
- checksum = "b231ed28831efb4a61a08580c4bc233ec56bc009f4cd8f52da2c3cb97df0c109"
331
+ checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
332
332
 
333
333
  [[package]]
334
334
  name = "futures-util"
335
- version = "0.3.33"
335
+ version = "0.3.34"
336
336
  source = "registry+https://github.com/rust-lang/crates.io-index"
337
- checksum = "a77a90a256fce34da66415271e30f94ee91c57b04b8a2c042d9cf3220179deaa"
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.4"
424
+ version = "0.1.5"
425
425
  source = "registry+https://github.com/rust-lang/crates.io-index"
426
- checksum = "e9f41fd6a08e4d4ec69df65976da761afd5ad5e58a9d4acb46bd1c953a9e3ff2"
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.0"
443
+ version = "1.11.1"
444
444
  source = "registry+https://github.com/rust-lang/crates.io-index"
445
- checksum = "d22053281f852e11534f5198498373cbb59295120a20771d90f7ed1897490a72"
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.0"
628
+ version = "2.14.2"
629
629
  source = "registry+https://github.com/rust-lang/crates.io-index"
630
- checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
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.1"
638
+ version = "2.12.2"
639
639
  source = "registry+https://github.com/rust-lang/crates.io-index"
640
- checksum = "6a756c3fac73139e83f14c2d742155dd2b78d3ee56597b419a0579b7bdd6dd78"
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.104"
650
+ version = "0.3.105"
651
651
  source = "registry+https://github.com/rust-lang/crates.io-index"
652
- checksum = "0e0c1080212aad755ea003d18543e8768dd432c48819efd73a7bf1e39b7a5a3a"
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.2"
667
+ version = "0.8.3"
668
668
  source = "registry+https://github.com/rust-lang/crates.io-index"
669
- checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
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.33"
682
+ version = "0.4.34"
683
683
  source = "registry+https://github.com/rust-lang/crates.io-index"
684
- checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
684
+ checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"
685
685
 
686
686
  [[package]]
687
687
  name = "lru"
688
- version = "0.18.2"
688
+ version = "0.18.4"
689
689
  source = "registry+https://github.com/rust-lang/crates.io-index"
690
- checksum = "5d2f2f9b4ba7e6b24d95e7e899329d35be83bcded72c8540cdd5368932d1d90a"
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.2"
697
+ version = "0.1.3"
698
698
  source = "registry+https://github.com/rust-lang/crates.io-index"
699
- checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"
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.2"
720
+ version = "1.2.3"
721
721
  source = "registry+https://github.com/rust-lang/crates.io-index"
722
- checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427"
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.14.0"
840
+ version = "1.15.0"
841
841
  source = "registry+https://github.com/rust-lang/crates.io-index"
842
- checksum = "3d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3"
842
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
843
843
 
844
844
  [[package]]
845
845
  name = "potential_utf"
846
- version = "0.1.5"
846
+ version = "0.1.6"
847
847
  source = "registry+https://github.com/rust-lang/crates.io-index"
848
- checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
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.16"
953
+ version = "0.11.17"
954
954
  source = "registry+https://github.com/rust-lang/crates.io-index"
955
- checksum = "2f4bfc015262b9df63c8845072ce59068853ff5872180c2ce2f13038b970e560"
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.43"
1128
+ version = "0.23.44"
1129
1129
  source = "registry+https://github.com/rust-lang/crates.io-index"
1130
- checksum = "0283386ce02abc0151e1761d08802dfe86c173b0b494af5cbc086574e453da06"
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.13"
1152
+ version = "0.103.15"
1153
1153
  source = "registry+https://github.com/rust-lang/crates.io-index"
1154
- checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
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.3",
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.15.2"
1301
+ version = "1.16.1"
1302
1302
  source = "registry+https://github.com/rust-lang/crates.io-index"
1303
- checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
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.3"
1364
+ version = "3.0.5"
1365
1365
  source = "registry+https://github.com/rust-lang/crates.io-index"
1366
- checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
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.3",
1425
+ "syn 3.0.5",
1426
1426
  ]
1427
1427
 
1428
1428
  [[package]]
1429
1429
  name = "tinystr"
1430
- version = "0.8.3"
1430
+ version = "0.8.4"
1431
1431
  source = "registry+https://github.com/rust-lang/crates.io-index"
1432
- checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
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.12.0"
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 = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
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.4"
1460
+ version = "0.26.5"
1470
1461
  source = "registry+https://github.com/rust-lang/crates.io-index"
1471
- checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61"
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.127"
1626
+ version = "0.2.128"
1636
1627
  source = "registry+https://github.com/rust-lang/crates.io-index"
1637
- checksum = "1b70935747edd64d89de3efa29d73789b806c15798f8e7dca4d8ac356b50ce70"
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.77"
1639
+ version = "0.4.78"
1649
1640
  source = "registry+https://github.com/rust-lang/crates.io-index"
1650
- checksum = "6b7777d5cc23d0e91404e53ce2d5e8ec7acae3026b16233dba62cd3246457950"
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.127"
1649
+ version = "0.2.128"
1659
1650
  source = "registry+https://github.com/rust-lang/crates.io-index"
1660
- checksum = "77775f8f3f7217702089053b94958f8f54061a3f663417df76e19cbdcca29bc1"
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.127"
1659
+ version = "0.2.128"
1669
1660
  source = "registry+https://github.com/rust-lang/crates.io-index"
1670
- checksum = "e11d33f857dc2fb11b8bc75aee111aa9cbeb12cd9f25efd3d4c2a3dd4e235284"
1661
+ checksum = "411e4887f0071ef2d2164a9d5fdf2d20efbef78fccd3a78b0c10a1dc5295e48a"
1671
1662
  dependencies = [
1672
1663
  "bumpalo",
1673
1664
  "proc-macro2",
1674
1665
  "quote",
1675
- "syn 2.0.119",
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.127"
1672
+ version = "0.2.128"
1682
1673
  source = "registry+https://github.com/rust-lang/crates.io-index"
1683
- checksum = "7ef64dbcc55df09c7e5a46182d181c2cfa3e925f3da937ea764728b4bbb9dcbf"
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.104"
1681
+ version = "0.3.105"
1691
1682
  source = "registry+https://github.com/rust-lang/crates.io-index"
1692
- checksum = "c435338968042f4f59a557f690a253676d47ce13ceb55d70100e7facf6620a30"
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.5"
1701
+ version = "0.2.6"
1711
1702
  source = "registry+https://github.com/rust-lang/crates.io-index"
1712
- checksum = "075474b12bcb3d2e3d4546580e9de478eeeead668a1761e2a8860c836b7ef297"
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.3"
1872
+ version = "0.6.4"
1882
1873
  source = "registry+https://github.com/rust-lang/crates.io-index"
1883
- checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
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.4"
1928
+ version = "0.2.5"
1938
1929
  source = "registry+https://github.com/rust-lang/crates.io-index"
1939
- checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"
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.6"
1939
+ version = "0.11.8"
1949
1940
  source = "registry+https://github.com/rust-lang/crates.io-index"
1950
- checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"
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.3"
1950
+ version = "0.11.6"
1960
1951
  source = "registry+https://github.com/rust-lang/crates.io-index"
1961
- checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"
1952
+ checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"
1962
1953
  dependencies = [
1963
1954
  "proc-macro2",
1964
1955
  "quote",
1965
- "syn 2.0.119",
1956
+ "syn 3.0.5",
1966
1957
  ]
1967
1958
 
1968
1959
  [[package]]
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "css-inline-python"
3
- version = "0.21.1"
3
+ version = "0.21.3"
4
4
  authors = ["Dmitry Dygalo <dmitry@dygalo.dev>"]
5
5
  edition = "2024"
6
6
  rust-version = "1.85"
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "css-inline"
3
- version = "0.21.1"
3
+ version = "0.21.2"
4
4
  authors = ["Dmitry Dygalo <dmitry@dygalo.dev>"]
5
5
  edition = "2021"
6
6
  license = "MIT"
@@ -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.trim_start_matches("file://");
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: {path}"
78
+ "Loading local files is not supported on WASM: {}",
79
+ path.display()
63
80
  )),
64
81
  _ => InlineError::IO(error),
65
82
  })
@@ -50,6 +50,3 @@ build-backend = "maturin"
50
50
  [tool.maturin]
51
51
  strip = true
52
52
  manifest-path = "bindings/python/Cargo.toml"
53
-
54
- [tool.pyodide.build]
55
- default_cross_build_env_url = "https://github.com/pyodide/pyodide/releases/download/0.28.0a3/xbuildenv-0.28.0a3.tar.bz2"
File without changes
File without changes