Skip to content

Commit c881a19

Browse files
authored
Update to 1.88.0 (#80)
1 parent 50c018f commit c881a19

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
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.87.0] are supported.**
7+
**A parser and evaluator for Rust `cfg()` expressions. Builtin targets as of [1.88.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.87.0-blue.svg)](https://forge.rust-lang.org/release/platform-support.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)
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.87.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.88.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.87.0]: (https://forge.rust-lang.org/release/platform-support.html)
103+
[1.88.0]: (https://forge.rust-lang.org/release/platform-support.html)

src/targets/builtins.rs

Lines changed: 17 additions & 2 deletions
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.87.0";
13+
pub(crate) const RUSTC_VERSION: &str = "1.88.0";
1414

1515
pub const ALL_BUILTINS: &[TargetInfo] = &[
1616
TargetInfo {
@@ -1722,7 +1722,7 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
17221722
abi: Some(Abi::abi64),
17231723
arch: Arch::mips64,
17241724
env: Some(Env::musl),
1725-
vendor: Some(Vendor::unknown),
1725+
vendor: Some(Vendor::openwrt),
17261726
families: Families::unix,
17271727
pointer_width: 64,
17281728
endian: Endian::big,
@@ -3224,6 +3224,19 @@ pub const ALL_BUILTINS: &[TargetInfo] = &[
32243224
has_atomics: HasAtomics::atomic_8_16_32_64_ptr,
32253225
panic: Panic::unwind,
32263226
},
3227+
TargetInfo {
3228+
triple: Triple::new_const("x86_64-lynx-lynxos178"),
3229+
os: Some(Os::lynxos178),
3230+
abi: None,
3231+
arch: Arch::x86_64,
3232+
env: None,
3233+
vendor: Some(Vendor::unknown),
3234+
families: Families::unix,
3235+
pointer_width: 64,
3236+
endian: Endian::little,
3237+
has_atomics: HasAtomics::atomic_8_16_32_64_ptr,
3238+
panic: Panic::abort,
3239+
},
32273240
TargetInfo {
32283241
triple: Triple::new_const("x86_64-pc-cygwin"),
32293242
os: Some(Os::cygwin),
@@ -3806,6 +3819,7 @@ impl super::Vendor {
38063819
pub const mti: Vendor = Vendor::new_const("mti");
38073820
pub const nintendo: Vendor = Vendor::new_const("nintendo");
38083821
pub const nvidia: Vendor = Vendor::new_const("nvidia");
3822+
pub const openwrt: Vendor = Vendor::new_const("openwrt");
38093823
pub const pc: Vendor = Vendor::new_const("pc");
38103824
pub const risc0: Vendor = Vendor::new_const("risc0");
38113825
pub const sony: Vendor = Vendor::new_const("sony");
@@ -3836,6 +3850,7 @@ impl super::Os {
38363850
pub const ios: Os = Os::new_const("ios");
38373851
pub const l4re: Os = Os::new_const("l4re");
38383852
pub const linux: Os = Os::new_const("linux");
3853+
pub const lynxos178: Os = Os::new_const("lynxos178");
38393854
pub const macos: Os = Os::new_const("macos");
38403855
pub const netbsd: Os = Os::new_const("netbsd");
38413856
pub const nto: Os = Os::new_const("nto");

0 commit comments

Comments
 (0)