Skip to content

cxx has invalid cxxbridge-cmd dependency #111

Closed
@pprkut

Description

@pprkut

I'm trying to vendor the sources for https://github.com/zed-industries/zed with cargo-vendor-filterer 0.5.16.

This is the configuration I'm adding to Config.toml:

[workspace.metadata.vendor-filter]
platforms = ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"]
all-features = true

I don't see any errors during the vendoring, but when I then try to build it using the vendored sources I get:

error: failed to load source for dependency `cpal`

Caused by:
  Unable to update https://github.com/zed-industries/cpal?rev=fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50#fd8bc2fd

Caused by:
  failed to update replaced source https://github.com/zed-industries/cpal?rev=fd8bc2fd39f1f5fdee5a0690656caff9a26d9d50#fd8bc2fd

Caused by:
  failed to parse manifest at `/usr/src/tmp/zed-0.168.2/vendor/cxxbridge-cmd/Cargo.toml`

Caused by:
  no targets specified in the manifest
  either src/lib.rs, src/main.rs, a [lib] section, or [[bin]] section must be present

Checking back at the vendoring, I do see that cxxbridge-cmd is one of the dependencies getting replaced with stubs:

Replacing unreferenced package with stub: cxxbridge-cmd

Activity

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