Skip to content

Commit

Permalink
[blocked] infra: update dependencies for mdbook preprocessors
Browse files Browse the repository at this point in the history
Needs rust-lang/mdBook#2401 to land before it
can be landed, because mdbook requires pulldown-cmark 0.10, so there is
a type mismatch on `Event`:

```
error[E0271]: expected `Parser<'_>` to be an iterator that yields `Event<'_>`, but it yields `Event<'_>`
   --> src/lib.rs:372:39
    |
372 |             html::push_html(&mut buf, events);
    |             ---------------           ^^^^^^ expected `Event<'_>`, found `pulldown_cmark::Event<'_>`
    |             |
    |             required by a bound introduced by this call
    |
    = note: `pulldown_cmark::Event<'_>` and `Event<'_>` have similar names, but are actually distinct types
note: `pulldown_cmark::Event<'_>` is defined in crate `pulldown_cmark`
   --> /Users/chris/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pulldown-cmark-0.10.3/src/lib.rs:354:1
    |
354 | pub enum Event<'a> {
    | ^^^^^^^^^^^^^^^^^^
note: `Event<'_>` is defined in crate `pulldown_cmark`
   --> /Users/chris/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pulldown-cmark-0.11.0/src/lib.rs:366:1
    |
366 | pub enum Event<'a> {
    | ^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `pulldown_cmark` are being used?
```
  • Loading branch information
chriskrycho committed Jul 22, 2024
1 parent a7c750c commit ed69652
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
30 changes: 24 additions & 6 deletions packages/mdbook-trpl-listing/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/mdbook-trpl-listing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ edition = "2021"
clap = { version = "4", features = ["derive"] }
html_parser = "0.7.0"
mdbook = { version = "0.4", default-features = false } # only need the library
pulldown-cmark = { version = "0.10", features = ["simd"] }
pulldown-cmark-to-cmark = "13"
pulldown-cmark = { version = "0.11", features = ["simd"] }
pulldown-cmark-to-cmark = "15"
serde_json = "1"
thiserror = "1.0.60"
toml = "0.8.12"
Expand Down
4 changes: 2 additions & 2 deletions packages/mdbook-trpl-note/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ edition = "2021"
[dependencies]
clap = { version = "4", features = ["derive"] }
mdbook = { version = "0.4", default-features = false } # only need the library
pulldown-cmark = { version = "0.10", features = ["simd"] }
pulldown-cmark-to-cmark = "13"
pulldown-cmark = { version = "0.11", features = ["simd"] }
pulldown-cmark-to-cmark = "15"
serde_json = "1"

[dev-dependencies]
Expand Down

0 comments on commit ed69652

Please sign in to comment.