Skip to content

Conversation

@JOE1994
Copy link

@JOE1994 JOE1994 commented Aug 26, 2020

Hello 🦀 , this PR attempts to fix issue #331 (resolves #331).

Currently running cargo test --no-default-features --features 'quickcheck fails with errors.
This PR makes the following changes to solve the issue.

  • add a dependency list for feature quickcheck
  • rename feature quickcheck to apply_quickcheck
    The reason for this changes is that the project currently has a name conflict between the feature quickcheck and the dependency library name quickcheck. Feature quickcheck isn't defined in Cargo.toml, but is used for a feature gate in src/lib.rs. I had to resolve the name conflict to enable adding a dependency list for feature quickcheck.

Thank you for reviewing this PR 👍

This change is made to avoid name conflicts when defining dependencies
(library name vs. feature gate name).
@XVilka
Copy link
Member

XVilka commented Aug 27, 2020

Nice catch! Not sure about the name though.

github-merge-queue bot pushed a commit that referenced this pull request Jun 13, 2025
Currently it seems to be impossible to run the following test setup due
to missing dependency declarations:
```
cargo test --no-default-features --features 'quickcheck'
```
This was first observed in #331.

Running the above fails due to multiple reasons which boil down to other
features being disabled which are actually necessary.

This PR aims to fix that by declaring a dependency list for the
quickcheck feature and is a revamp of #372. Thus, this resolves #331.

I am not 100% certain about the `std` dependency in the quickcheck
dependency list, but without that dependency there seem to be some
issues with missing RandomStates (std) to initialize certain structs in
quickchecks. Since furthermore Quickcheck does not have `no-std`, it
would - according to my understanding - include std anyways.
RaoulLuque added a commit to RaoulLuque/petgraph that referenced this pull request Jun 18, 2025
Currently it seems to be impossible to run the following test setup due
to missing dependency declarations:
```
cargo test --no-default-features --features 'quickcheck'
```
This was first observed in petgraph#331.

Running the above fails due to multiple reasons which boil down to other
features being disabled which are actually necessary.

This PR aims to fix that by declaring a dependency list for the
quickcheck feature and is a revamp of petgraph#372. Thus, this resolves petgraph#331.

I am not 100% certain about the `std` dependency in the quickcheck
dependency list, but without that dependency there seem to be some
issues with missing RandomStates (std) to initialize certain structs in
quickchecks. Since furthermore Quickcheck does not have `no-std`, it
would - according to my understanding - include std anyways.
This pull request was closed.
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.

tests fail with --no-default-features --features 'quickcheck'

2 participants