Error messages now include the original message from std::io::Error by default (#60). Previously this was exposed through the Error::source() method. For example, previously a message would look like:
failed to open file `file.txt`
and you would have to remember to print the source, or use a library like anyhow to print the full chain of source errors. The new error message includes the cause by default
failed to open file `file.txt`: The system cannot find the file specified. (os error 2)
Note that the original error is no longer exposed though Error::source() by default. If you need access to it, you can restore the previous behaviour with the expose_original_error feature flag.
The io_safety feature flag has been removed, and this functionality is now always enabled on Rust versions which support it (1.63.0 and greater).
Experimental support for binary snapshots. #610 (Florian Plattner)
--force-update-snapshots now causes cargo-insta to write every snapshot, regardless of whether snapshots fully match, and now implies --accept. This allows for --force-update-snapshots to update inline snapshots' delimiters and indentation.
For the previous behavior of --force-update-snapshots, which limited writes to snapshots which didn't fully match, use --require-full-match. The main difference between --require-full-match and the existing behavior of --force-update-snapshots
is a non-zero exit code on any snapshots which don't fully match.
Like the previous behavior or --force-update-snapshots, --require-full-match doesn't track inline snapshots' delimiters or
indentation, so can't update if those don't match. #644
Inline snapshots only use # characters as delimiters when required. #603
Warnings for undiscovered snapshots are more robust, and include files with custom snapshot extensions. #637
Insta runs correctly on packages which reference rust files in a parent path. #626
Warnings are printed when any snapshot uses a legacy format. #599
Re-release of 1.41.1 to generate release artifacts correctly.
1.41.0
Experimental support for binary snapshots. #610 (Florian Plattner)
--force-update-snapshots now causes cargo-insta to write every snapshot, regardless of whether
snapshots fully match, and now implies --accept. This
allows for --force-update-snapshots to update inline snapshots'
delimiters and indentation.
For the previous behavior of --force-update-snapshots, which limited writes to
snapshots which didn't fully match, use --require-full-match.
The main difference between --require-full-match and the existing behavior of --force-update-snapshots
is a non-zero exit code on any snapshots which don't fully match.
Like the previous behavior of --force-update-snapshots, --require-full-match
doesn't track inline snapshots' delimiters or
indentation, so can't update if those don't match. #644
Inline snapshots only use # characters as delimiters when required. #603
Warnings for undiscovered snapshots are more robust, and include files with
custom snapshot extensions. #637
Insta runs correctly on packages which reference rust files in a parent path. #626
Warnings are printed when any snapshot uses a legacy format. #599
insta now internally uses INSTA_UPDATE=force rather than
INSTA_FORCE_UPDATE=1. (This doesn't affect users of cargo-insta, which
handles this internally.) #482
cargo-insta's integration tests continue to grow over the past couple of versions,
and now offer coverage of most of cargo-insta's interface.
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 cargo-dependencies group with 12 updates in the / directory:
1.0.89
1.0.93
0.82.0
0.83.0
0.5.0
0.6.0
4.5.18
4.5.21
2.11.0
3.0.0
0.2.1
0.2.2
1.0.210
1.0.215
2.5.2
2.5.3
2.10.0
3.0.1
1.40.0
1.41.1
1.0.128
1.0.133
3.13.0
3.14.0
Updates
anyhow
from 1.0.89 to 1.0.93Release notes
Sourced from anyhow's releases.
Commits
713bda9
Release 1.0.93f91c247
Merge pull request #391 from dtolnay/thiserror2a3901c
Isolate old rustc version tests from needing anyhow dev-dependencies in lockfile3ca2cdd
Update dev-dependencies to thiserror v2fd03a8e
Release 1.0.92a16252b
Merge pull request #390 from dtolnay/rawaddrfcf2ef8
Compile &raw test on Rust 1.82+ only1e7e9fe
Parse raw address expression syntax7d1a8f9
Add test of raw addr expression syntax6c52daa
Release 1.0.91Updates
cargo
from 0.82.0 to 0.83.0Commits
8f40fc5
Auto merge of #14441 - kornelski:env-leak, r=epagef3c7525
Tests rely on absence of RUST_BACKTRACE7d7b932
Auto merge of #14432 - weihanglo:target-applies-to-host, r=epaged12c716
fix:-Cmetadata
includes whether extra rustflags is same as hostdba34d4
test: show runtime-dep and build-dep collides9e152bb
Auto merge of #14428 - dpaoliello:mdman, r=epage3ef3f61
Auto merge of #14425 - ShashiSugrim:shashi/issue14403, r=epageb2430df
Auto merge of #14408 - tweag:infer-registry-ignore-unpublishable, r=epage1f4ef10
Auto merge of #14412 - linyihai:fix-pre-release, r=epagea87a6dc
Auto merge of #14430 - Rustin170506:rustin-patch-14409, r=epageUpdates
cargo-util-schemas
from 0.5.0 to 0.6.0Changelog
Sourced from cargo-util-schemas's changelog.
... (truncated)
Commits
e1ed995
Auto merge of #2077 - Lechindianer:master, r=alexcrichton295579c
Fixed typo829408c
Auto merge of #2061 - alexcrichton:update, r=alexcrichton0fc31aa
Update dependencies4d8b93f
Auto merge of #2071 - aarzee:master, r=alexcrichtonf3aa22d
Auto merge of #2072 - durka:patch-2, r=alexcrichton149db09
fix copy/paste error in doc694c272
Cleanupfd4c554
Auto merge of #2068 - alexcrichton:root-profiles, r=brsone50ccf7
Always use the root package's set of profilesUpdates
clap
from 4.5.18 to 4.5.21Release notes
Sourced from clap's releases.
Changelog
Sourced from clap's changelog.
Commits
03d7226
chore: Release3df70fb
docs: Update changelog3266c36
Merge pull request #5691 from epage/custom951762d
feat(complete): Allow any OsString-compatible type to be a CompletionCandidatebb6493e
feat(complete): Offer - as a path option27b348d
refactor(complete): Simplify ArgValueCandidates code49b8108
feat(complete): Add PathCompleter82a360a
feat(complete): Add ArgValueCompleter47aedc6
fix(complete): Ensure paths are sorted431e2bc
test(complete): Ensure ArgValueCandidates get filteredUpdates
fs-err
from 2.11.0 to 3.0.0Changelog
Sourced from fs-err's changelog.
Commits
5cefbe6
chore: Release fs-err version 3.0.09bf99af
Replace default_features with default-features in Cargo.toml11a6460
Remove deprecated APIs (#66)27144b0
Remove io_safety feature flag (#65)1a26274
Update changelog and docs for #60df8f93a
Show source by default, add feature to hide it (#60)7a49316
Fix CI (#64)25ac421
Fix typo (#57)c18ebbe
Merge pull request #52 from brooksprumo/globc24e914
Removes glob import of ErrorKind within DisplayUpdates
pathdiff
from 0.2.1 to 0.2.2Commits
Updates
serde
from 1.0.210 to 1.0.215Release notes
Sourced from serde's releases.
Commits
8939af4
Release 1.0.215fa5d58c
Use ui test syntax that does not interfere with rustfmt1a3cf4b
Update PR 2562 ui tests7d96352
Merge pull request #2857 from dtolnay/collide111ecc5
Update ui tests for warning on colliding aliasesedd6fe9
Revert "Add checks for conflicts for aliases"a20e924
Revert "pacify clippy"b1353a9
Merge pull request #2856 from dtolnay/denamec59e876
Produce a separate warning for every colliding name7f1e697
Merge pull request #2855 from dtolnay/namespanUpdates
url
from 2.5.2 to 2.5.3Release notes
Sourced from url's releases.
Commits
8a683ff
Merge idna-v1x to main (#990)08a3268
OSS-Fuzz: Add more fuzzers (#988)5d363cc
Improve serde error output (#982)30e6258
fix: support wasm32-wasip2 on stable channel (#983)bf089c4
support hermit (#985)b08a655
Normalize URL paths: convert /.//p, /..//p, and //p to p (#943)ebd5cfb
no_std
support for theurl
crate (#831)7eccac9
Add a test for and fix issue #974 (#975)710e1e7
refactor and add tests for percent encoding (#977)6050a6e
mention why we pin unicode-width (#972)Updates
fake
from 2.10.0 to 3.0.1Commits
Updates
insta
from 1.40.0 to 1.41.1Release notes
Sourced from insta's releases.
... (truncated)
Changelog
Sourced from insta's changelog.
Commits
cb08d92
Bump version to 1.41.1 (#681)6d555d4
Changelog for 1.41.1 (#680)0317928
Refine changelog (#675)0e07a50
Update a couple docstrings (#669)083ce14
Another small simplification ofprepare_test_runner
(#667)b7dea9b
Small simplification ofprepare_test_runner
(#666)5fd34e6
Print a version with--version
(#665)a8b6cc2
Small refactors (#664)4f16d70
Show hidden files in functional tests (#663)2b8fce7
ConsolidateCargo.toml
creation in functional tests (#662)Updates
serde_json
from 1.0.128 to 1.0.133Release notes
Sourced from serde_json's releases.
Commits
0903de4
Release 1.0.1332b65ca0
Merge pull request #1215 from dtolnay/fromarray4e5f985
Implement From<[T; N]> for Value2ccb5b6
Disable question_mark clippy lint in lexical testa11f5f2
Resolve unnecessary_map_or clippy lints07f280a
Wrap PR 1213 to 80 columns75ed447
Merge pull request #1213 from djmitche/safety-comment73011c0
Add a safety comment to unsafe blockbe2198a
Prevent upload-artifact step from causing CI failure7cce517
Raise minimum version for preserve_order feature to Rust 1.65Updates
tempfile
from 3.13.0 to 3.14.0Changelog
Sourced from tempfile's changelog.
Commits
b232c58
chore: release 3.14.0 (#307)a23f396
fix: enable wasip2 feature for wasm32-wasip2 target (#305)f162807
ci: switch from cargo-wasi to directly using the wasip1 target (#306)fa8ad00
allow older windows-sys (#304)335d91d
fix: expose SpooledData enum (#301)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