[BREAKING] Split the derive macro out to a separate procmacro
crate. This is considered a
breaking change because reexporting and/or renmaing the crate can now prevent
the generated code from finding the types it needs (see issue #101)
Fixed
Marking a field as #[deprecated] now behaves properly - TypedBuilder
generated code itself does trigger the deprecation warning, and instead the
setter for that field now does.
The "fake" build method when required fields are not provided now returns
the never type ("!"). Refer to PR #97 for more thorough explanation.
Added
Support for setter method prefixes and suffixes #[builder(field_defaults(setter(prefix = "...", suffix = "...")))].
This either prepends or appends the provided string to the setter method. This allows method names like: set_x(),
with_y(), or set_z_value().
0.14.0 - 2023-03-08
Added
build_method(into) and build_method(into = ...).
0.13.0 - 2023-03-05
Changed
y
[BREAKING] Builder state parameter moved to the end of the generated builder type's parameters list.
Generated builder type's builder state parameter now defaults to tuple of
empty tuples. This means the empty builder, where no parameter is yet set.
Fixed
#[builder(build_method(...))] now affects the fake build method that's
generated to add information to the compiler error.
0.12.0 - 2023-01-29
Removed
[BREAKING] builder_method_doc = "...", builder_type_doc = "..." and
build_method_doc = "..." are replaced with builder_method(doc = "..."),
builder_type(doc = "...") and build_method(doc = "...").
Added
build_method(...) now has a doc field.
builder_method(...) and builder_type(...), which are structured similarly to build_method(...).
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Updates the requirements on typed-builder to permit the latest version.
Changelog
Sourced from typed-builder's changelog.
... (truncated)
Commits
You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)