chore(deps): update rust crates #4
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:
0.5->0.70.7.4->0.7.60.3->0.40.4.2->0.4.91.5.0->1.11.00.4.31->0.4.421.0.14->1.0.201.9.0->1.15.01.1.3->1.1.102.0.2->2.12.11.4.0->1.4.11.0.69->1.0.1031.0.33->1.0.421.32.0->1.39.01.0.20->1.0.271.0.189->1.0.2280.29.0->0.29.11.0.107->1.0.1451.11.1->1.15.10.1.17->0.3.02.0.38->2.0.1111.0.85->1.0.1142.4.1->2.5.71.5.0->1.18.1Release Notes
bluss/arrayvec (arrayvec05)
v0.7.6Compare Source
v0.7.5Compare Source
as_ptrandas_mut_ptrtoArrayString@YuhanLiin #260as_slice,as_mut_slicemethods toIntoIterby @clarfonthey #224v0.7.4Compare Source
Zeroizetrait by @elichaiv0.7.3Compare Source
overflows by @kornelski
v0.7.2Compare Source
.as_mut_str()toArrayStringby @clarfontheyremaining_capacitytoArrayStringby @bhgomeszero_filledconstructor by @c410-f3rretainby @TennyZhuang and @niklasfconstby @bhgomes:v0.7.1Compare Source
.take()and.into_inner_unchecked()by @conradludgateclone_fromnow usestruncatewhen needed by @a1phyrv0.7.0Compare Source
fn new_constis now the way to const-construct arrayvec and arraystring,and
fn newhas been reverted to a regular "non-const" function.This works around performance issue #182, where the const fn version did not
optimize well. Change by @bluss with thanks to @rodrimati1992 and @niklasf
for analyzing the problem.
The deprecated feature flag
unstable-const-fnwas removed, since it's not neededOptimize
.retain()by using the same algorithm as in std, change by @niklasf,issue #174. Original optimization in Rust std by @oxalica in Optimize Vec::retain rust-lang/rust#81126
v0.6.1Compare Source
The
ArrayVec::newandArrayString::newconstructors are properlyconst fns on stable and the feature flag
unstable-const-fnis now deprecated.by @rodrimati1992
Small fix to the capacity check macro by @Xaeroxe
Typo fix in documentation by @cuviper
Small code cleanup by @bluss
v0.6.0Compare Source
The const generics release 🎉. Arrayvec finally implements what it
wanted to implement, since its first version: a vector backed by an array,
with generic parameters for the arbitrary element type and backing array
capacity.
The New type syntax is
ArrayVec<T, CAP>whereCAPis the arrayvec capacity.For arraystring the syntax is
ArrayString<CAP>.Length is stored internally as u32; this limits the maximum capacity. The size
of the
ArrayVecorArrayStringstructs for the same capacity may growslightly compared with the previous version (depending on padding requirements
for the element type). Change by @bluss.
Arrayvec's
.extend()andFromIterator/.collect()to arrayvec nowpanic if the capacity of the arrayvec is exceeded. Change by @bluss.
Arraystring now implements
TryFrom<&str>andTryFrom<fmt::Arguments>by@c410-f3r
Minimum supported rust version is Rust 1.51
akubera/bigdecimal-rs (bigdecimal03)
v0.4.9Compare Source
Changes
Add methods
BigDecimal::{powi, powi_with_context}for raising a decimal to a i64 powerpowiuses Default ContextAdd methods
BigDecimal::mul_with_contextfor efficient multiplication to fixed precisionAdd method
BigDecimal::decimal_digit_count, returning number of decimal digits (i.e. precision) of the numberAdd method
BigDecimal::order_of_magnitude, returning position of most significant digit of this decimalAdd method
BigDecimal::is_one_quickcheck, returningOption<bool>indicating if the value is1.0if it can be calculated without allocating, or None if too largeis_onein multiplication methods when used for optimizations1.00000000000000000000000000000000000000000is stored internally as[4870020673419870208, 16114848830623546549, 293] E -41and it's hard to tell this is equivalent to 1Add optimizations to inverse
1/10e-5 -> 10e5Add
Context::invert(&self, BigDecimalRef), equivalent toBigDecimal::inverse_with_context(&self, &ctx)v0.4.8Compare Source
What's Changed
0e15 = 0*10^15) by @drinkcat in #145Full Changelog: akubera/bigdecimal-rs@v0.4.7...v0.4.8
v0.4.7Compare Source
Changes
BigDecimal::to_f64num_traits::ToPrimitiveforBigDecimalRefBigDecimal::{ToPlainString,WritePlainString}v0.4.6Compare Source
Changes
Fix error in formatting code that would skip "carrying the one" when rounding up series of nines, overflowing
Improved implementation of sqrt and cbrt
Uses consistent rounding implementations in formatting and arithmetic operations
Add new constructor methods
BigDecimal::from_bigint&BigDecimal::from_biguintv0.4.5Compare Source
Changes
Remove restrictions on
num-*dependencies.Fix some bad assumptions when running in 32 bit mode.
as usizehave been replaced withas u64v0.4.4Compare Source
Changes
"{:.4}"has returned to "4 digits after decimal place" rather than "four digits of precision"1e99999(could be used in)Added methods
BigDecimalRef::clone_intoBigDecimal::set_scale(mutable version oftake_and_scale)Optimized bigdecimal comparison algorithms
Restricted versions of num-* crates to respect Minimum Supported Rust Version (1.43)
v0.4.3Compare Source
Changes
1234e-304is formatted as1.234e-301rather than0.00.....(300-zeros)....00123v0.4.2Compare Source
Changes
Add Context struct
sqrt_with_context(&self, ctx: &Context)) , more to come in future versions.Add BigDecimalRef struct
Add,SubFrom<&BigInt> for BigDecimalRefCompile-time default rounding mode may be set by environment variable
RUST_BIGDECIMAL_DEFAULT_ROUNDING_MODEFix issue recompiling if
RUST_BIGDECIMAL_DEFAULT_PRECISIONhaddn't changedAdd
BigDecimal::with_precision_round()Add
BigDecimal::fractional_digit_count()Support reading subnormal floating-point numbers
Improve initial "guess" in calculation of inverted value.
Fix panic in from_str_radix (#115)
(internal) Reorganize std::ops implementations by moving each to separate functions (
src/impl_ops_add.rs,src/impl_ops_sub.rs, etc)Performance Improvements
BigDecimal::eqtakes into account trailing zeros, avoids aligning digitsten_to_the- used everywhere to align BigIntegers within BigDecimals, all operations with high precision numbers should be fasterv0.4.1Compare Source
Changes
Fix issue where RUST_BIGDECIMAL_DEFAULT_PRECISION envar would always
trigger a rebuild
Fix issue where .neg() could be called on {signed-int}::MIN values
Add implementations of Add/Sub/Mul/Div for primitive values
Use 'proptest' crate to improve arithmetic testing
v0.4.0Compare Source
Changes
no_stdfeature support #97bigdecimal = { version = "0.4", default-features = false }Allow user to set default max-precision at compile time
RUST_BIGDECIMAL_DEFAULT_PRECISIONAdd rounding module with
RoundingModeenumReimplement parsing from {32,64}-bit float values
Bump Minimum Supported Rust Version from 1.34 to 1.43
Fix implementations of to_u128/to_i128 #101
Fix issue where underscores after the decimal counted towards total digit count (giving wrong exponent) #99
Fix case of panic during rounding #90
Add preliminary benchmarking code
Started using my crazy approach to unit testing
tokio-rs/bytes (bytes)
v1.11.0Compare Source
Fixed
BytesMutonly reuse if src has remaining (#803)BytesMut::put::<Bytes>(#793)BytesMut::put(#794)BytesMut::remaining_mutto useisize::MAXinstead ofusize::MAX(#795)Internal changes
slice()for empty slices. (#780)Vtable::to_*->Vtable::into_*(#776)BytesMut::freezedoctest on wasm (#790)drop_fnoffrom_ownerinto vtable (#801)v1.10.1Compare Source
Fixed
to_vecwithBytes::from_owner(#773)v1.10.0Compare Source
Added
try_get_*methods forBuftrait (#753)Buf::chunks_vectoredforTake(#617)Buf::chunks_vectoredforVecDeque<u8>(#708)Fixed
chunks_vectored(#754)panic=abort(#749)v1.9.0Compare Source
Added
Bytes::from_ownerto enable externally-allocated memory (#742)Documented
Internal changes
v1.8.0Compare Source
split_off/split_tofor empty slices (#740)v1.7.2Compare Source
Fixed
Buf::{get_int, get_int_le}(#732)Documented
Internal changes
v1.7.1Compare Source
This release reverts the following change due to a regression:
<BytesMut as Buf>::advanceimpl (#698)The revert can be found at #726.
v1.7.0Compare Source
Added
BytestoBytesMut(#695, #710)Documented
BytesMut::zeroedworks (#714)Buf::chunk(#717)Changed
BytesMut::truncate<BytesMut as Buf>::advanceimpl (#698)must_usesuggestion ofBytesMut::split(#699)Internal changes
ManuallyDropinstead ofmem::forget(#678)leninBytesMut::reserve(#682)Bytes::copy_to_bytes(#688)BytesMut::truncate(#694)BytesMut::resize(#696)Bytes::split_to,Bytes::split_off(#689, #693)offset_fromin more places (#705)IntoIter(#707)v1.6.1Compare Source
This release fixes a bug where
Bytes::is_uniquereturns incorrect values whenthe
Bytesoriginates from a sharedBytesMut. (#718)v1.6.0Compare Source
Added
Bytes::is_unique(#643)Documented
Internal changes
UninitSlice::as_uninit_slice_mut()logic (#644)self.instead ofSelf::(#642)BytesMut: Assert alignment ofShared(#652)From<Vec>(#667)subinstead ofoffset(#668)set_vec_posdoes not need a second parameter (#672)get_vec_pos: use&selfinstead of&mut self(#670)split_at/split_to(#663)Iteratorfrom the prelude (#673)copy_to_bytes: Add panic section to docs (#676)ManuallyDropinstead ofmem::forget(#675)chronotope/chrono (chrono)
v0.4.42: 0.4.42Compare Source
What's Changed
wasm32-linuxsupport by @arjunr2 in #1707tzdataparsing by @ldm0 in #1679?Sizedbound to related methods ofDelayedFormat::write_toby @Huliiiiii in #1721from_timestamp_secsmethod toDateTimeby @jasonaowen in #1719v0.4.41Compare Source
What's Changed
subsec_microsandsubsec_millismethods toTimeDeltaby @ggoetz in #1668NaiveDateTime::UNIX_EPOCHby @robertbastian in #1670as_seconds_f32andas_seconds_f64forTimeDeltaby @ggoetz in #1671num_days_in_monthmethod toDateliketrait by @aslilac in #1673WeekdaySet, a collection ofWeekdaythat isCopyby @Kinrany in #1676v0.4.40: 0.4.40Compare Source
What's Changed
write_toforDelayedFormatby @tugtugtug in #1654v0.4.39: 0.4.39Compare Source
What's Changed
from_timestamp_nanos()by @sgoll in #1591NaiveWeekmethods by @bragov4ik in #1600PartialEq,Eq,Hash,CopyandCloneonNaiveWeekby @DSeeLP in #1618#[inline]tonum_daysby @CommanderStorm in #1627v0.4.38Compare Source
This release bring a ca. 20% improvement to the performance of the formatting code, and a convenient
days_sincemethod for theWeekdaytype.Chrono 0.4.38 also removes the long deprecated
rustc-serializefeature. Support forrustc-serializewill be soft-destabilized in the next Rust edition. Removing the feature will not break existing users of the feature; Cargo will just not update dependents that rely on it to newer versions of chrono.In chrono 0.4.36 we made an accidental breaking change by switching to
derive(Copy)forDateTimeinstead of a manual implementation. It is reverted in this release.Removals
rustc-serializefeature (#1548, thanks @workingjubilee)Additions
Weekday::days_since(#1249, based on #216 by @clarfonthey)TimeDelta::checked_mulandTimeDelta::checked_div(#1565, thanks @Zomtir)Fixes
CopyforDateTimeif offset isCopy(#1573)Internal
test_encodable_jsonandtest_decodable_jsonfunctions (#1550)cargo hack check(#1553)Thanks to all contributors on behalf of the chrono team, @djc and @pitdicker!
v0.4.37Compare Source
Version 0.4.36 introduced an unexpected breaking change and was yanked. In it
LocalResultwas renamed toMappedLocalTimeto avoid the impression that it is aResulttype were some of the results are errors. For backwards compatibility a type alias with the old name was added.As it turns out there is one case where a type alias behaves differently from the regular enum: you can't import enum variants from a type alias with
use chrono::LocalResult::*. With 0.4.37 we make the new nameMappedLocalTimethe alias, but keep using it in function signatures and the documentation as much as possible.See also the release notes of chrono 0.4.36 from yesterday for the yanked release.
v0.4.36Compare Source
This release un-deprecates the methods on
TimeDeltathat were deprecated with the 0.4.35 release because of the churn they are causing for the ecosystem.New is the
DateTime::with_time()method. As an example of when it is useful:Additions
DateTime::with_time()(#1510)Deprecations
TimeDeltadeprecations (#1543)TimeStamp::timestamp_subsec_nanos, which was missed in the 0.4.35 release (#1486)Documentation
Internal
CopyandSendimpls (#1492, thanks @erickt)NaiveDateunit tests (#1500, thanks @Zomtir)LocalResulttoTzResolution, add alias (#1501)NaiveDate::from_yof(#1518)DateTime::date_naiveandNaiveDate::diff_months(#1530)unwrapin UnixLocaltype (#1533)Thanks to all contributors on behalf of the chrono team, @djc and @pitdicker!
v0.4.35Compare Source
Most of our efforts have shifted to improving the API for a 0.5 release, for which cleanups and refactorings are landing on the 0.4.x branch.
The most significant changes in this release are two sets of deprecations.
We deprecated all timestamp-related methods on
NaiveDateTime. The reason is that a timestamp is defined to be in UTC. TheNaiveDateTimetype doesn't know the offset from UTC, so it was technically wrong to have these methods. The alternative is to use the similar methods on theDateTime<Utc>type, or from theTimeZonetrait.Converting from
NaiveDateTimetoDateTime<Utc>is simple with.and_utc(), and in the other direction with.naive_utc().The panicking constructors of
TimeDelta(the new name of theDurationtype) are deprecated. This was the last part of chrono that defaulted to panicking on error, dating from before rust 1.0.A nice change is that
NaiveDatenow includes a niche. So nowOption<NaiveDate>,Option<NaiveDateTime>andOption<DateTime<Tz>>are the same size as their base types.format::Numericandformat::Fixedare marked asnon_exhaustive. This will allow us to improve our formatting and parsing support, and we have reason to believe this breaking change will have little to no impact on users.Additions
DateTime::{from_timestamp_micros, from_timestamp_nanos}(#1234)Parsed(#1465)Deprecations
NaiveDateTime(#1473)TimeDelta(#1450)Changes/fixes
NonZeroI32insideNaiveDate(#1207)format::Numericandformat::Fixedasnon_exhaustive(#1430)Parsedfixes to error values (#1439)overflowing_naive_localinDateTime::checked_add*(#1333)Parsed::set_*(#1465)Documentation
Parsed(#1439)Internal
internalsmodule (#1428, #1429, #1431, #1432, #1433, #1438)x86_64-unknown-illumosinstead of Solaris (#1437)cargo hack checkon Linux (#1442)parse_internal(#1459)SerdeError(#1458)NaiveDate::from_isoywda bit (#1464)Thanks to all contributors on behalf of the chrono team, @djc and @pitdicker!
v0.4.34Compare Source
Notable changes
Durationtype toTimeDelta. This removes the confusion between chrono's type and the laterDurationtype in the standard library. It will remain available under the old name as a type alias for compatibility.Localis rewritten. The new version avoids panics when the date is outside of the range supported by windows (the years 1601 to 30828), and gives more accurate results during DST transitions.Displayformat ofTimeDeltais modified to conform better to ISO 8601. Previously it converted all values greater than 24 hours to a value with days. This is not correct, as doing so changes the duration from an 'accurate' to a 'nominal' representation to use ISO 8601 terms.Fixes
TimeDelta::milliseconds(#1385, thanks @danwilliams)DurationExceedsTimestampinDurationRound(#1403, thanks @joroKr21)%X(chronotope/pure-rust-locales#12, #1420)GetTimeZoneInformationForYear(#1017)Additions
TimeDelta::try_milliseconds(#1385, thanks @danwilliams)TimeDelta::new(#1337)StrftimeItems::{parse, parse_to_owned}and more documentation (#1184)format::Locale(via chronotope/pure-rust-locales#8)Changes
DurationtoTimeDelta, add type alias (#1406)TimeDeltamethods const (#1337)NaiveDate,NaiveWeek,NaiveTimeandNaiveDateTimeconst where possible (#1337)DateTimeconst where possible (#1400)Displayformat ofTimeDeltaconform better to ISO 8601 (#1328)Documentation
timestamp_micros's Example doc (#1338 via #1386, thanks @emikitas)TimeDeltaconstructors (#1385, thanks @danwilliams)Internal
mainbranch, work on 0.5 happens in the0.5.xbranch (#1390, #1402).impl Arbitrary for DateTimeand set up CI test (#1336)codecov/codecov-actionfrom 3 to 4 (#1404)-0000offset (#1411)TOO_LONGerror out ofparse_internal(#1419)Thanks to all contributors on behalf of the chrono team, @djc and @pitdicker!
v0.4.33Compare Source
This release fixes the broken docrs.rs build of chrono 0.4.32.
What's Changed
rkyvfeature implysize_32([#1383](https://github.com/chronotope/chrono/Configuration
📅 Schedule: Branch creation - "before 10am on monday" in timezone Asia/Shanghai, 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.