Skip to content

With latest nightly rust, builds failing due to changes in cargo output #398

Closed
@alex

Description

@alex

I'm currently seeing all builds failing on the latest nightly Rust with:

  error: Rust build failed; unable to find any cdylib or dylib build artifacts

This error comes from: https://github.com/PyO3/setuptools-rust/blob/main/setuptools_rust/build.py#L301-L310

The cause appears to be that the format of the package_id variable changed. On stable, package_id for me is: cryptography-rust 0.1.0 (path+file:///Users/alex_gaynor/projects/cryptography/src/rust), while on nightly, the package_id is path+file:///Users/alex_gaynor/projects/cryptography/src/rust#cryptography-rust@0.1.0.

However, the format of package IDs found in the cargo JSON build output is unchanged, which results in _find_cargo_artifacts no longer matching things.

I'm not sure if this is a cargo bug or a setuptools-rust bug.

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