From ea4ac3b1e8d806d36ee824cf1570432aed8b70b4 Mon Sep 17 00:00:00 2001 From: Uchio Kondo Date: Sun, 7 Dec 2025 13:24:02 +0900 Subject: [PATCH 1/2] Remove duplicate blocklist_item entries for FP_ constants in build.rs --- build.rs | 5 +++++ src/bindings.rs | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build.rs b/build.rs index a6c82e6..638412b 100644 --- a/build.rs +++ b/build.rs @@ -34,6 +34,11 @@ fn main() { .header("./vendor/mruby-compiler2/include/mrc_codedump.h") .clang_arg("-I./vendor/mruby-compiler2/include") .clang_arg("-I./vendor/mruby-compiler2/lib/prism/include") + .blocklist_item("FP_NAN") + .blocklist_item("FP_INFINITE") + .blocklist_item("FP_ZERO") + .blocklist_item("FP_SUBNORMAL") + .blocklist_item("FP_NORMAL") .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())) .generate() .expect("Unable to generate bindings"); diff --git a/src/bindings.rs b/src/bindings.rs index 022fdb7..cd42be7 100644 --- a/src/bindings.rs +++ b/src/bindings.rs @@ -807,11 +807,6 @@ pub const __AVAILABILITY_VERSIONS_VERSION_STRING: &[u8; 6] = b"Local\0"; pub const __AVAILABILITY_FILE: &[u8; 23] = b"AvailabilityVersions.h\0"; pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 260100; pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1; -pub const FP_NAN: u32 = 1; -pub const FP_INFINITE: u32 = 2; -pub const FP_ZERO: u32 = 3; -pub const FP_NORMAL: u32 = 4; -pub const FP_SUBNORMAL: u32 = 5; pub const FP_SUPERNORMAL: u32 = 6; pub const FP_FAST_FMA: u32 = 1; pub const FP_FAST_FMAF: u32 = 1; From bdb084bc981a36441352004a44f04ecb6ace86b1 Mon Sep 17 00:00:00 2001 From: Uchio Kondo Date: Sun, 7 Dec 2025 13:27:11 +0900 Subject: [PATCH 2/2] Bump version to 0.1.1, add build target --- .github/workflows/rust.yml | 2 ++ Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 88b98b5..abee515 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -18,3 +18,5 @@ jobs: - uses: actions/checkout@v4 - name: Build run: cargo build --verbose + - name: Build (no-std) + run: cargo build --features no-std --no-default-features --verbose \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index de2469c..62a9f4a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -136,7 +136,7 @@ checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] name = "mruby-compiler2-sys" -version = "0.1.0" +version = "0.1.1" dependencies = [ "bindgen", "cc", diff --git a/Cargo.toml b/Cargo.toml index 1c78d1a..d923a7d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mruby-compiler2-sys" -version = "0.1.0" +version = "0.1.1" edition = "2024" authors = ["Uchio Kondo ", "Hitoshi Hasumi", "prism developers"] description = "mruby-compiler2 bindings for Rust"