Compiling fprasx-sunscreen v0.1.0 (/Users/fpx/code/rust/fprasx-sunscreen)
error[E0433]: failed to resolve: could not find `ascii` in `text`
--> src/main.rs:75:23
|
75 | let ident = text::ascii::ident().map(|ident: &str| match ident {
| ^^^^^ could not find `ascii` in `text`
error[E0433]: failed to resolve: could not find `input` in `chumsky`
--> src/main.rs:186:14
|
186 | chumsky::input::SpannedInput<Token<'src>, Span, &'tokens [(Token<'src>, Span)]>;
| ^^^^^ could not find `input` in `chumsky`
error[E0412]: cannot find type `SimpleSpan` in this scope
--> src/main.rs:10:17
|
10 | pub type Span = SimpleSpan<usize>;
| ^^^^^^^^^^ not found in this scope
I've copied the nanorust example into my
main.rs
and this is myCargo.toml
:but I'm getting compilation errors like:
Could anyone point me to what I'm doing wrong?