Skip to main content

max / balanced_breakfast

Resolve pter and makeover-build from crates.io bb-pdf took pter by path and bb-core from the registry, and cargo never unifies those two, so the build carried pter 0.1.0 and 0.2.0 side by side with scraper 0.26 and 0.27 under them. Both now resolve from crates.io: one pter, one scraper. Also moves the makeover-build requirement from 0.3.0 to 0.3.1, which the lockfile already resolved to. No source changes; pter's public API did not move across 0.1.1 to 0.2.0.
Author: Max Johnson <me@maxj.phd> · 2026-08-01 14:31 UTC
Signed with PGP, not checked
Commit: 025cef02e8e5bdc68fd0c104b3ee33d76cf764f8
Parent: 4ecdd33
4 files changed, +8 insertions, -62 deletions
M Cargo.lock +5 -59
@@ -506,7 +506,7 @@
506 506 "futures",
507 507 "keyring",
508 508 "parking_lot",
509 - "pter 0.1.0",
509 + "pter",
510 510 "rand 0.10.2",
511 511 "readable-readability",
512 512 "regex",
@@ -568,7 +568,7 @@
568 568 version = "0.3.3"
569 569 dependencies = [
570 570 "printpdf",
571 - "pter 0.2.0",
571 + "pter",
572 572 "pulldown-cmark",
573 573 "thiserror 2.0.18",
574 574 ]
@@ -1162,19 +1162,6 @@
1162 1162 "smallvec",
1163 1163 ]
1164 1164
1165 - [[package]]
1166 - name = "cssparser"
1167 - version = "0.36.0"
1168 - source = "registry+https://github.com/rust-lang/crates.io-index"
1169 - checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2"
1170 - dependencies = [
1171 - "cssparser-macros 0.6.1",
1172 - "dtoa-short",
1173 - "itoa 1.0.17",
1174 - "phf 0.13.1",
1175 - "smallvec",
1176 - ]
1177 -
1178 1165 [[package]]
1179 1166 name = "cssparser"
1180 1167 version = "0.37.0"
@@ -4377,20 +4364,13 @@
4377 4364 "yansi",
4378 4365 ]
4379 4366
4380 - [[package]]
4381 - name = "pter"
4382 - version = "0.1.0"
4383 - source = "registry+https://github.com/rust-lang/crates.io-index"
4384 - checksum = "ecc3629f628e0e8d975cd206ef331ce598dd457d94cd609c96a6809934732859"
4385 - dependencies = [
4386 - "scraper 0.26.0",
4387 - ]
4388 -
4389 4367 [[package]]
4390 4368 name = "pter"
4391 4369 version = "0.2.0"
4370 + source = "registry+https://github.com/rust-lang/crates.io-index"
4371 + checksum = "0c6e56e426516d2aa4892b4c6e13e86c56f662be186ce601bc6e1e690daa9647"
4392 4372 dependencies = [
4393 - "scraper 0.27.0",
4373 + "scraper",
4394 4374 ]
4395 4375
4396 4376 [[package]]
@@ -4989,21 +4969,6 @@
4989 4969 source = "registry+https://github.com/rust-lang/crates.io-index"
4990 4970 checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
4991 4971
4992 - [[package]]
4993 - name = "scraper"
4994 - version = "0.26.0"
4995 - source = "registry+https://github.com/rust-lang/crates.io-index"
4996 - checksum = "f0f5297102b8b62b4454ee8561601b2d551b4913148feb4241ca9d1a04bf4526"
4997 - dependencies = [
4998 - "cssparser 0.36.0",
4999 - "ego-tree",
5000 - "getopts",
5001 - "html5ever 0.39.0",
5002 - "precomputed-hash",
5003 - "selectors 0.36.1",
5004 - "tendril 0.5.0",
5005 - ]
5006 -
5007 4972 [[package]]
5008 4973 name = "scraper"
5009 4974 version = "0.27.0"
@@ -5099,25 +5064,6 @@
5099 5064 "smallvec",
5100 5065 ]
5101 5066
5102 - [[package]]
5103 - name = "selectors"
5104 - version = "0.36.1"
5105 - source = "registry+https://github.com/rust-lang/crates.io-index"
5106 - checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c"
5107 - dependencies = [
5108 - "bitflags 2.13.1",
5109 - "cssparser 0.36.0",
5110 - "derive_more 2.1.1",
5111 - "log",
5112 - "new_debug_unreachable",
5113 - "phf 0.13.1",
5114 - "phf_codegen 0.13.1",
5115 - "precomputed-hash",
5116 - "rustc-hash",
5117 - "servo_arc 0.4.3",
5118 - "smallvec",
5119 - ]
5120 -
5121 5067 [[package]]
5122 5068 name = "selectors"
5123 5069 version = "0.38.0"
@@ -17,7 +17,7 @@
17 17 # Materialises all three generated files: themes/, geometry.css, layout.css.
18 18 # The build script needs nothing else; makeover and makeover-geometry reach it
19 19 # through here. Path dep while unpublished.
20 - makeover-build = "0.3.0"
20 + makeover-build = "0.3.1"
21 21
22 22 [dependencies]
23 23 bb-interface.workspace = true
@@ -40,7 +40,7 @@
40 40 roxmltree.workspace = true
41 41
42 42 # HTML to markdown conversion
43 - pter = "0.1"
43 + pter = "0.2"
44 44
45 45 # URL parsing for tracker stripping
46 46 url = "2"
@@ -6,7 +6,7 @@
6 6 description = "Render Balanced Breakfast article HTML to a Supernote-friendly PDF."
7 7
8 8 [dependencies]
9 - pter = { path = "../../../../Libraries/pter" }
9 + pter = "0.2"
10 10 pulldown-cmark = { version = "0.13", default-features = false }
11 11 printpdf = { version = "0.11" }
12 12 thiserror = { workspace = true }