Skip to content

Commit 5ad70ed

Browse files
committed
Update to 1.89
1 parent cdfe878 commit 5ad70ed

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

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.88.0] are supported.**
7+
**A parser and evaluator for Rust `cfg()` expressions. Builtin targets as of [1.89.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.88.0-blue.svg)](https://forge.rust-lang.org/release/platform-support.html)
13+
[![Rust Targets](https://img.shields.io/badge/Rust%20Targets-1.89.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.88.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.89.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.88.0]: (https://forge.rust-lang.org/release/platform-support.html)
103+
[1.89.0]: (https://forge.rust-lang.org/release/platform-support.html)

src/targets/builtins.rs

Lines changed: 28 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.88.0";
13+
pub(crate) const RUSTC_VERSION: &str = "1.89.0";
1414

1515
pub const ALL_BUILTINS: &[TargetInfo] = &[
1616
TargetInfo {
@@ -1573,6 +1573,32 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
15731573
has_atomics: HasAtomics::atomic_8_16_32_64_ptr,
15741574
panic: Panic::unwind,
15751575
},
1576+
TargetInfo {
1577+
triple: Triple::new_const("loongarch32-unknown-none"),
1578+
os: None,
1579+
abi: None,
1580+
arch: Arch::loongarch32,
1581+
env: None,
1582+
vendor: Some(Vendor::unknown),
1583+
families: Families::new_const(&[]),
1584+
pointer_width: 32,
1585+
endian: Endian::little,
1586+
has_atomics: HasAtomics::atomic_8_16_32_ptr,
1587+
panic: Panic::abort,
1588+
},
1589+
TargetInfo {
1590+
triple: Triple::new_const("loongarch32-unknown-none-softfloat"),
1591+
os: None,
1592+
abi: Some(Abi::softfloat),
1593+
arch: Arch::loongarch32,
1594+
env: None,
1595+
vendor: Some(Vendor::unknown),
1596+
families: Families::new_const(&[]),
1597+
pointer_width: 32,
1598+
endian: Endian::little,
1599+
has_atomics: HasAtomics::atomic_8_16_32_ptr,
1600+
panic: Panic::abort,
1601+
},
15761602
TargetInfo {
15771603
triple: Triple::new_const("loongarch64-unknown-linux-gnu"),
15781604
os: Some(Os::linux),
@@ -3787,6 +3813,7 @@ impl super::Arch {
37873813
pub const bpf: Arch = Arch::new_const("bpf");
37883814
pub const csky: Arch = Arch::new_const("csky");
37893815
pub const hexagon: Arch = Arch::new_const("hexagon");
3816+
pub const loongarch32: Arch = Arch::new_const("loongarch32");
37903817
pub const loongarch64: Arch = Arch::new_const("loongarch64");
37913818
pub const m68k: Arch = Arch::new_const("m68k");
37923819
pub const mips: Arch = Arch::new_const("mips");

0 commit comments

Comments
 (0)