Skip to content

Please explicitly update coreaudio-sys #68

Open

Description

@sanbox-irl

Hello!

This repo currently relies upon coreaudio-sys, and just lists version "0.2". My Cargo is defaulting that to "0.2.2", but "0.2.3" of coreaudio-sys has upgraded its bindgen version to the much more recent v0.5.0. 0.2.2 however, is still stuck on 0.32.3.

This is a problem as I have another package which uses a more recent bindgen, and cargo can't let me use both packages at once. For now, I essentially can't use this package, cpal, or rodio.

Here's the error message cargo gives me incase there's a simpler solution for me personally:

error: multiple packages link to native library `clang`, but a native library can be linked only once

package `clang-sys v0.21.2`
    ... which is depended on by `bindgen v0.32.3`
    ... which is depended on by `coreaudio-sys v0.2.2`
    ... which is depended on by `coreaudio-rs v0.9.1`
    ... which is depended on by `cpal v0.10.0`
    ... which is depended on by `rodio v0.10.0`
    ... which is depended on by `clockwork v0.1.0 (/Users/jjspira/Documents/Rust/clockwork)`
links to native library `clang`

package `clang-sys v0.26.4`
    ... which is depended on by `bindgen v0.47.3`
    ... which is depended on by `rustcord-sys v0.2.2`
    ... which is depended on by `rustcord v0.2.2`
    ... which is depended on by `clockwork v0.1.0 (/Users/jjspira/Documents/Rust/clockwork)`
also links to native library `clang`

Thanks guys!

Activity

  1. open-trade commented on Nov 8, 2020

    @open-trade

    Author please!

  2. est31 commented on Nov 8, 2020

    @est31
    Member

    @sanbox-irl if cargo update -p coreaudio-sys can't solve your issue, then explicitly updating the dependency requirement won't solve it either, because then cargo will just select an older version of the coreaudio-rs crate.

  3. Ralith commented on Nov 8, 2020

    @Ralith

    coreaudio-sys could be made much less fragile and heavyweight by including pregenerated bindings rather than invoking bindgen.

  4. est31 commented on Nov 8, 2020

    @est31
    Member

    @Ralith that's a separate suggestion, also best done at https://github.com/RustAudio/coreaudio-sys

  5. est31 commented on Nov 8, 2020

    @est31
    Member

    One potential issue is copyright. Are the headers compatible with the license of coreaudio-sys, or are they apple-proprietary?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions