Skip to content

Commit 0b25d09

Browse files
authored
Rust 1.94.0 (#87)
1 parent 29b6744 commit 0b25d09

4 files changed

Lines changed: 21 additions & 6 deletions

File tree

.cargo/config.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ rustflags = [
1111
"-Wclippy::dbg_macro",
1212
"-Wclippy::debug_assert_with_mut_call",
1313
"-Wclippy::doc_markdown",
14-
"-Wclippy::empty_enum",
1514
"-Wclippy::enum_glob_use",
1615
"-Wclippy::exit",
1716
"-Wclippy::expl_impl_clone_on_copy",

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
<!-- next-header -->
1111
## [Unreleased] - ReleaseDate
12+
### Changed
13+
- [PR#87](https://github.com/EmbarkStudios/cfg-expr/pull/87) updated the builtin target list to 1.94.0.
14+
1215
## [0.20.6] - 2026-01-22
1316
### Changed
1417
- [PR#86](https://github.com/EmbarkStudios/cfg-expr/pull/86) updated the builtin target list to 1.93.0.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
# `⚙️ cfg-expr`
66

7-
**A parser and evaluator for Rust `cfg()` expressions. Builtin targets as of [1.93.0] are supported.**
7+
**A parser and evaluator for Rust `cfg()` expressions. Builtin targets as of [1.94.0] are supported.**
88

99
[![Build Status](https://github.com/EmbarkStudios/cfg-expr/workflows/CI/badge.svg)](https://github.com/EmbarkStudios/cfg-expr/actions?workflow=CI)
1010
[![Crates.io](https://img.shields.io/crates/v/cfg-expr.svg)](https://crates.io/crates/cfg-expr)
1111
[![Docs](https://docs.rs/cfg-expr/badge.svg)](https://docs.rs/cfg-expr)
1212
[![Minimum Stable Rust Version](https://img.shields.io/badge/Rust%20MSRV-1.70.0-blue?color=fc8d62&logo=rust)](https://blog.rust-lang.org/2023/06/01/Rust-1.70.0.html)
13-
[![Rust Targets](https://img.shields.io/badge/Rust%20Targets-1.93.0-blue.svg)](https://forge.rust-lang.org/release/platform-support.html)
13+
[![Rust Targets](https://img.shields.io/badge/Rust%20Targets-1.94.0-blue.svg)](https://forge.rust-lang.org/release/platform-support.html)
1414
[![Contributor Covenant](https://img.shields.io/badge/contributor%20covenant-v2.0%20adopted-ff69b4.svg)](CODE_OF_CONDUCT.md)
1515
[![Embark](https://img.shields.io/badge/embark-open%20source-blueviolet.svg)](https://embark.dev)
1616
</div>
@@ -24,7 +24,7 @@
2424

2525
`cfg-expr` is a crate that can be used to parse and evaluate Rust `cfg()` expressions, both as declarable in Rust code itself, as well in cargo manifests' `[target.'cfg()'.dependencies]` sections.
2626

27-
It contains a list of all builtin targets known to rustc as of [1.93.0] that can be used to determine if a particular cfg expression is satisfiable.
27+
It contains a list of all builtin targets known to rustc as of [1.94.0] that can be used to determine if a particular cfg expression is satisfiable.
2828

2929
```rust
3030
use cfg_expr::{targets::get_builtin_target_by_triple, Expression, Predicate};
@@ -100,4 +100,4 @@ at your option.
100100

101101
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
102102

103-
[1.93.0]: (https://forge.rust-lang.org/release/platform-support.html)
103+
[1.94.0]: (https://forge.rust-lang.org/release/platform-support.html)

src/targets/builtins.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use super::*;
1212

13-
pub(crate) const RUSTC_VERSION: &str = "1.93.0";
13+
pub(crate) const RUSTC_VERSION: &str = "1.94.0";
1414

1515
pub const ALL_BUILTINS: &[TargetInfo] = &[
1616
TargetInfo {
@@ -2782,6 +2782,19 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
27822782
has_atomics: HasAtomics::atomic_8_16_32_64_ptr,
27832783
panic: Panic::unwind,
27842784
},
2785+
TargetInfo {
2786+
triple: Triple::new_const("riscv64im-unknown-none-elf"),
2787+
os: None,
2788+
abi: None,
2789+
arch: Arch::riscv64,
2790+
env: None,
2791+
vendor: Some(Vendor::unknown),
2792+
families: Families::new_const(&[]),
2793+
pointer_width: 64,
2794+
endian: Endian::little,
2795+
has_atomics: HasAtomics::new_const(&[]),
2796+
panic: Panic::abort,
2797+
},
27852798
TargetInfo {
27862799
triple: Triple::new_const("riscv64imac-unknown-none-elf"),
27872800
os: None,

0 commit comments

Comments
 (0)