rust 中出现依赖冲突怎么处理

100 天前
 trybye
error: failed to select a version for `zeroize`.
    ... required by package `curve25519-dalek v3.2.1`
    ... which satisfies dependency `curve25519-dalek = "^3.2.1"` of package `solana-program v1.18.0`
    ... which satisfies dependency `solana-program = "=1.18.0"` of package `solana-sdk v1.18.0`
    ... which satisfies dependency `solana-sdk = "=1.18.0"` of package `solana-clap-utils v1.18.0`
    ... which satisfies dependency `solana-clap-utils = "^1.18"` of package `sol_utils v0.1.0 (/Users/solana/solana-learn/sol_utils)`
    ... which satisfies path dependency `sol_utils` (locked to 0.1.0) of package `solana-learn v0.1.0 (/Users/solana/solana-learn)`
versions that meet the requirements `>=1, <1.4` are: 1.3.0, 1.2.0, 1.1.1, 1.1.0, 1.0.0

all possible versions conflict with previously selected packages.

  previously selected package `zeroize v1.5.3`
    ... which satisfies dependency `zeroize = "^1.5"` of package `rsa v0.9.0`
    ... which satisfies dependency `rsa = "^0.9"` of package `sqlx-mysql v0.7.0`
    ... which satisfies dependency `sqlx-mysql = "=0.7.0"` of package `sqlx v0.7.0`
    ... which satisfies dependency `sqlx = "^0.7"` of package `sea-orm v0.12.2`
    ... which satisfies dependency `sea-orm = "^0.12.1"` of package `sea-orm-migration v0.12.1`
    ... which satisfies dependency `sea-orm-migration = "^0.12.0"` of package `migration v0.1.0 (/Users/solana/solana-learn/migration)`
    ... which satisfies path dependency `migration` (locked to 0.1.0) of package `api v0.1.0 (/Users/solana/solana-learn/api)`
    ... which satisfies path dependency `api` (locked to 0.1.0) of package `solana-learn v0.1.0 (/Users/solana/solana-learn)`
    ```
1282 次点击
所在节点    Rust
3 条回复
knightdf
100 天前
下下来自己升级 crate 依赖的版本,然后[patch]
undeflife
100 天前
正途是给限定依赖旧版的提 mr
PTLin
98 天前
https://rustcc.cn/article?id=ea3b5561-618e-4c03-a84b-f0618a782dd0 这个帖子是不是也是你发的,下面不是有人提出来解决方案了吗,你是觉得 rustcc 里面的人都太菜了,v2 上肯定有大神能提供不 patch 的解决方法吗?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1060271

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX