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

Cargo.toml: Anchor excludes to root of the package #387

Merged
merged 1 commit into from Dec 11, 2023

Conversation

jamessan
Copy link
Contributor

Without anchoring the excludes, src/tests/ is missing from the published
crate. This causes “cargo test” to fail because code referenced by
src/tests.rs is not present.


This is important for distributors, like Debian, who build their
packages from the crate rather than the VCS. Our own CI is currently
failing for bitflags due to this. We can disable the tests for now, but
it would be helpful to be able to run them.

Without anchoring the excludes, src/tests/ is missing from the published
crate.  This causes “cargo test” to fail because code referenced by
src/tests.rs is not present.
@KodrAus
Copy link
Member

KodrAus commented Dec 11, 2023

Thanks @jamessan! This looks good to me. The CI failure is unrelated; I'm fixing that up in a separate PR.

@KodrAus KodrAus merged commit 4db18a8 into bitflags:main Dec 11, 2023
8 of 9 checks passed
@jamessan jamessan deleted the exclude-anchors branch December 12, 2023 00:21
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

Successfully merging this pull request may close these issues.

None yet

2 participants