Skip to content

Statements in .cargo/config.toml and build.rs confusing #127

Open
@frere-jacques

Description

@frere-jacques

I tried today to understand what all the differences of this template are compared to a cargo new.

When I read that in principle build.rs is not needed, only in complicated setups with workspaces I removed it.

When I tried to build my minimal project there was no .text in the binary, nothing was loaded by gdb.

I read in .cargo/config.toml that some settings where previously there, but moved to build.rs. So I copied the build.rs and then everything worked.

So I guess build.rs is needed always. But what is more confusing, I can't see how the settings mentioned in config.toml are set, I only see some println! statements on that topic.

So maybe the comments in the files are outdated or at least I don't understand it.

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