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

Please add the test-crate dir in your package #6

Open
tenzap opened this issue Nov 3, 2024 · 1 comment
Open

Please add the test-crate dir in your package #6

tenzap opened this issue Nov 3, 2024 · 1 comment

Comments

@tenzap
Copy link

tenzap commented Nov 3, 2024

While trying to package the crate for Debian, we noticed that it is not possible to run the test suite because you don't ship the test-crate dir.

Example of error:

error[E0432]: unresolved import `test_crate`
 --> tests/ok.rs:1:5
  |
1 | use test_crate::*;
  |     ^^^^^^^^^^ use of undeclared crate or module `test_crate`

error: cannot find macro `ok` in this scope
 --> tests/ok.rs:3:1
  |
3 | ok!(it_works);
  | ^^

@tenzap tenzap changed the title Please add the test_crate dir in your package Please add the test-crate dir in your package Nov 3, 2024
@GnomedDev
Copy link
Owner

I've tried adding

include = ["src", "tests", "test-crate", "README.md"]

to the Cargo.toml but that still seems to cause this error in the output of cargo package .

PRs are welcome, but I'll take a look into this at some point.

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