V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
trybye
V2EX  ›  Rust

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

  •  
  •   trybye · 139 天前 · 1373 次点击
    这是一个创建于 139 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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)`
        ```
    3 条回复    2024-07-28 17:43:52 +08:00
    knightdf
        1
    knightdf  
       139 天前
    下下来自己升级 crate 依赖的版本,然后[patch]
    undeflife
        2
    undeflife  
       139 天前
    正途是给限定依赖旧版的提 mr
    PTLin
        3
    PTLin  
       137 天前
    https://rustcc.cn/article?id=ea3b5561-618e-4c03-a84b-f0618a782dd0 这个帖子是不是也是你发的,下面不是有人提出来解决方案了吗,你是觉得 rustcc 里面的人都太菜了,v2 上肯定有大神能提供不 patch 的解决方法吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2876 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 13:01 · PVG 21:01 · LAX 05:01 · JFK 08:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.