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

02_basic_calculator/08_overflow Ignores Dev Profile #206

Open
JimLynchCodes opened this issue Nov 4, 2024 · 1 comment
Open

02_basic_calculator/08_overflow Ignores Dev Profile #206

JimLynchCodes opened this issue Nov 4, 2024 · 1 comment

Comments

@JimLynchCodes
Copy link

Hi, I'm on exercise 02_basic_calculator/08_overflow

I'm thinking the correct thing to do is add this to the bottom of Cargo.toml:

[profile.dev]
overflow-checks = false

But when I run the tests they still fail, with a warning saying this dev profile is being ignored...

warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /Users/jim/Git-Projects/100-exercises-to-learn-rust/exercises/02_basic_calculator/08_overflow/Cargo.toml

For some reason it thinks this directory is not the project root, but there are no Cargo.toml files in any parents directories...

What is the intended solution for this exercise?

Thanks

@c-git
Copy link
Contributor

c-git commented Nov 7, 2024

It's actually part of a workspace. If you go up to the root folder you'll see another Cargo.toml there. The solutions are on a branch here but I guess this one was a bit tricky to find if you hadn't found the other Cargo.toml

overflow-checks = true

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

2 participants