Skip to content

Paths from config.toml do not get properly processed for the platform they run on #12873

@hcldan

Description

@hcldan

Problem

setting a config.toml:

C_API_ROOT = { value = "target/lib/capi", force = false, relative = true }

results in something like this on windows: c:\\Users\\user\\git\\project\\target/lib/capi

Steps

For steps, see above.

Possible Solution(s)

Translate the path according to the platform processing the build, or give us a way to set the path based on the platform being built on or for.

If that is already possible, please make that information easier to access. Perhaps in https://doc.rust-lang.org/cargo/reference/config.html#configuration-format or the section about env.

Notes

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-configurationArea: cargo config files and env varsC-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions