跑步
cargo install wasm-pack
我得到许多绿色的“正在编译”行,然后是以下内容
Compiling time v0.3.34
error[E0602]: unknown lint: `invalid_reference_casting`
|
= note: requested on the command line with `-D invalid_reference_casting`
error[E0602]: unknown lint: `invalid_nan_comparisons`
|
= note: requested on the command line with `-D invalid_nan_comparisons`
error[E0602]: unknown lint: `invalid_from_utf8`
|
= note: requested on the command line with `-D invalid_from_utf8`
error[E0602]: unknown lint: `hidden_glob_reexports`
|
= note: requested on the command line with `-D hidden_glob_reexports`
Compiling object v0.32.2
Compiling pbkdf2 v0.11.0
For more information about this error, try `rustc --explain E0602`.
error: could not compile `time` (lib) due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
发生了什么以及如何解决它?
我正在尝试 Rust,所以我不知道该怎么办。 我使用的是 Ubuntu,我的
cargo --version
是 cargo 1.75.0