Allow using race module using just portable_atomic, without critical_section and provide
better error messages on targets without atomic CAS instruction,
#265.
ed51c4b(terminal) Add ratatui::init() and restore() methods by @joshka in #1289
These are simple opinionated methods for creating a terminal that is
useful to use in most apps. The new init method creates a crossterm
backend writing to stdout, enables raw mode, enters the alternate
screen, and sets a panic handler that restores the terminal on panic.
A minimal hello world now looks a bit like:
use ratatui::{
crossterm::event::{self, Event},
text::Text,
Frame,
};
fn main() {
let mut terminal = ratatui::init();
loop {
terminal
.draw(|frame: &mut Frame| frame.render_widget(Text::raw("Hello World!"), frame.area()))
.expect("Failed to draw");
if matches!(event::read().expect("failed to read event"), Event::Key(_)) {
break;
}
}
ratatui::restore();
}
A type alias DefaultTerminal is added to represent this terminal
type and to simplify any cases where applications need to pass this
terminal around. It is equivalent to:
Terminal<CrosstermBackend<Stdout>>
We also added ratatui::try_init() and try_restore(), for situations
where you might want to handle initialization errors yourself instead
of letting the panic handler fire and cleanup. Simple Apps should
prefer the init and restore functions over these functions.
Corresponding functions to allow passing a TerminalOptions with
a Viewport (e.g. inline, fixed) are also available
(init_with_options,
and try_init_with_options).
ed51c4b(terminal) Add ratatui::init() and restore() methods by @joshka in #1289
These are simple opinionated methods for creating a terminal that is
useful to use in most apps. The new init method creates a crossterm
backend writing to stdout, enables raw mode, enters the alternate
screen, and sets a panic handler that restores the terminal on panic.
A minimal hello world now looks a bit like:
use ratatui::{
crossterm::event::{self, Event},
text::Text,
Frame,
};
fn main() {
let mut terminal = ratatui::init();
loop {
terminal
.draw(|frame: &mut Frame| frame.render_widget(Text::raw("Hello World!"), frame.area()))
.expect("Failed to draw");
if matches!(event::read().expect("failed to read event"), Event::Key(_)) {
break;
}
}
ratatui::restore();
}
A type alias DefaultTerminal is added to represent this terminal
type and to simplify any cases where applications need to pass this
terminal around. It is equivalent to:
Terminal<CrosstermBackend<Stdout>>
We also added ratatui::try_init() and try_restore(), for situations
where you might want to handle initialization errors yourself instead
of letting the panic handler fire and cleanup. Simple Apps should
prefer the init and restore functions over these functions.
Corresponding functions to allow passing a TerminalOptions with
a Viewport (e.g. inline, fixed) are also available
(init_with_options,
and try_init_with_options).
The existing code to create a backend and terminal will remain and
... (truncated)
Commits
3a90e2a chore(release): prepare for 0.28.1 (#1343)
This is a new minor release of regex that brings in an update to the
Unicode Character Database. Specifically, this updates the Unicode data
used by regex internally to the version 16 release.
cargo-insta no longer panics when running cargo test --accept --workspace
on a workspace with a default crate. #532
MSRV for insta has been raised to 1.60, and for cargo-insta to 1.64.
Added support for compact debug snapshots (assert_compact_debug_snapshot). #514
Deprecate --no-force-pass in cargo-insta. The --check option covers the
same functionality and has a clearer name. #513
Inline snapshots now use the required number of #s to escape the snapshot
value, rather than always using ###. This allows snapshotting values which
themselves contain ###. If there are no existing # characters in the
snapshot value, a single # will be used. #540
Inline snapshots can now be updated with --force-update-snapshots....
_Description has been truncated_
Bumps the dependencies group with 20 updates in the / directory:
1.0.86
1.0.89
0.1.81
0.1.83
2.2.1
2.2.2
4.5.13
4.5.18
0.27.0
0.28.1
1.19.0
1.20.1
0.34.0
0.35.0
0.34.0
0.35.0
0.27.0
0.28.1
1.0.63
1.0.64
1.39.2
1.40.0
0.1.13
0.2.0
1.10.5
1.11.0
0.31.0
0.31.4
1.39.0
1.40.0
0.34.0
0.35.0
0.21.0
0.23.0
4.5.12
4.5.29
0.11.1
0.12.0
2.1.6
2.2.0
Updates
anyhow
from 1.0.86 to 1.0.89Release notes
Sourced from anyhow's releases.
Commits
9d3fb6d
Release 1.0.89830c399
Merge pull request #386 from dtolnay/unwindsafe8454be3
Ensure UnwindSafe even with "backtrace" feature enabled and old Rusta85e414
Add more autotraits tests139f266
Release 1.0.88aa3ab2b
Merge pull request #385 from dtolnay/docnostd44c3767
Update documentation on no-std error type conversionsafe93e7
Release 1.0.87d58fa4b
Fix outdated html_root_urlc18d807
Disable unused doc_cfg featureUpdates
async-trait
from 0.1.81 to 0.1.83Release notes
Sourced from async-trait's releases.
Commits
e6b4d47
Release 0.1.83bfe8d61
Merge pull request #278 from dtolnay/arbself7bd974b
Ignore needless_arbitrary_self_type clippy lint in generated codeb53b4e7
Add regression test for issue 277f8e5bb4
Release 0.1.828fbf118
Merge pull request #276 from dtolnay/elidednamed6fa246a
Ignore nightly's new elided_named_lifetimes lint in generated coded542a0d
Upload CI Cargo.lock for reproducing failures8828c35
Sort dependency features in Cargo.tomlba9793a
Update ui test suite to nightly-2024-08-11Updates
clap-verbosity-flag
from 2.2.1 to 2.2.2Changelog
Sourced from clap-verbosity-flag's changelog.
Commits
74d1e81
chore: Release clap-verbosity-flag version 2.2.2502ef85
docs: Update changelog41425bb
Merge pull request #115 from joshka/jm/verbosity-u89936958
fix: Don't overflow on boundary conditionsc684b6f
refactor: Track numeric levels as a u84e3f4e5
refactor: Break out parts of verbosity calculation02ddbef
refactor: Shift numeric level to be 0 based4c96f55
test: Verbosity calculatio boundary conditionsc621a6a
Merge pull request #113 from clap-rs/renovate/embarkstudios-cargo-deny-action...27f5cc9
chore(deps): Update EmbarkStudios/cargo-deny-action action to v2Updates
clap
from 4.5.13 to 4.5.18Release notes
Sourced from clap's releases.
Changelog
Sourced from clap's changelog.
Commits
d811585
chore: Releaseab948b3
docs: Update changelog82e599e
Merge pull request #5602 from shannmu/delimiter_values59bf26d
feat(clap_complete): Support delimiter values in native completionsccecab3
test(clap_complete): Add test cases for delimiter_values supporta3a4764
docs(derive): Specify Parser::update_from semanticsdf165a2
docs(derive): Flatten isn't just for update5488bcf
docs(derive): Connect more dots for Args/Subcommand6013ad4
chore: Releasef98e3ee
docs: Update changelogUpdates
crossterm
from 0.27.0 to 0.28.1Release notes
Sourced from crossterm's releases.
Changelog
Sourced from crossterm's changelog.
... (truncated)
Commits
Updates
once_cell
from 1.19.0 to 1.20.1Changelog
Sourced from once_cell's changelog.
Commits
3b9bd9b
release 1.20.1f61508a
Merge pull request #265 from taiki-e/portable-atomic449e5d7
Add portable-atomic feature and disable portable-atomic/critical-section by d...72f7c2e
Merge pull request #260 from brodycj/propagate-critical-section-to-portable-a...be6b623
v1.20.0f2d95bf
update Cargo (dev-)dependencies; update Cargo.lock.msrvdd6b5c2
ci: fix TEST_BETA with TEMPORARY WORKAROUND in RUSTFLAGS7317eae
addcargo test --workspace
to beginning of TEST taskbd54bf7
fix default-features flag for parking_lot_core in dependenciesbb70b9e
cargo fmt updatesUpdates
pnet
from 0.34.0 to 0.35.0Release notes
Sourced from pnet's releases.
Commits
97ece70
Release v0.35.049c8c68
Merge pull request #681 from ionosnetworks/feat/linux-poll-api07526a7
Merge pull request #678 from tomDev5/dnsb319ca2
fixed dns codea3a46e6
removed BooleanField for u17086ed2
dns layer in pnet14a01ff
Merge pull request #584 from Martichou/raw_socketbd4c8b0
datalink(linux): add feature to pass the fd (socket) to ::channel()28e9de4
Merge pull request #689 from mrmonday/ecn-unix-only01eee25
Expose set_ecn on unix only.Updates
pnet_macros_support
from 0.34.0 to 0.35.0Release notes
Sourced from pnet_macros_support's releases.
Commits
97ece70
Release v0.35.049c8c68
Merge pull request #681 from ionosnetworks/feat/linux-poll-api07526a7
Merge pull request #678 from tomDev5/dnsb319ca2
fixed dns codea3a46e6
removed BooleanField for u17086ed2
dns layer in pnet14a01ff
Merge pull request #584 from Martichou/raw_socketbd4c8b0
datalink(linux): add feature to pass the fd (socket) to ::channel()28e9de4
Merge pull request #689 from mrmonday/ecn-unix-only01eee25
Expose set_ecn on unix only.Updates
ratatui
from 0.27.0 to 0.28.1Release notes
Sourced from ratatui's releases.
... (truncated)
Changelog
Sourced from ratatui's changelog.
... (truncated)
Commits
3a90e2a
chore(release): prepare for 0.28.1 (#1343)65da535
chore(ci): update release strategy (#1337)9ed85fd
docs(table): fix incorrect backticks inTableState
docs (#1342)aed60b9
fix(terminal): Terminal::insert_before would crash when called while the view...3631b34
docs(examples): add widget implementation example (#1147)0d5f3c0
test: Avoid unneeded allocations in assertions (#1335)ed51c4b
feat(terminal): Add ratatui::init() and restore() methods (#1289)23516bc
chore: rename ratatui-org to ratatui (#1334)6d1bd99
docs: minor grammar fixes (#1330)2fb0b8a
fix: fix u16 overflow in Terminal::insert_before. (#1323)Updates
thiserror
from 1.0.63 to 1.0.64Release notes
Sourced from thiserror's releases.
Commits
84484bc
Release 1.0.64023f036
Merge pull request #322 from oxalica/feat/mark-auto-derivedae1f47e
Mark #[automatically_derived] for generated implsab5b5e3
Upload CI Cargo.lock for reproducing failures00b3c14
Work around new dead code warning in testUpdates
tokio
from 1.39.2 to 1.40.0Release notes
Sourced from tokio's releases.
... (truncated)
Commits
ea6d652
chore: prepare Tokio v1.40.0 (#6806)11f66f4
chore: replaceready!
withstd::task::ready!
(#6804)479a56a
time: eliminate timer wheel allocations (#6779)b37f0de
runtime: implement initial set of task hooks (#6742)c9fad08
codec: fix typo in the docs forEncoder::Error
(#6800)cc70a21
task: addjoin_all
method toJoinSet
(#6784)1ac8dff
task: addAbortOnDropHandle
type (#6786)ff3f2a8
io: addSimplexStream
(#6589)5b9a290
io: clarify zero remaining capacity case (#6790)70569bd
task: fix typo inTaskTracker
docs (#6792)Updates
unicode-width
from 0.1.13 to 0.2.0Commits
Updates
regex
from 1.10.5 to 1.11.0Changelog
Sourced from regex's changelog.
Commits
bcbe403
1.11.09e17e56
deps: bump regex-automata58e16f5
regex-automata-0.4.84bb1e3d
deps: bump regex-syntaxcba0fbc
regex-syntax-0.8.51533257
changelog: 1.11.09239e7e
data: update to UCD 167691e49
cli: include \w, \s and \d in Unicode data table generationb790aa5
api: add SetMatches::matched_alld3d3ff7
cli: remove some dead codeUpdates
sysinfo
from 0.31.0 to 0.31.4Changelog
Sourced from sysinfo's changelog.
Commits
993f8e3
Merge pull request #1345 from GuillaumeGomez/update01df96d
Update crate version to 0.31.48205af5
Update CHANGELOG for 0.31.497267b1
Merge pull request #1344 from complexspaces/pool-apple-disk-refreshing5f78295
Wrap Apple disk refreshing in autorelease pool to avoid system cachingd0122ae
Merge pull request #1343 from GuillaumeGomez/updatee40096c
Update crate version to 0.31.3431d5df
Update CHANGELOG for 0.31.33dff49e
Merge pull request #1342 from rise0chen/master9acef9f
feat: support Raspberry PiUpdates
insta
from 1.39.0 to 1.40.0Release notes
Sourced from insta's releases.