Skip to content

Support local cargo dependencies outside of a workspace #1525

Open
@cameron-martin

Description

@cameron-martin

If you have a dependency on a local crate that isn't in the same workspace, cargo-bazel seems to fail with:

error: failed to load manifest for dependency `foo`

Caused by:
  failed to read `/foo/Cargo.toml`

My situation is almost identical to the multi-package example, but where there is a dependency between the packages, for example pkg_a has the following dependency:

pkg_b = { path = "../sub_pkgs/pkg_b" }

I know I could arrange these into a cargo workspace, but I would prefer not to if possible.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions