Hi, I’m trying the Rust “Reverse String” exercise, but getting the error below. I’m using the online editor, and the unicode_reverse is listed here, so shouldn’t it be available? rust-test-runner/local-registry/Cargo.toml at main · exercism/rust-test-runner · GitHub
My code:
use unicode_reverse::reverse_grapheme_clusters_in_place;
pub fn reverse(input: &str) -> String {
reverse_grapheme_clusters_in_place(&mut input)
}
The error:
Compiling reverse_string v1.2.0 (exercism-iteration)
error[E0432]: unresolved import `unicode_reverse`
--> src/lib.rs:1:5
|
1 | use unicode_reverse::reverse_grapheme_clusters_in_place;
| ^^^^^^^^^^^^^^^ use of undeclared crate or module `unicode_reverse`
For more information about this error, try `rustc --explain E0432`.
error: could not compile `reverse_string` due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `reverse_string` due to 1 previous error