fix(deps): update rust dependencies #32
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.0→1.0.1012.1→2.1.20.3→0.3.60.1→0.1.890.22→0.22.11.3→1.3.31.2→1.2.20.9→0.9.20.9→0.9.20.9→0.9.20.4→0.4.434.5→4.5.570.15→0.15.190.16→0.16.20.6→0.8.20.15→0.15.70.6→0.6.70.3→0.3.310.20→0.20.40.77→0.79.00.34.0→0.35.10.4→0.4.30.4→0.4.30.12→0.12.10.4→0.4.250.18→0.18.31.46→1.46.30.16→0.17.28.0→8.2.00.10→0.10.755.0→5.1.00.12→0.12.53.1→3.1.31.4→1.4.11.9→1.10.00.7→0.8.00.8→0.10.00.3→0.10.00.13→0.13.20.26→0.26.10.10→0.10.93.24→3.25.03.3→3.3.12.0→2.0.180.21→0.22.20.1→0.1.440.3→0.3.220.2→0.2.62.5→2.5.82.1→2.1.31.19→1.20.00.6→0.6.5Release Notes
dtolnay/anyhow (anyhow)
v1.0.101Compare Source
assert-rs/assert_cmd (assert_cmd)
v2.1.2Compare Source
Fixes
#[must_use]to help catch missing assertionschronotope/chrono (chrono)
v0.4.43: 0.4.43Compare Source
What's Changed
NaiveDate::abs_diffby @Kinrany in #1752clap-rs/clap (clap)
v4.5.57Compare Source
Fixes
.value_terminator("--")caused problems with an argument with.last(true)v4.5.56Compare Source
Fixes
v4.5.55Compare Source
Fixes
value_terminator("--")and escapes (--) where./foo -- barmeans the first arg is empty, rather than escaping future argscriterion-rs/criterion.rs (criterion)
v0.8.2Compare Source
Fixed
Other
v0.8.1Compare Source
Fixed
Other
v0.8.0Compare Source
BREAKING
Changed
Added
Throughput::ElementsAndBytesallows the text summary to report throughput in both units simultaneously.Fixed
Other
v0.7.0Compare Source
rust-lang/git2-rs (git2)
v0.20.4Compare Source
GitoxideLabs/gitoxide (gix)
v0.79.0: gix v0.79.0Compare Source
Bug Fixes
$COMMON_DIR/info/excludeto make excludes work in worktrees.It turns out there is no per-worktree excludes file either.
core.barebeing known or not.This allows
Repository::is_bare()to only make assumptions basedon the configuration value, which is what Git does.
Chore (BREAKING)
prodashandcrosstermionto the latest version.This will fix the
cargo denyissue as it brings in a newerlrucrate.Bug Fixes (BREAKING)
Repository::kind()for better classificationPreviously it wasn't clear what it really is as it chose the wrong
categories.
New Features (BREAKING)
gix-errorinstead ofthiserrorgix-errorinstead ofthiserrorCommit Statistics
Commit Details
view details
core.barebeing known or not. (02fe02b)28fbeb8)e4f016b)0b0e9f8)c7f84c2)gix-errorinstead ofthiserror(0128df7)gix-errorinstead ofthiserror(b8059ab)44e447b)5c9e6ae)gix-testtools(fb60c8a)8bceefb)7ce3c55)aaf0a76)d820846)blocking-http-transport-reqwestdoesn't enablereqwest's default features (c45cdaf)75ac1d0)Repository::kind()for better classification (8ea42ea)e8612b5)gix-error(a304f13)gix-actor(b80d026)f7d0975)v0.78.0: gix v0.78.0Compare Source
Bug Fixes
$COMMON_DIR/info/excludeto make excludes work in worktrees.It turns out there is no per-worktree excludes file either.
Chore (BREAKING)
prodashandcrosstermionto the latest version.This will fix the
cargo denyissue as it brings in a newerlrucrate.Refactor (BREAKING)
refactor!: rename
Exn::from_itertoraise_allNew Features (BREAKING)
std::ops::ControlFlowwhere possiblegix-erroringix-dateThis will make for easier introspection for users of these errors.
New Features
auto-chain-errorby default.This way, the behaviour of
gix::Erroris the same as it was beforewithout actually exposing an
Exnerror tree.http-client-curl-rust-opensslfeature, and make it the default.Previously it was implicit, now it's explicit so it can be turned off.
When that's the case, the
openssldependencies will be removed.Commit Statistics
Commit Details
view details
cbbdef5)f8517be)562e684)9d39656)auto-chain-errorby default. (08d7966)1c5598e)6cff657)gix-commitgraph(1f58905)ErrorExt::erased()toErrorExt::raise_erased(). (373fced)std::ops::ControlFlowwhere possible (5c1bd03)25233ce)Exn::into_box()toExn::into_inner(). (939b8fc)ae23762)gix-errorintogix-revision. (4819ea8)http-client-curl-rust-opensslfeature, and make it the default. (3774a03)0a333e5)exnto most pressing needs ofgitoxide(abedade)gix-erroringix-date(5ab19a7)10bdf7e)3f0e26e)$COMMON_DIR/info/excludeto make excludes work in worktrees. (4773fd1)ee0a1f6)prodashandcrosstermionto the latest version. (2358b1d)c663b3f)7be8f90)d914d95)4edc5dd)9e1ba5e)3bc0c47)211b4fb)mitsuhiko/insta (insta)
v1.46.3Compare Source
v1.46.2Compare Source
leading_space()function incorrectly treated\ras indentation, causing carriage returns to be stripped from snapshot content. #866< 0.4.17upper bound on globset dependency. #864v1.46.1Compare Source
with_settings!macro. #858rust-ndarray/ndarray (ndarray)
v0.17.2Compare Source
===========================
Version 0.17.2 is mainly a patch fix to bugs related to the new
ArrayRefimplementation.In addition,
ndarrayhas reduced its packaging footprint to ease supply chain reviews (and shrink the binary size!).A special thanks to @SwishSwushPow and @weiznich for bringing this to our attention and making the necessary changes.
Added
Fixed
Documentation
v0.17.1Compare Source
===========================
Version 0.17.1 provides a patch to fix the originally-unsound implementation of the new array reference types.
The reference types are now all unsized.
Practically speaking, this has one major implication: writing functions and traits that accept
RawRefandLayoutRefwill now need a+ ?Sizedbound to work ergonomically withArrayRef.For example, the release notes for 0.17.0 said
However, these functions now need an additional bound to allow for callers to pass in
&ArrayReftypes:A huge thank you to Sarah Quiñones (@sarah-quinones) for catching the original unsound bug and helping to fix it.
She does truly excellent work with
faer-rs; check it out!v0.17.0Compare Source
===========================
Version 0.17.0 introduces a new array reference type — the preferred way to write functions and extension traits in
ndarray.This release is fully backwards-compatible but represents a major usability improvement.
The first section of this changelog explains the change in detail.
It also includes numerous new methods, math functions, and internal improvements — all credited below.
A New Way to Write Functions
TL;DR
ndarray0.17.0 adds new reference types for writing functions and traits that work seamlessly with owned arrays and views.When writing functions that accept array arguments:
&ArrayRef<A, D>to read elements from any array.&mut ArrayRef<A, D>to modify elements.&T where T: AsRef<LayoutRef<A, D>>to inspect shape/stride only.&mut T where T: AsMut<LayoutRef<A, D>>to modify shape/stride only.All existing function signatures continue to work; these new types are fully opt-in.
Background
ndarray has multiple ways to write functions that take arrays (a problem captured well in issue #1059).
For example:
All of these work, but having several equivalent forms causes confusion.
The most general solution, writing generically over storage types:
is powerful but verbose and often hard to read.
Version 0.17.0 introduces a new, simpler pattern that expresses the same flexibility more clearly.
Solution
Three new reference types make it easier to write functions that accept any kind of array while clearly expressing what kind of access (data or layout) they need.
Reading / Writing Elements:
ArrayRef<A, D>ArrayRefis theDereftarget ofArrayBase.It behaves like
&[T]forVec<T>, giving access to elements and layout.Mutability is expressed through the reference itself (
&vs&mut), not through a trait bound or the type itself.It is used as follows:
(ArrayRef1 is available from the prelude.)
Reading / Writing Shape:
LayoutRef<A, D>LayoutRef lets functions view or modify shape/stride information without touching data.
This replaces verbose signatures like:
Use AsRef / AsMut for best compatibility:
(Accepting a
LayoutRefdirectly can cause unnecessary copies; see #1440.)Reading / Writing Unsafe Elements:
RawRef<A, D>RawRefaugmentsRawArrayViewandRawArrayViewMutfor power users needing unsafe element access (e.g. uninitialized buffers).Like
LayoutRef, it is best used viaAsRef/AsMut.Added
diffmethod for calculating the difference between elements by @johann-cm #1437partitionmethod for partially sorting an array by @NewBornRustacean #1498meshgridmethod for building regular grids of values by @akern40 #1477cumprodmethod for cumulative products by @NewBornRustacean #1491exp_m1,ln_1p,asin,acos,atan,sinh,cosh,tanh,asinh,acosh,atanh, andhypotaxis_windows_with_stridemethod for strided windows by @goertzenator #1460permute_axes) and reversing (reverse_axes) axes by @NewBornRustacean #1505into_*_iterfunctions as lifetime-preserving versions of into-iterator functionality by @akern40 #1510Changed
remove_indexcan now be called on views, in addition to owned arrays by @akern40Removed
serde-1,test, anddocsfeature flags; by @akern40 #1479approx,serde,rayoninstead ofdocs.serdeinstead ofserde-1Fixed
last_mut()now guarantees that the underlying data is uniquely held by @bluss #1429ArrayViewis now covariant over lifetime by @akern40 #1480, so that the following code now compilesDocumentation
selectby @Drazharinto_raw_vec_and_offsetby @benliepertArray::zeroswith how to control the return type by @akern40Other
no_stdby @akern40proptest-rs/proptest (proptest)
v1.10.0Compare Source
rust-random/rand (rand)
v0.10.0Compare Source
Changes
rand_chachahas been replaced with a dependency onchacha20. This changes the implementation behindStdRng, but the output remains the same. There may be some API breakage when using the ChaCha-types directly as these are now the ones inchacha20instead ofrand_chacha(#1642).IndexedRandom::choose_multiple->sample,choose_multiple_array->sample_array,choose_multiple_weighted->sample_weighted, structSliceChooseIter->IndexedSamplesand fnsIteratorRandom::choose_multiple->sample,choose_multiple_fill->sample_fill(#1632)Fillbe implemented for element types, not sliceable types (#1652)OsError::raw_os_erroron UEFI targets by returningOption<usize>(#1665)TryRngCore::read_adapter(..) -> RngReadAdapterwith simpler structRngReader(#1669)SeedableRng::from_os_rng,try_from_os_rng(#1674)Clonesupport forStdRng,ReseedingRng(#1677)postcardinstead ofbincodeto test the serde feature (#1693)IteratorRandom::samplewhenamountis much larger than iterator size (#1695)os_rng->sys_rng,OsRng->SysRng,OsError->SysError(#1697)Rng->RngExtas upstreamrand_corehas renamedRngCore->Rng(#1717)Additions
IndexedRandom::choose_iter,choose_weighted_iter(#1632)Xoshiro128PlusPlus,Xoshiro256PlusPlusprngs (#1649)ChaCha8Rng,ChaCha12Rng,ChaCha20Rngbehindchachafeature (#1659)rand::make_rng() -> R where R: SeedableRng(#1734)Removals
ReseedingRng(#1722)small_rng(#1732)v0.9.2Compare Source
Deprecated
rand::rngs::mockmodule andStepRnggenerator (#1634)Additions
WeightedIndex<usize>(de)serialization (#1646)v0.9.1Compare Source
Security and unsafe
zerocopydependency fromrand(#1579)Fixes
simd_supportfor recent nightly rust (#1586)Changes
fn rand::seq::index::sample_weightedandfn IndexedRandom::choose_multiple_weightedto return fewer thanamountresults (#1623), reverting an undocumented change (#1382) to the previous release.Additions
rand::distr::Alphabeticdistribution. (#1587)rand_core(#1604)v0.9.0Compare Source
Security and unsafe
ReseedingRngandThreadRng. Instead, it is recommended to callThreadRng::reseedon fork. (#1379)zerocopyto replace someunsafecode (#1349, #1393, #1446, #1502)Dependencies
--ignore-rust-versionrand_corev0.9.0 (#1558)Features
stdfeature withoutgetrandomorrand_chacha(#1354)small_rngby default (#1455)rand_chacha; usestd_rnginstead. (#1473)serde1toserde(#1477)getrandomtoos_rng(#1537)thread_rng(#1547)API changes: rand_core traits
RngCore::read_adapterimplementingstd::io::Read(#1267)CryptoBlockRng: BlockRngCore; maketrait CryptoRng: RngCore(#1273)TryRngCore,TryCryptoRng(#1424, #1499)fn SeedableRng::from_rng->try_from_rngand add infallible variantfn from_rng(#1424)fn SeedableRng::from_entropy->from_os_rngand add fallible variantfn try_from_os_rng(#1424)CloneandAsRefto associated typeSeedableRng::Seed(#1491)API changes: Rng trait and top-level fns
rand::thread_rng()torand::rng()and remove from the prelude (#1506)rand::random()from the prelude (#1506)random_iter,random_range,random_bool,random_ratio,fill(#1488)Rng::gen_iterasrandom_iter(#1305, #1500)Rng::gentorandomto avoid conflict with the newgenkeyword in Rust 2024 (#1438)Rng::gen_rangetorandom_range,gen_booltorandom_bool,gen_ratiotorandom_ratio(#1505)#[track_caller](#1442, #1447)API changes: RNGs
<SmallRng as SeedableRng>::Seedsize to 256 bits (#1455)rng) ofReseedingRng::new(#1533)API changes: Sequences
SliceRandomintoIndexedRandom,IndexedMutRandom,SliceRandom(#1382)IndexedRandom::choose_multiple_array,index::sample_array(#1453, #1469)API changes: Distributions: renames
rand::distributionstorand::distr(#1470)StandardtoStandardUniform(#1526)distr::Slice->distr::slice::Choose,distr::EmptySlice->distr::slice::Empty(#1548)distr::DistString->distr::SampleString(#1548)distr::DistIter->distr::Iter,distr::DistMap->distr::Map(#1548)API changes: Distributions
Sizedbound onDistribution<T> for &D(#1278)Distribution<Option<T>>forStandardUniform(#1526)StandardUniformsupport allNonZero*types (#1332){Uniform, UniformSampler}::{new, new_inclusive}return aResult(instead of potentially panicking) (#1229)UniformimplementsTryFrominstead ofFromfor ranges (#1229)UniformUsize(#1487)isizeandusizevalues withStandardUniform,Uniform(except viaUniformUsize) andFilland usage as aWeightedAliasIndexweight (#1487)DistStringfor distributionsSlice<char>andUniform<char>(#1315)Slice::num_choices(#1402)p()for distributionBernoullito access probability (#1481)API changes: Weighted distributions
pubmodulerand::distr::weighted, movingWeightedIndexthere (#1548)weighted::Weight, allowingWeightedIndexto trap overflow (#1353)weight, weights, total_weightto distributionWeightedIndex(#1420)WeightedErrortoweighted::Error, revising variants (#1382) and mark as#[non_exhaustive](#1480)API changes: SIMD
std::simd, expand SIMD & docs (#1239)Reproducibility-breaking changes
ReseedingRng::reseeddiscard remaining data from the last block generated (#1379)SmallRng::seed_from_u64implementation (#1203)UniformFloat::newsamples andUniformFloat::sample_singleto yieldhigh(#1462)Slice(#1469)Uniformforusizeportable viaUniformUsize(#1487)IndexdRandom::choose_multiple_weightedfor very small seeds and optimize for large input length / low memory (#1530)Reproducibility-breaking optimisations
sample_floyd, affecting output ofrand::seq::index::sampleandrand::seq::SliceRandom::choose_multiple(#1277)IteratorRandom::chooseandchoose_stable(#1268)SliceRandom::shuffleandpartial_shuffle(#1272)Uniform: use Canon's method (single sampling) / Lemire's method (distribution sampling) for faster sampling (breaks value stability; #1287)sample_single_inclusivefor floats (+~20% perf) (#1289)Other optimisations
SmallRnginitialization performance (#1482)Other
Cargo.lock.msrvfile (#1275)rustfmtand enforce (#1448)benchescrate (#1329, #1439) and migrate to Criterion (#1490)Documentation
ThreadRngrelated docs (#1257)--generate-link-to-definitionfeature (#1327)doc_auto_cfg(#1411, #1450)seanmonstar/reqwest (reqwest)
v0.13.2Compare Source
RequestBuilder::json()from override previously set content-type.Stebalien/tempfile (tempfile)
v3.25.0getrandom0.4.x while retaining support forgetrandom0.3.x.dtolnay/thiserror (thiserror)
v2.0.18Compare Source
needless_lifetimes = "forbid"(#443, thanks @LucaCappelletti94)huggingface/tokenizers (tokenizers)
v0.22.2Compare Source
What's Changed
Okay mostly doing the release for these PR:
Configuration
📅 Schedule: Branch creation - "before 6am on monday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.