最近尝试用rust-lang搭建一个项目(这是我的第一个rust项目,老板支持我在公司使用新技术)。但是,我的 Cargo.toml 上突然出现了一些红线:
could not compile `serde_derive`.
error: could not compile `async-trait`.
To learn more, run the command again with --verbose.
error: could not compile `rand_chacha`.
To learn more, run the command again with --verbose.
error: could not compile `proc-macro-hack`.
To learn more, run the command again with --verbose.
error: could not compile `diesel_derives`.
To learn more, run the command again with --verbose.
Run Code Online (Sandbox Code Playgroud)
我运行了一个命令 Cargo Run 并且我的项目运行良好,但是这些红线阻止我跟踪我项目中其他代码的错误(因此,如果代码中有错误,它不会显示,因为仍然存在另一个文件中的一些错误,它是 Cargo.toml)
我正在使用货物 1.43.0-nightly (bda50510d 2020-03-02)、rustc 1.43.0-nightly (c20d7eecb 2020-03-11) 和 vs 代码 1.43 版本。
这是我的 Cargo.toml :
[package]
name = "app_base"
version = "0.1.0"
authors = ["yonathan"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rocket = "0.4.3"
rocket_codegen = "0.4.3"
rocket_contrib = "0.4.3"
rocket_http = "0.4.3"
cookie = "0.11.2"
rocket-json-response = "0.5.10"
diesel = { version = "1.4.3", features = ["postgres"] }
dotenv = "0.15.0"
postgres = { version = "0.17.2", features = ["with-chrono-0_4"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
json-gettext = "3.1.7"
debug-helper = "0.3.8"
serializers = "0.2.3"
rocket_cors = { git = "https://github.com/lawliet89/rocket_cors", branch = "master" }
chrono = "0.4"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1418 次 |
| 最近记录: |