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: Strumenti Admin e Dev

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)

💬 Discussione della community e commenti

🌐 Entra nella chat principale

Avvia la discussione nel flusso broadcast della Social Chat oppure invia qui sopra un contributo esperto tramite il modulo di integrazione.

Briefing di sicurezza Gratuito · disdetta in 1 clic

Intelligence Digest — gratuito

Ogni giorno le notizie di sicurezza più importanti · annullabile in qualsiasi momento

Valutazione della community & prova sociale
⭐ Giudizio dei lettori
–
Ø / 5.0
Ancora nessuna valutazione dei lettori
Questo articolo ti è stato utile?
0
Lascia ora la tua valutazione
Valutazione dettagliata (facoltativa)
Contenuto & qualità
Fonte & credibilità
Attualità

Cluster di storie correlate & fonti (IA vettoriale)

6 Cluster
26 fonti
CVE-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 Updates 1 h fa
25 altre fonti
VulDB Updates1 h faCVE-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 h faCVE-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 h faCVE-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 h faCVE-2026-99679 | Linux Kernel up to 7.3.4/7.4-rc1 xfs xfs_iomap_write_unwritten allocation of resources VulDB Updates1 h faCVE-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 h faCVE-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 h faCVE-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 Ubuntu security notices2 h faUSN-9170-4: Linux kernel (Azure) vulnerabilities Ubuntu security notices2 h faUSN-9165-2: Linux kernel vulnerabilities Ubuntu security notices2 h faUSN-9168-4: Linux kernel (Azure) vulnerabilities Ubuntu security notices2 h faUSN-9167-3: Linux kernel vulnerabilities Ubuntu security notices2 h faUSN-9174-2: Linux kernel (Low Latency NVIDIA) vulnerabilities Ubuntu security notices2 h faUSN-9173-3: Linux kernel (NVIDIA) vulnerabilities Ubuntu security notices2 h faUSN-9190-1: Linux kernel vulnerabilities Ubuntu security notices2 h faUSN-9191-1: Linux kernel (Azure) vulnerabilities Ubuntu security notices2 h faUSN-9192-1: Linux kernel (NVIDIA) vulnerabilities VulDB Updates3 h faCVE-2026-99669 | Linux Kernel up to 7.3.4/7.4-rc1 Huge Memory mm/huge_memory zap_huge_pmd_folio race condition VulDB Updates3 h faCVE-2026-99662 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 gup out-of-bounds write VulDB Updates3 h faCVE-2026-99672 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 CAN isotp_release use after free VulDB Updates3 h faCVE-2026-99676 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 refcount refcount_inc_not_zero_acquire locking VulDB Updates3 h faCVE-2026-99674 | Linux Kernel up to 7.3.4/7.4-rc1 CAN Device Driver net/can/dev.c can_dropped_invalid_skb len buffer overflow VulDB Updates3 h faCVE-2026-99668 | Linux Kernel up to 7.3.4/7.4-rc1 Huge Memory Management mm/huge_memory.c zap_huge_pmd_folio memory corruption VulDB Updates3 h faCVE-2026-99667 | Linux Kernel up to 6.18.63/7.3.4/7.4-rc1 khugepaged try_collapse_pte_mapped_thp race condition VulDB Updates3 h faCVE-2026-99659 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 TLB Flush mm/numm_gather.c __tlb_adjust_range numeric truncation error VulDB Updates3 h faCVE-2026-99657 | Linux Kernel up to 6.12.117/6.18.63/7.3.4/7.4-rc1 MMU Notifier mm/mmu_notifier.c __mmu_interval_notifier_insert mm race condition
Articoli simili
🔍 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...

Caricamento dei video ...

Laden...

Caricamento degli articoli ...

Laden...

Caricamento dei video ...

Laden...

Caricamento degli articoli ...

Laden...

Caricamento dei video ...

Laden...

Caricamento degli articoli ...

Laden...

Caricamento dei video ...

Laden...

Caricamento degli articoli ...

Laden...

Caricamento dei video ...

💬 Caricamento dei commenti…
Trascina per aggiornare
Widgets & Topics
Loading widgets…
Nächster Beitrag