Skip to content

Commit

Permalink
proptest-derive: prepare 0.5.1 patch release (#538)
Browse files Browse the repository at this point in the history
* proptest-derive: prepare 0.5.1 patch release

* [fix] update proptest import in tests

* [fix] update compiletest to pull in proptest

---------

Co-authored-by: Matthew Russo <matthew@matthewclayrusso.com>
  • Loading branch information
rexmas and matthew-russo authored Dec 15, 2024
1 parent 8ac7e3f commit 5bc4672
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 12 deletions.
13 changes: 13 additions & 0 deletions proptest-derive/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
## Unreleased

## 0.5.1

- Fix non-local impl nightly warning with allow(non_local_definitions)
((\#531)[https://github.com/proptest-rs/proptest/pull/531])
- Adds support for re-exporting crate. `proptest-derive` now works correctly
when `proptest` is re-exported from another crate. This removes the
requirement for `proptest` to be a direct dependency.
((\#530)[https://github.com/proptest-rs/proptest/pull/530])
- Fix bounds generation for generics in derive(Arbitrary). The implementation
of UseTracker expects that iteration over items of used_map gives items in
insertion order. However, the order of BTreeSet is based on Ord, not
insertion. ((\#511)[https://github.com/proptest-rs/proptest/pull/511])

## 0.5

### Features
Expand Down
16 changes: 8 additions & 8 deletions proptest-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
name = "proptest-derive"
version = "0.5.0"
authors = ["Mazdak Farrokhzad <twingoow@gmail.com>"]
license = "MIT OR Apache-2.0"
readme = "README.md"
name = "proptest-derive"
version = "0.5.1"
authors = ["Mazdak Farrokhzad <twingoow@gmail.com>"]
license = "MIT OR Apache-2.0"
readme = "README.md"

repository = "https://github.com/proptest-rs/proptest"
repository = "https://github.com/proptest-rs/proptest"
documentation = "https://proptest-rs.github.io/proptest/proptest-derive/index.html"

keywords = ["derive", "arbitrary", "proptest", "testing", "quickcheck"]
categories = ["development-tools::testing"]
keywords = ["derive", "arbitrary", "proptest", "testing", "quickcheck"]
categories = ["development-tools::testing"]

description = """
Custom-derive for the Arbitrary trait of proptest.
Expand Down
6 changes: 3 additions & 3 deletions proptest-derive/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ test! {
#[allow(non_upper_case_globals)]
#[allow(clippy::arc_with_non_send_sync)]
const _: () = {
extern crate proptest as _proptest;
use proptest as _proptest;
impl _proptest::arbitrary::Arbitrary for MyUnitStruct {
type Parameters = ();
type Strategy = fn() -> Self;
Expand All @@ -104,7 +104,7 @@ test! {
#[allow(non_upper_case_globals)]
#[allow(clippy::arc_with_non_send_sync)]
const _: () = {
extern crate proptest as _proptest;
use proptest as _proptest;
impl _proptest::arbitrary::Arbitrary for MyTupleUnitStruct {
type Parameters = ();
type Strategy = fn() -> Self;
Expand All @@ -126,7 +126,7 @@ test! {
#[allow(non_upper_case_globals)]
#[allow(clippy::arc_with_non_send_sync)]
const _: () = {
extern crate proptest as _proptest;
use proptest as _proptest;
impl _proptest::arbitrary::Arbitrary for MyNamedUnitStruct {
type Parameters = ();
type Strategy = fn() -> Self;
Expand Down
2 changes: 1 addition & 1 deletion proptest-derive/tests/compiletest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn run_mode(src: &'static str, mode: &'static str) {

config.mode = mode.parse().expect("invalid mode");
config.target_rustcflags =
Some("-L ../target/debug/deps --edition=2018".to_owned());
Some("-L ../target/debug/deps --extern proptest --edition=2021".to_owned());
if let Ok(name) = env::var("TESTNAME") {
config.filters = vec![name];
}
Expand Down

0 comments on commit 5bc4672

Please sign in to comment.