I'm trying to fork the Comrak crate.
I added nom = "6.1.2"
under the dependencies section of the Cargo.toml, but, when I try to import a function as follows: use nom::{character::complete::alphanumeric1}}
I get a "failed to resolve: maybe a missing crate nom
" error.
Specifically, I'm trying to this import statement inside "src/parser/mod.rs".
Am I missing something fundamental here?
Update: I got it working by adding an extern crate nom;
to the root lib.rs
, but normally I don't have to do that. Not really sure what's going on here.