Skip to content

mdbook test fails with "error[E0463]: can't find crate for trpl" #4414

@bordenc

Description

@bordenc
  • I have searched open and closed issues and pull requests for duplicates, using these search terms:
    • trpl

URL to the section(s) of the book with this problem:
https://github.com/rust-lang/book/blob/main/README.md

Description of the problem:
I followed the instructions on a local git-cloned copy of the book. After following instructions to install mdbook & mdbook-trpl, I ran mdbook test and encountered a number of errors to the effect of:

error[E0463]: can't find crate for `trpl`
 --> <chapter>.md:<line>:<position>
  |
2 | extern crate trpl; // for mdbook test
  | ^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to 1 previous error

Not sure why I'm running into this error. Either I'm actually missing a crate (so installation instructions should be added to the README), or there's an error in the software.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions