Zum Hauptinhalt springen
Intelligence View
⚡ tsecurity.de Intelligence

The Rust Programming Language Blog: Announcing Rust 1.95.0

The Rust team is happy to announce a new version of Rust, 1.95.0. Rust is a programming language empowering everyone to build reliable and efficient software.…

Beitrag
0
Seite
0
↗ Quelle (blog.rust-lang.org)
Quelle & Fakten · 3 Min. Lesezeit
Quelle: blog.rust-lang.org
Rubrik: Admin & Dev Tools

The Rust team is happy to announce a new version of Rust, 1.95.0. Rust is a programming language empowering everyone to build reliable and efficient software.


If you have a previous version of Rust installed via rustup, you can get 1.95.0 with:


$ rustup update stable

If you don't have it already, you can get rustup from the appropriate page on our website, and check out the detailed release notes for 1.95.0.


If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel (rustup default beta) or the nightly channel (rustup default nightly). Please report any bugs you might come across!



What's in 1.95.0 stable



cfg_select!


Rust 1.95 introduces a
cfg_select!
macro that acts roughly similar to a compile-time match on cfgs. This
fulfills the same purpose as the popular
cfg-if crate, although with a different
syntax. cfg_select! expands to the right-hand side of the first arm whose
configuration predicate evaluates to true. Some examples:


cfg_select! {
unix => {
fn foo() { /* unix specific functionality */ }
}
target_pointer_width = "32" => {
fn foo() { /* non-unix, 32-bit functionality */ }
}
_ => {
fn foo() { /* fallback implementation */ }
}
}

let is_windows_str = cfg_select! {
windows => "windows",
_ => "not windows",
};


if-let guards in matches


Rust 1.88 stabilized let chains. Rust
1.95 brings that capability into match expressions, allowing for conditionals
based on pattern matching.


match value {
Some(x) if let Ok(y) = compute(x) => {
// Both `x` and `y` are available here
println!("{}, {}", x, y);
}
_ => {}
}

Note that the compiler will not currently consider the patterns matched in if let guards as part of the exhaustiveness evaluation of the overall match, just
like if guards.



Stabilized APIs



These previously stable APIs are now stable in const contexts:




Destabilized JSON target specs


Rust 1.95 removes support on stable for passing a custom target specification
to rustc. This should not affect any Rust users using a fully stable
toolchain, as building the standard library (including just core) already
required using nightly-only features.


We're also gathering use cases for custom targets on the tracking issue
as we consider whether some form of this feature should eventually be stabilized.



Other changes


Check out everything that changed in Rust, Cargo, and Clippy.



Contributors to 1.95.0


Many people came together to create Rust 1.95.0. We couldn't have done it without all of you. Thanks!

Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:
✏️ Information ergänzen
🛡️ Versioniert via CMS-Revisions-Engine (Freigabe-Queue für Gäste)

💬 Community discussion & comments

🌐 Join the main chat

Start the discussion in the Social Chat broadcast stream or submit an expert contribution via the supplement form above.

Security Briefing Free · 1-Click Unsubscribe

Intelligence Digest — free

The top security news daily · unsubscribe anytime

Community Rating & Social Proof
⭐ Reader Rating
–
Ø / 5.0
No reader ratings yet
Was this article helpful?
0
Submit your rating
Detailed rating (optional)
Content & Quality
Source & Credibility
Freshness

Related story clusters & sources (vector AI)

6 Cluster
18 sources
Black Friday bei VZMore: Bis 600 Euro Rabatt auf Power-Mini-PCs
WinFuture News 51 min. ago
17 more sources
Latest from TechRadar1 hour agoThe best Black Friday turntable deals, as picked by an audio editor Latest from TechRadar18 min. ago40+ best Black Friday deals in the UK — Switch 2, Shark vacuums, iPhone 18, Lego, PS5 bundles, Samsung, LG OLED TVs, and more CNET12 days agoUpgrade Your Home Security for Less. Score Up to 65% Off With These Black Friday Ring Deals Giga.de1 hour agoVor Black Friday zu viel bezahlt? Mit einem Trick könnt ihr doch noch sparen t3n.de31 min. agoBlack Friday: Diese Samsung-Angebote bei Amazon und Media Markt lohnen sich netzwelt.de2 hours agoBlack-Friday-Kracher: Huawei-Smartwatch mit EKG für unter 150 Euro Golem.de51 min. agoAnzeige: Sony WH-1000XM6 Referenz-Kopfhörer am Black Friday zum Amazon-Bestpreis Macerkopf.de1 hour agoAmazon Black Friday: Apple Pencil, WISO Steuer 2027, Microsoft 365, iPhone 18 Cases und mehr PC-WELT32 min. agoLeistungsstarker Mini-PC mit Intel Core Ultra 9: VZMORE iX9 Max erstmals unter 760 Euro Golem.de1 hour agoAnzeige: Fahrradcomputer von Garmin zum Black Friday reduziert bei Amazon CNET13 days agoGet up to 50% off Select Alexa Devices With Amazon’s Black Friday Upgrade Deal CNET5 days agoBlack Friday Is Knocking Hundreds Off Apple’s iPads, and There’s Plenty to Choose From TechRepublic3 hours agoAmazon Cuts Google Pixel 11 Pro to $749 for Black Friday Golem.de2 hours agoVideostreaming und Black Friday: Apple TV ein halbes Jahr lang zum halben Preis auch auf Amazon Golem.de2 hours agoAnzeige: Smartwatch von Fitbit als Black Friday Deal zum halben Preis bei Media Markt appgefahren.de2 hours agoBaseus U2 Pro Sicherheitskamera: Black Friday-Deal mit über 50 Prozent Rabatt Google Alert5 hours agoFakeshops am Black Friday: Diese Tipps gibt das BSI - it-daily.net
17 sources
CVE-2026-99707 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 khugepaged collapse_file use after free
VulDB Updates 1 hour ago
16 more sources
VulDB Updates1 hour agoCVE-2026-99728 | Linux Kernel up to 7.3.4/7.4-rc1 Deferred Split Scan mm/huge_memory deferred_split_scan/deferred_split_folio race condition VulDB Updates1 hour agoCVE-2026-99715 | Linux Kernel up to 7.3.4/7.4-rc1 nvme-rdma nvme_rdma_queue_rq null pointer dereference VulDB Updates1 hour agoCVE-2026-99730 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 Filemap mm/filemap.c filemap_fault race condition VulDB Updates1 hour agoCVE-2026-99724 | Linux Kernel up to 7.3.4/7.4-rc1 NTFS ntfs_read_compressed_block out-of-bounds VulDB Updates1 hour agoCVE-2026-99725 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 CIPSO cipso_v4_delopt buffer overflow VulDB Updates1 hour agoCVE-2026-99735 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 MGLRU mm/mglru.c walk_pud_range/walk_pmd_range race condition VulDB Updates1 hour agoCVE-2026-99744 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 atl1c atl1c_clean_rfd length buffer overflow VulDB Updates1 hour agoCVE-2026-99746 | Linux Kernel up to 7.3.4/7.4-rc1 ASoC hda_sdw_bpt_close race condition VulDB Updates1 hour agoCVE-2026-99690 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 ocfs2 ocfs2_get_dentry_osb use after free VulDB Updates1 hour agoCVE-2026-99678 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 XFS xfs_iomap_write_direct integer overflow VulDB Updates1 hour agoCVE-2026-99680 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 XFS xfs_fs_map_blocks allocation of resources VulDB Updates1 hour agoCVE-2026-99688 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 sch_qfq net/sched/sch_qfq.c qfq_change_class use after free VulDB Updates1 hour agoCVE-2026-99679 | Linux Kernel up to 7.3.4/7.4-rc1 xfs xfs_iomap_write_unwritten allocation of resources VulDB Updates1 hour agoCVE-2026-99686 | Linux Kernel up to 6.18.63/7.3.4/7.4-rc1 vhost vhost_add_used_n_in_order integer overflow VulDB Updates1 hour agoCVE-2026-99697 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 memcontrol high_work_func use after free VulDB Updates1 hour agoCVE-2026-99685 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 iommu/virtio viommu_probe use after free
Similar posts
🔍 Verwandte News

Auch interessante Nachrichten The Rust Programming Language Blog: Announcing Rust 1.95.0

Thematisch verwandte Begriffe: Rust, Programming, Language, Blog · 6 Treffer

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

Laden...

Loading posts ...

Laden...

Loading videos ...

💬 Loading comments…
Pull to refresh
Widgets & Topics
Loading widgets…
Nächster Beitrag