Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
frere-jacques opened this issue Jun 2, 2024 · 0 comments
Open

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

frere-jacques opened this issue Jun 2, 2024 · 0 comments

Comments

@frere-jacques
Copy link

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.

@frere-jacques frere-jacques changed the title Statements in .cargo/config.toml and build.rs conusing Statements in .cargo/config.toml and build.rs confusing Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant