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

Tests should have access to dev-dependencies in Cargo.toml #282

Open
tmandry opened this issue Oct 1, 2024 · 3 comments
Open

Tests should have access to dev-dependencies in Cargo.toml #282

tmandry opened this issue Oct 1, 2024 · 3 comments

Comments

@tmandry
Copy link

tmandry commented Oct 1, 2024

Currently they only have access to regular dependencies.

@oli-obk
Copy link
Owner

oli-obk commented Oct 2, 2024

You can specify a custom Cargo.toml instead of reusing the one from your project. We rebuild it from scratch anyway.

I'm not sure how to get the dev dependencies, and it would clash with cross testing anyway

@tmandry
Copy link
Author

tmandry commented Oct 2, 2024

Yeah, I did end up specifying a Cargo.toml, it's just awkward because you have to make a stub lib.rs.

I was hoping there would be an easy way of doing this. Feel free to close if not planned.

@oli-obk
Copy link
Owner

oli-obk commented Oct 2, 2024

I want to be able to specify dependencies in the ui test .rs file, as the separate Cargo.toml was always a hack out of laziness

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