In chrono 0.4.34 we finished the work to make all methods const where doing so is supported by rust 1.61.
We renamed the Duration type to TimeDelta. This removes the confusion between chrono's type and the later Duration type in the standard library. It will remain available under the old name as a type alias for compatibility.
The Windows implementation of Local is 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.
The Display format of TimeDelta is 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
Add missing range check in TimeDelta::milliseconds (#1385, thanks @danwilliams)
Remove check for DurationExceedsTimestamp in DurationRound (#1403, thanks @joroKr21)
Added an insert_sorted method on IndexMap, IndexSet, and VacantEntry.
Avoid hashing for lookups in single-entry maps.
Limit preallocated memory in serde deserializers.
2.2.3
Added move_index and swap_indices methods to IndexedEntry,
OccupiedEntry, and RawOccupiedEntryMut, functioning like the existing
methods on IndexMap.
Added shift_insert methods on VacantEntry and RawVacantEntryMut, as
well as shift_insert_hashed_nocheck on the latter, to insert the new entry
at a particular index.
Added shift_insert methods on IndexMap and IndexSet to insert a new
entry at a particular index, or else move an existing entry there.
2.2.2
Added indexing methods to raw entries: RawEntryBuilder::from_hash_full,
RawEntryBuilder::index_from_hash, and RawEntryMut::index.
2.2.1
Corrected the signature of RawOccupiedEntryMut::into_key(self) -> &'a mut K,
This a breaking change from 2.2.0, but that version was published for less
than a day and has now been yanked.
2.2.0
The new IndexMap::get_index_entry method finds an entry by its index for
in-place manipulation.
The Keys iterator now implements Index<usize> for quick access to the
entry's key, compared to indexing the map to get the value.
The new IndexMap::splice and IndexSet::splice methods will drain the
given range as an iterator, and then replace that range with entries from
an input iterator.
The new trait RawEntryApiV1 offers opt-in access to a raw entry API for
IndexMap, corresponding to the unstable API on HashSet as of Rust 1.75.
Many IndexMap and IndexSet methods have relaxed their type constraints,
e.g. removing K: Hash on methods that don't actually need to hash.
... (truncated)
Commits
184fe4b Merge pull request #320 from cuviper/release-2.2.5
This is a patch release that fixes bugs and adds enhancements, including new iterators, title options for blocks, and various rendering improvements. ✨
Useful for performing some action on all the cells in a particular area.
E.g.,
fn render(area: Rect, buf: &mut Buffer) {
for position in area.positions() {
buf.get_mut(position.x, position.y).set_symbol("x");
}
}
9182f47(uncategorized) Add Block::title_top and Block::title_top_bottom (#940)
This adds the ability to add titles to the top and bottom of a block
without having to use the `Title` struct (which will be removed in a
future release - likely v0.28.0).
Fixes a subtle bug if the title was created from a right aligned Line
and was also right aligned. The title would be rendered one cell too far
to the right.
Block::bordered()
.title_top(Line::raw("A").left_aligned())
.title_top(Line::raw("B").centered())
.title_top(Line::raw("C").right_aligned())
.title_bottom(Line::raw("D").left_aligned())
.title_bottom(Line::raw("E").centered())
.title_bottom(Line::raw("F").right_aligned())
.render(buffer.area, &mut buffer);
// renders
"┌A─────B─────C┐",
"│ │",
"└D─────E─────F┘",
</code></pre>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/ratatui-org/ratatui/blob/main/CHANGELOG.md">ratatui's changelog</a>.</em></p>
<blockquote>
<h2><a href="https://github.com/ratatui-org/ratatui/releases/tag/0.26.1">0.26.1</a> - 2024-02-12</h2>
<p>This is a patch release that fixes bugs and adds enhancements, including new iterators, title options for blocks, and various rendering improvements. ✨</p>
<h3>Features</h3>
<ul>
<li>
<p><a href="https://github.com/ratatui-org/ratatui/commit/74a051147a4059990c31e08d96a8469d8220537b">74a0511</a>
<em>(rect)</em> Add Rect::positions iterator (<a href="https://redirect.github.com/ratatui-org/ratatui/issues/928">#928</a>)</p>
<pre lang="text"><code>Useful for performing some action on all the cells in a particular area.
E.g.,
```rust
fn render(area: Rect, buf: &mut Buffer) {
for position in area.positions() {
buf.get_mut(position.x, position.y).set_symbol("x");
}
}
9182f47(uncategorized) Add Block::title_top and Block::title_top_bottom (#940)
This adds the ability to add titles to the top and bottom of a block
without having to use the `Title` struct (which will be removed in a
future release - likely v0.28.0).
Fixes a subtle bug if the title was created from a right aligned Line
and was also right aligned. The title would be rendered one cell too far
to the right.
Bumps the deps group with 19 updates:
0.13.1
0.13.3
3.1.0
4.0.1
1.0.75
1.0.80
0.4.31
0.4.34
4.4.7
4.4.18
0.4.13
0.4.14
0.4.20
0.4.22
2.1.0
2.2.5
0.10.58
0.10.64
1.10.2
1.10.3
1.0.190
1.0.193
0.9.27
0.9.29
0.16.0
0.16.1
1.33.0
1.36.0
0.23.0
0.26.1
2.4.1
2.5.0
2.0.12
2.0.14
1.0.20
1.0.22
1.2.0
1.3.0
Updates
actix
from 0.13.1 to 0.13.3Release notes
Sourced from actix's releases.
Commits
f3a3233
chore(actix): prepare release 0.13.3e67b078
docs: idiomatic ActorFuture docs07baeb8
chore(deps): bump codecov/codecov-action from 4.0.0 to 4.0.1 (#579)4e7dab3
chore: use friendlier mod namesa809645
docs: use intra-doc links in crate root9928306
chore(actix): prepare release 0.13.2fddd075
ci: standardize job names31b0f4b
ci: fix cargo-nextest install7d40ea5
ci: switch to nextestc0cf913
chore: prevent dead code warningsUpdates
ansi-to-tui
from 3.1.0 to 4.0.1Commits
Updates
anyhow
from 1.0.75 to 1.0.80Release notes
Sourced from anyhow's releases.
Commits
5443719
Release 1.0.80dfc7bc0
Work around prelude redundant import warnings6e4f86b
Import from alloc not std, where possiblef885a13
Ignore incompatible_msrv clippy false positives in testfefbcbc
Ignore incompatible_msrv clippy lint78f2d81
Update ui test suite to nightly-2024-02-08edd88d3
Update ui test suite to nightly-2024-01-3171ab53d
Release 1.0.7960705a5
Merge pull request #340 from dtolnay/depinfo17e252b
Include env-dep:RUSTC_BOOTSTRAP in dep-info for sccacheUpdates
chrono
from 0.4.31 to 0.4.34Release notes
Sourced from chrono's releases.
... (truncated)
Commits
dc19606
Prepare 0.4.3458a2149
AddStrftimeItems::parse_to_owned
59eeb8c
AddStrftimeItems::parse
79de122
Add more documentation toStrftimeItems::new_with_locale
5b7cf85
Add more documentation toStrftimeItems::new
be6af79
MakeDisplay
format ofTimeDelta
conform better to ISO 8601d1cf0e9
Add test for issue 6510ef34e4
Extend test to more distant datesfc67f3e
Remove obsolete testacb693a
Windows: rewrite usingGetTimeZoneInformationForYear
Updates
clap
from 4.4.7 to 4.4.18Release notes
Sourced from clap's releases.
... (truncated)
Changelog
Sourced from clap's changelog.
... (truncated)
Commits
0134f45
chore: Release995ee03
docs: Update changelog2f18909
Merge pull request #5314 from epage/required0a635b9
fix(parser): Don't duplicate requireds when usage disablede648e08
Merge pull request #5311 from sourcefrog/doc-exitcode8c83971
docs: Link to exit code infob250c0b
Merge pull request #5310 from epage/ptyc742b8e
chore(complete): Update completest-ptyUpdates
globset
from 0.4.13 to 0.4.14Commits
47e3717
globset-0.4.148697946
release/doc: set date in man page9b5091b
deps: bump to memmap2 0.9.0d1def67
deps: bump pcre2 to 0.2.656af4d4
cli: add simple flag suggestions6a055d9
doc: clarify errors for -z/--search-zipe007523
doc: note the precedence of -t/--type88353c8
doc: be more explicit about ripgrep's behavior when printing to a tty9ed7565
cli: error when searching for NUL7bb9f35
doc: clarify that --pre can accept any kind of pathUpdates
ignore
from 0.4.20 to 0.4.22Commits
2c38975
ignore-0.4.22c8e4a84
cli: prefix all non-fatal error messages with 'rg: 'b9c7749
ignore: fix reference cycle for compiled matchers67dd809
ignore: add some 'allow(dead_code)' annotationse0a8567
complete/fish: improve shell completions for fish56c7ad1
ignore/types: add Lean2a4dba3
ignore/types: add meson.optionsdaa157b
core: actually implement --sortr=path0096c74
grep-0.3.18c48355
deps: bump grep-printer to 0.2.1Updates
indexmap
from 2.1.0 to 2.2.5Changelog
Sourced from indexmap's changelog.
... (truncated)
Commits
184fe4b
Merge pull request #320 from cuviper/release-2.2.55d7bd5e
Release 2.2.5c934ace
Merge pull request #313 from heliaxdev/heliax/borsh-supportb81a4d2
Use S for the BuildHasher parameter32793f1
Don't require BuildHasher in BorshSerializeb8b1f52
ci: reduce features on MSRV6ad3e42
Includeborsh
in CI workflowc610e14
Addborsh
serialization roundtrip tests0804a16
Implementborsh
serialization routinesae38b91
Addborsh
dep to Cargo manifestUpdates
openssl
from 0.10.58 to 0.10.64Release notes
Sourced from openssl's releases.
... (truncated)
Commits
4a19cd4
Merge pull request #2175 from reaperhulk/changelog4e0e05a
bump openssl and openssl-sys + changelogsc2b124a
Be explicit that aliases are not part of X.509 certificates1abf4a5
Merge pull request #2167 from alex/expose-aliasa644ec2
Merge pull request #2170 from botovq/crypto-free83940d1
LibreSSL 3.9: fix CRYPTO_malloc/free signatures51fc569
Merge pull request #2168 from sfackler/alex-patch-13c53dee
Added binding for EVP_default_properties_enable_fipsa12abe1
Expose alias on X509 structs3acf2ef
Merge pull request #2157 from reaperhulk/rebuild-if-changedUpdates
regex
from 1.10.2 to 1.10.3Changelog
Sourced from regex's changelog.
Commits
0c09903
1.10.3653bb59
deps: bump regex-automata to 0.4.4e7b5401
regex-automata-0.4.41bc667d
changelog: 1.10.3fbd2537
safety: guard in Input::new against incorrect AsRef implementations027eebd
cargo: set 'default-features = false' for memchr and aho-corasickdc0a9d2
ci: small clean-upsa3d5975
doc: fix link in Index<&str> impl docs4f5992f
doc: tweakCaptures
documentation837fd85
regex-cli-0.2.0Updates
serde
from 1.0.190 to 1.0.193Release notes
Sourced from serde's releases.
Commits
44613c7
Release 1.0.193c706281
Merge pull request #2655 from dtolnay/rangestartend65d75b8
Add RangeFrom and RangeTo tests332b0cb
Merge pull request #2654 from dtolnay/rangestartend8c4af41
Fix more RangeFrom / RangeEnd mixups24a78f0
Merge pull request #2653 from emilbonnek/fix/range-to-from-de-mixupc91c334
Fix Range{From,To} deserialize mixup2083f43
Update ui test suite to nightly-2023-11-194676abd
Release 1.0.19235700eb
Merge pull request #2646 from robsdedude/fix/2643/allow-tag-field-in-untaggedUpdates
serde_yaml
from 0.9.27 to 0.9.29Release notes
Sourced from serde_yaml's releases.
Commits
b957d2b
Release 0.9.29007fc2d
Merge pull request #401 from dtolnay/unsafeop5bac247
Fill in unsafe blocks inside unsafe functions0f6dba1
Turn on deny(unsafe_op_in_unsafe_fn)1b6e448
Release 0.9.28ec1a314
Force unsafe-libyaml version that contains unaligned write fixa6b2dc0
Update name of blocks_in_if_conditions clippy lintUpdates
textwrap
from 0.16.0 to 0.16.1Release notes
Sourced from textwrap's releases.
Changelog
Sourced from textwrap's changelog.
Commits
39914e0
Merge pull request #533 from mgeisler/release-0.16.18f84d66
Bump version to 0.16.1a87c395
Update changelog for version 0.16.13dd0774
Add dependency graph for version 0.16.1b656c07
Merge pull request #532 from mgeisler/skip-ansi-escape-sequence-early-return599b78a
Early return inskip_ansi_escape_sequence
e7a20ef
Merge pull request #526 from tertsdiepraam/ansi-hyperlink5d28004
display_width: support BEL as a separator in hyperlinksaa09798
Merge pull request #529 from mgeisler/dependabot/npm_and_yarn/examples/wasm/w...12feb68
Bump follow-redirects from 1.15.2 to 1.15.4 in /examples/wasm/wwwUpdates
tokio
from 1.33.0 to 1.36.0Release notes
Sourced from tokio's releases.
... (truncated)
Commits
eaf81ed
chore: prepare Tokio v1.36.0 (#6312)53f9e5a
ci: make sure dictionary words are sorted and unique (#6316)9077762
net: expose keepalive option onTcpSocket
(#6311)131e7b4
ci: add spellchecking (#6297)e53b92a
io: clarifyclear_ready
docs (#6304)7536132
sync: use AtomicBool in broadcast channel future (#6298)b6d0c90
macros: fix trait_method breaking change detection (#6308)4846959
runtime: remove obsolete comment (#6303)ec30383
net: addUnixSocket
(#6290)f80bbec
io: simplify check for empty slice (#6293)Updates
ratatui
from 0.23.0 to 0.26.1Release notes
Sourced from ratatui's releases.