This repository was archived by the owner on Oct 23, 2022. It is now read-only.
This repository was archived by the owner on Oct 23, 2022. It is now read-only.
broken aesni dependency when used as library #505
Open
Description
when compiling a project that uses ipfs as a dep it gives this error
error: failed to select a version for the requirement `aesni = "^0.7"`
candidate versions found which didn't match: 0.99.99, 0.10.0, 0.9.0, ...
location searched: crates.io index
required by package `aes v0.4.0`
... which satisfies dependency `aes = "^0.4"` of package `aes-gcm v0.6.0`
... which satisfies dependency `aes-gcm = "^0.6"` of package `snow v0.7.1`
... which satisfies dependency `snow = "^0.7.1"` of package `libp2p-noise v0.24.0`
... which satisfies dependency `libp2p-noise = "^0.24.0"` of package `libp2p v0.28.0`
... which satisfies dependency `libp2p = "^0.28"` of package `ipfs v0.2.1`
... which satisfies dependency `ipfs = "^0.2.1"` of package `mpv-ipfs v0.1.0 (/home/moth/mpv-ipfs)`
To Reproduce
- create new cargo project
- add
ipfs = "0.2.1"
tocargo.toml
- run
cargo build
Expected behavior
no errors compiling dependencies
Environment
- Operating system, kernel version where applicable: Gentoo Linux
- Rust version: rustc 1.60.0
Additional context
It only breaks when it is compiled as a dependency used by another project and when you compile the library by itself it works fine.