Skip to content

cross build --target-dir=<path> ... doesn't work #272

@vadimcn

Description

@vadimcn

I'm calling cross from cmake to build a Rust component, and I wanted to relocate the target directory under cmake's build root. Unfortunately, this does not work, because cross seems to assume that target must always be located next to Cargo.toml.

Relocating target via .cargo/config containing target-dir = "build/target" doesn't work either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions