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

Exclude a few more things from published crates #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kalev
Copy link

@kalev kalev commented Aug 25, 2023

The bundled C library in the ext directory is only used by internal libqoi that isn't published on crates.io, and test_gen.rs tests libqoi (which again isn't published).

The pdf doc isn't used for the build of the published crate either, so exclude this as well.

Pointed out by Fabio Valentini in
https://bugzilla.redhat.com/show_bug.cgi?id=2233787

The bundled C library in the ext directory is only used by internal
libqoi that isn't published on crates.io, and test_gen.rs tests libqoi
(which again isn't published).

The pdf doc isn't used for the build of the published crate either, so
exclude this as well.

Pointed out by Fabio Valentini in
https://bugzilla.redhat.com/show_bug.cgi?id=2233787
@aldanor
Copy link
Owner

aldanor commented Oct 10, 2023

Agreed re: the doc folder.

Re: libqoi and test_gen.rs, I'm unsure about that, if you remove those, you won't be able to simply run cargo test because of

target/debug/build/libqoi-ec49f992f9130877/out/qoi.c:1:10: fatal error: 'qoi.h' file not found

test_gen.rs tests libqoi (which again isn't published).

Not quite - test_gen.rs tests that the following roundtrips successfully for a bunch of generated samples:

  • qoi-rust <--> qoi-rust
  • qoi-rust <--> qoi.h

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