You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I am not experienced with this project, so this is not a definitive answer!)
I tried this just now and am now getting missing crate errors for mdbook as well as pulldown_cmark_to_cmark.
I'm not sure what changed since last month, or what I might be doing differently.
I think the fundamental problem is that Rust Playground doesn't support either of these crates, so the example won't compile there. E.g, to see what crates it does support:
Compiling playground v0.0.1 (/playground)
error[E0433]: failed to resolve: use of undeclared crate or module `mdbook`
--> src/main.rs:4:5
|
4 | use mdbook::book::{Book, Chapter};
| ^^^^^^ use of undeclared crate or module `mdbook`
error[E0433]: failed to resolve: use of undeclared crate or module `mdbook`
--> src/main.rs:5:5
|
5 | use mdbook::errors::Error;
| ^^^^^^ use of undeclared crate or module `mdbook`
error[E0433]: failed to resolve: use of undeclared crate or module `mdbook`
--> src/main.rs:6:5
|
6 | use mdbook::preprocess::{CmdPreprocessor, Preprocessor, PreprocessorContext};
| ^^^^^^ use of undeclared crate or module `mdbook`
error[E0432]: unresolved import `mdbook`
--> src/main.rs:7:5
|
7 | use mdbook::BookItem;
| ^^^^^^ use of undeclared crate or module `mdbook`
error[E0432]: unresolved import `pulldown_cmark`
--> src/main.rs:8:5
|
8 | use pulldown_cmark::{Event, Parser, Tag, TagEnd};
| ^^^^^^^^^^^^^^ use of undeclared crate or module `pulldown_cmark`
error[E0433]: failed to resolve: use of undeclared crate or module `pulldown_cmark_to_cmark`
--> src/main.rs:69:8
|
69 | Ok(pulldown_cmark_to_cmark::cmark(events, &mut buf).map(|_| buf)?)
| ^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared crate or module `pulldown_cmark_to_cmark`
Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `playground` (bin "playground") due to 6 previous errors
Problem
Playground snippet in "Hints For Implementing A Preprocessor" section fails to compile.
Steps
Possible Solution(s)
No response
Notes
No response
Version
The text was updated successfully, but these errors were encountered: