Skip to content
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
@OHNONOTAMOTH

Description

@OHNONOTAMOTH

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

  1. create new cargo project
  2. add ipfs = "0.2.1" to cargo.toml
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions