Skip to content

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

Merged
KodrAus merged 1 commit intobitflags:mainfrom
jamessan:exclude-anchors
Dec 11, 2023
Merged

Cargo.toml: Anchor excludes to root of the package#387
KodrAus merged 1 commit intobitflags:mainfrom
jamessan:exclude-anchors

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
@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.

2 participants