Fix a bug in processing string escapes in big-endian architectures (#1173, thanks @purplesyringa)
v1.0.123
Optimize string parsing by applying SIMD-within-a-register: 30.3% improvement on twitter.json from 613 MB/s to 799 MB/s (#1161, thanks @purplesyringa)
Now, more than 8 years after the first commit and almost 5 years after the 0.99.0 release, derive_more has finally reached its 1.0.0 release. This release contains a lot of changes (including some breaking ones) to make it easier to use the derives and make it possible to extend them without having to break backwards compatibility again. There are five major changes that I would like to call out, but there are many more changes that are documented below:
There is a new Debug derive that can be used to easily customize Debug formatting.
A greatly improved Display derive, which allows you to do anything that thiserror provides, but it works for any type not just errors. And by combining the Display derive with the Error and From derives, there shouldn't really be any need to use thiserror anymore (if you are missing a feature/behaviour from thiserror please report an issue).
Traits that can return errors now return a type that implements Error when an error occurs instead of a &'static str.
When using use derive_more::SomeTrait the actual trait is also imported not just the derive macro. This is especially useful for Error and
Display
The docs are now rendered on docs.rs and are much better overall.
Breaking changes
The minimum supported Rust version (MSRV) is now Rust 1.75.
Add the std feature which should be disabled in no_std environments.
All Cargo features, except std, are now disabled by default. The full feature can be used to get the old behavior of supporting all possible derives.
The TryFrom, Add, Sub, BitAnd, BitOr, BitXor, Not and Neg derives now return a dedicated error type instead of a &'static str on error.
The FromStr derive now uses a dedicated FromStrError error type instead of generating unique one each time.
The Display derive (and other fmt-like ones) now uses #[display("...", (<expr>),*)] syntax instead of #[display(fmt = "...", ("<expr>"),*)], and #[display(bound(<bound>))] instead of #[display(bound = "<bound>")]. So without the double quotes around the expressions and bounds.
The Debug and Display derives (and other fmt-like ones) now transparently delegate to the inner type when #[display("...", (<expr>),*)] attribute is trivially substitutable with a transparent call. (#322)
More than 8 years after the first commit and almost 5 years after the 0.99.0
release, derive_more has finally reached its 1.0.0 release. This release
contains a lot of changes (including some breaking ones) to make it easier to
use the derives and make it possible to extend them without having to break
backwards compatibility again. There are five major changes that I would like
to call out, but there are many more changes that are documented below:
There is a new Debug derive that can be used to easily customize Debug
formatting.
A greatly improved Display derive, which allows you to do anything that
thiserror provides, but it works
for any type not just errors. And by combining the Display derive with the
Error and From derives, there shouldn't really be any need to use
thiserror anymore (if you are missing a feature/behaviour from thiserror
please report an issue).
Traits that can return errors now return a type that implements Error
when an error occurs instead of a &'static str.
When using use derive_more::SomeTrait the actual trait is also imported
not just the derive macro. This is especially useful for Error and
Display
The docs are now rendered on docs.rs and are much better overall.
Breaking changes
The minimum supported Rust version (MSRV) is now Rust 1.75.
Add the std feature which should be disabled in no_std environments.
All Cargo features, except std, are now disabled by default. The full
feature can be used to get the old behavior of supporting all possible
derives.
The TryFrom, Add, Sub, BitAnd, BitOr, BitXor, Not and Neg
derives now return a dedicated error type instead of a &'static str on
error.
The FromStr derive now uses a dedicated FromStrError error type instead
of generating unique one each time.
The Display derive (and other fmt-like ones) now uses
#[display("...", (<expr>),*)] syntax instead of
#[display(fmt = "...", ("<expr>"),*)], and #[display(bound(<bound>))]
instead of #[display(bound = "<bound>")]. So without the double quotes
around the expressions and bounds.
The Debug and Display derives (and other fmt-like ones) now transparently
delegate to the inner type when #[display("...", (<expr>),*)] attribute is
trivially substitutable with a transparent call.
(#322)
The DebugCustom derive is renamed to just Debug (gated now under a separate
debug feature), and its semantics were changed to be a superset of std variant
of Debug.
The From derive doesn't derive From<()> for enum variants without any
fields anymore. This feature was removed because it was considered useless in
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the rust group with 6 updates:
4.8.0
4.9.0
4.3.0
4.3.1+deprecated
1.0.204
1.0.206
1.0.122
1.0.124
0.2.0
0.2.1
0.99.18
1.0.0
Updates
actix-web
from 4.8.0 to 4.9.0Release notes
Sourced from actix-web's releases.
Commits
e0918fb
chore(actix-web): prepare release 4.9.09ba326a
chore(actix-http): prepare release 3.9.0882fb3d
chore(actors): add version marker in changelogbe28a0b
feat: add from_fn middleware (#3447)a431b73
feat: add ThinData wrapper (#3446)5be5382
docs(actors): add maintenance badged7d9000
chore: address clippy warningse4e4bb7
chore(actix-web-actors): prepare release 4.3.1323d1fa
build(deps): bump taiki-e/install-action from 2.42.9 to 2.42.17 (#3442)9aa6211
build(deps): bump taiki-e/install-action from 2.42.4 to 2.42.9 (#3441)Updates
actix-web-actors
from 4.3.0 to 4.3.1+deprecatedRelease notes
Sourced from actix-web-actors's releases.
Commits
e35ec28
prepare actix-web release 4.3.135006e9
prepare actix-web-codegen release 4.2.0115701e
prepare awc release 3.1.1e2fed91
format markdown with prettierd4b833c
actix-multipart: Feature: Add typed multipart form extractor (#2883)358c1cf
improve docs for app_config methods42193be
fix typos (#2982)dc08ea0
clippy85d88ff
Fix minor typo in Markdown (#2977)bf19a0e
added body manipulation example for error handlers (#2973)Updates
serde
from 1.0.204 to 1.0.206Release notes
Sourced from serde's releases.
Commits
85c73ef
Release 1.0.2065ba1796
Resolve doc_markdown pedantic lint on regression test functione52b7b3
Touch up PR 256784c7419
Merge pull request #2794 from dtolnay/neverread536221b
Temporarily ignore collection_is_never_read on FlattenSkipDeserializingfc55ac7
Merge pull request #2567 from Mingun/fix-25652afe5b4
Add regression test for issue #2792b4ec259
Correctly process flatten fields in enum variantsc3ac7b6
Add regression test for issue #190424614e4
Add regression test for issue #2565Updates
serde_json
from 1.0.122 to 1.0.124Release notes
Sourced from serde_json's releases.
Commits
cf771a0
Release 1.0.1248b314a7
Merge pull request #1173 from iex-rs/fix-big-endian8eba786
Fix skip_to_escape on BE architectures2cab07e
Release 1.0.123346189a
Fix needless_borrow clippy lint in new control character test859ead8
Merge pull request #1161 from iex-rs/vectorized-string-parsinge43da5e
Immediately bail-out on empty strings8389d8a
Don't run the slow algorithm from the beginning1f0dcf7
Allow clippy::items_after_statementsa95d6df
Big endian supportUpdates
win-msgbox
from 0.2.0 to 0.2.1Changelog
Sourced from win-msgbox's changelog.
Commits
dd3457b
chore: Release win-msgbox version 0.2.1592da1d
deps: update windows-sys to 0.59 (#10)0a3bb5e
fix: added space in changelogUpdates
derive_more
from 0.99.18 to 1.0.0Release notes
Sourced from derive_more's releases.
... (truncated)
Changelog
Sourced from derive_more's changelog.
... (truncated)
Commits
d7f5b9e
chore: Release40201b1
Update release date to be correct88863ca
Update changelog wordingb713835
Improve error when not enabling any features330e425
Order features in Cargo.toml alphabetically84f2cbb
Update README and CHANGELOG in preparation of 1.0.0e8d60cf
Add compile_fail test for on purpose limited bounds (#393, #392)f665d18
Make anyhow reference a bit less strong6d632b2
Add release announcement (#390)e87ab13
Don't create git tags for derive_more-impl (#391)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 show