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

chore: remove proptest in all crates and Arbitrary derives #966

Merged
merged 6 commits into from
Jul 11, 2024

Conversation

Rjected
Copy link
Contributor

@Rjected Rjected commented Jun 24, 2024

Motivation

This was only required because reth required these types to implement proptest::Arbitrary. This is no longer the case, and arbitrary::Arbitrary is already usable.

Solution

Remove almost all proptest derives, remove unused proptest dependencies.

There is a single proptest! left, which is for other fields, would like to know whether that's necessary or not.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@DaniPopes DaniPopes left a comment

Choose a reason for hiding this comment

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

which derives are missing?

@Rjected
Copy link
Contributor Author

Rjected commented Jun 24, 2024

which derives are missing?

just this:

derive(proptest_derive::Arbitrary, arbitrary::Arbitrary)

used for this:

proptest::proptest!(

@DaniPopes
Copy link
Member

DaniPopes commented Jun 24, 2024

Ah yeah the custom impl and test can be removed, it's only there because proptest derive doesn't support recursion

@Rjected Rjected changed the title chore: remove proptest in most crates and Arbitrary derives chore: remove proptest in all crates and Arbitrary derives Jun 25, 2024
@Rjected Rjected force-pushed the dan/remove-proptest-derives branch from e8ef353 to 4ba7d70 Compare July 11, 2024 20:19
@mattsse mattsse merged commit d9d9262 into alloy-rs:main Jul 11, 2024
1 check passed
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
)

* chore: remove proptest in most crates and Arbitrary derives

* cargo fmt

rewriting static

* remove other proptest derive

* remove the rest of the proptest impls

* make arbitraryvalue not pub

* remove proptest derive from auth list
j75689 pushed a commit to bnb-chain/alloy that referenced this pull request Aug 1, 2024
)

* chore: remove proptest in most crates and Arbitrary derives

* cargo fmt

rewriting static

* remove other proptest derive

* remove the rest of the proptest impls

* make arbitraryvalue not pub

* remove proptest derive from auth list
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.

3 participants