在发问之前,我在这个网站上搜索了[rust] "instead of a package manifest"
,但没有找到任何结果。我还在这里读到有关虚拟清单的内容,但是没有解决我的问题。
我的目标是对azul进行更改。
为了实现这一点,我阅读了这里关于修补依赖的内容,现在我有了这个Cargo.toml
文件。
[package]
name = "my_first_azul_app"
version = "0.1.0"
authors = ["Name <Email>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
azul = { git = "https://github.com/maps4print/azul" }
[patch."https://github.com/maps4print/azul"]
azul = { path = "../azul" }
在路径 ../azul
中,我使用 git clone
检出了 azul 项目。在 main.rs
文件中,我按照这里的说明进行操作,获取了以下内容:
extern crate azul;
fn main() {
println!("Hello world!");
}
然后我尝试进行测试
$ cargo run
error: failed to resolve patches for `https://github.com/maps4print/azul`
Caused by:
failed to load source for a dependency on `azul`
Caused by:
Unable to update /home/name/projects/azul
Caused by:
found a virtual manifest at `/home/name/projects/azul/Cargo.toml` instead of a package manifest
我不理解由哪一行引起的最终结果。
如果我删除[patch]
配置,它就可以“正常工作”。
引用它无法编译,但这就是我尝试检查它并尝试修复它的原因。我需要做什么修改才能开发azul
依赖项?
TIA,