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: Herramientas Admin y 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)

💬 Debate de la comunidad y comentarios

🌐 Unirse al chat principal

Inicia el debate en el stream de difusión del Social Chat o envía arriba una contribución experta mediante el formulario de ampliación.

Briefing de seguridad Gratis · baja en 1 clic

Intelligence Digest — gratis

Cada día las noticias de seguridad más importantes · baja en cualquier momento

Valoración de la comunidad & prueba social
⭐ Valoración de los lectores
–
Ø / 5.0
Aún no hay valoraciones de lectores
¿Le ha resultado útil este artículo?
0
Dejar una valoración ahora
Valoración detallada (opcional)
Contenido & calidad
Fuente & credibilidad
Actualidad

Clústeres de historias relacionados & fuentes (IA vectorial)

6 Cluster
18 fuentes
Black Friday bei VZMore: Bis 600 Euro Rabatt auf Power-Mini-PCs
WinFuture News hace 51 min.
17 fuentes más
Latest from TechRadarhace 1 hThe best Black Friday turntable deals, as picked by an audio editor Latest from TechRadarhace 17 min.40+ best Black Friday deals in the UK — Switch 2, Shark vacuums, iPhone 18, Lego, PS5 bundles, Samsung, LG OLED TVs, and more CNEThace 12 díasUpgrade Your Home Security for Less. Score Up to 65% Off With These Black Friday Ring Deals Giga.dehace 1 hVor Black Friday zu viel bezahlt? Mit einem Trick könnt ihr doch noch sparen t3n.dehace 30 min.Black Friday: Diese Samsung-Angebote bei Amazon und Media Markt lohnen sich netzwelt.dehace 2 hBlack-Friday-Kracher: Huawei-Smartwatch mit EKG für unter 150 Euro Golem.dehace 50 min.Anzeige: Sony WH-1000XM6 Referenz-Kopfhörer am Black Friday zum Amazon-Bestpreis Macerkopf.dehace 1 hAmazon Black Friday: Apple Pencil, WISO Steuer 2027, Microsoft 365, iPhone 18 Cases und mehr PC-WELThace 32 min.Leistungsstarker Mini-PC mit Intel Core Ultra 9: VZMORE iX9 Max erstmals unter 760 Euro Golem.dehace 1 hAnzeige: Fahrradcomputer von Garmin zum Black Friday reduziert bei Amazon CNEThace 13 díasGet up to 50% off Select Alexa Devices With Amazon’s Black Friday Upgrade Deal CNEThace 5 díasBlack Friday Is Knocking Hundreds Off Apple’s iPads, and There’s Plenty to Choose From TechRepublichace 3 hAmazon Cuts Google Pixel 11 Pro to $749 for Black Friday Golem.dehace 2 hVideostreaming und Black Friday: Apple TV ein halbes Jahr lang zum halben Preis auch auf Amazon Golem.dehace 2 hAnzeige: Smartwatch von Fitbit als Black Friday Deal zum halben Preis bei Media Markt appgefahren.dehace 2 hBaseus U2 Pro Sicherheitskamera: Black Friday-Deal mit über 50 Prozent Rabatt Google Alerthace 5 hFakeshops am Black Friday: Diese Tipps gibt das BSI - it-daily.net
17 fuentes
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 hace 1 h
16 fuentes más
VulDB Updateshace 1 hCVE-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 Updateshace 1 hCVE-2026-99715 | Linux Kernel up to 7.3.4/7.4-rc1 nvme-rdma nvme_rdma_queue_rq null pointer dereference VulDB Updateshace 1 hCVE-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 Updateshace 1 hCVE-2026-99724 | Linux Kernel up to 7.3.4/7.4-rc1 NTFS ntfs_read_compressed_block out-of-bounds VulDB Updateshace 1 hCVE-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 Updateshace 1 hCVE-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 Updateshace 1 hCVE-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 Updateshace 1 hCVE-2026-99746 | Linux Kernel up to 7.3.4/7.4-rc1 ASoC hda_sdw_bpt_close race condition VulDB Updateshace 1 hCVE-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 Updateshace 1 hCVE-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 Updateshace 1 hCVE-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 Updateshace 1 hCVE-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 Updateshace 1 hCVE-2026-99679 | Linux Kernel up to 7.3.4/7.4-rc1 xfs xfs_iomap_write_unwritten allocation of resources VulDB Updateshace 1 hCVE-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 Updateshace 1 hCVE-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 Updateshace 1 hCVE-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
Artículos similares
🔍 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...

Cargando vídeos ...

Laden...

Cargando artículos ...

Laden...

Cargando vídeos ...

Laden...

Cargando artículos ...

Laden...

Cargando vídeos ...

Laden...

Cargando artículos ...

Laden...

Cargando vídeos ...

Laden...

Cargando artículos ...

Laden...

Cargando vídeos ...

💬 Cargando comentarios…
Desliza para actualizar
Widgets & Topics
Loading widgets…
Nächster Beitrag