Rust !ink 教程失败

问题描述 投票:0回答:1

嗨,我对 Rust 很陌生,想了解 !ink 智能合约。我正在遵循在线教程(https://use.ink/getting-started/creating-an-ink-project),但是当我尝试使用货物测试测试脚蹼合同时,我收到这些错误。我完全不知道如何解决这个问题。

   Compiling anstyle-parse v0.2.4
   Compiling const_env v0.1.2
   Compiling hyper v1.3.1
error[E0282]: type annotations needed
  --> /home/hago/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scale-info-2.11.2/src/form.rs:64:39
   |
64 | #[cfg_attr(feature = "schema", derive(JsonSchema))]
   |                                       ^^^^^^^^^^ cannot infer type
   |
   = note: this error originates in the derive macro `JsonSchema` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0282]: type annotations needed
  --> /home/hago/.cargo/registry/src/index.crates.io-6f17d22bba15001f/scale-info-2.11.2/src/form.rs:81:39
   |
81 | #[cfg_attr(feature = "schema", derive(JsonSchema))]
   |                                       ^^^^^^^^^^ cannot infer type
   |
   = note: this error originates in the derive macro `JsonSchema` (in Nightly builds, run with -Z macro-backtrace for more info)

   Compiling wasm-opt-cxx-sys v0.116.0
   Compiling darling v0.20.8
   Compiling jsonrpsee-types v0.22.5
   Compiling scale-typegen v0.1.1
   Compiling tower v0.4.13
For more information about this error, try `rustc --explain E0282`.
error: could not compile `scale-info` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
rust rust-cargo rust-ink
1个回答
0
投票

这是模式的错误。看起来他们 3 小时前发布了一个新软件包,这也解释了为什么今天早上一切正常:/

© www.soinside.com 2019 - 2024. All rights reserved.