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

Stop skeptic from having to be compiled by all downstream users #16

Merged
merged 1 commit into from
Jun 6, 2021
Merged

Stop skeptic from having to be compiled by all downstream users #16

merged 1 commit into from
Jun 6, 2021

Conversation

paolobarbolini
Copy link
Contributor

@paolobarbolini paolobarbolini commented Jun 3, 2021

This stops skeptic from having to be included in the build stage of all downstream users of this crate (which I'm currently getting because of libunftp depending on this).

skeptic is a pretty heavy crate, depending on other crates like cargo_metadata, error_chain, pulldown_cmark ecc. which in turn depend on a bunch of other stuff. This doesn't make sense to me, as tests for an external crates shouldn't be run by downstream users.

This PR makes it so skeptic tests are only run when compiling with the RUSTFLAGS="--cfg skeptic" flag

@tatsuya6502 tatsuya6502 self-requested a review June 6, 2021 11:40
@tatsuya6502 tatsuya6502 self-assigned this Jun 6, 2021
Copy link
Member

@tatsuya6502 tatsuya6502 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting the PR. LGTM.

@tatsuya6502 tatsuya6502 merged commit c909209 into moka-rs:master Jun 6, 2021
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