From df9b236c60490716839b98c1d90f7a3429869d29 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 15:05:58 +0100 Subject: [PATCH 01/56] Added `[generate bindings]` command for CI Update maintainer guide hopefully, a GHA commit shouldn't follow maybe it needs to be an expression? what's happening... please xplain. right sha.. hopefully, a GHA commit shouldn't follow hopefully, a GHA commit shouldn't follow no generating of anything --- MAINTAINERS_GUIDE.md | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/MAINTAINERS_GUIDE.md b/MAINTAINERS_GUIDE.md index f86837bd..0bbe87cf 100644 --- a/MAINTAINERS_GUIDE.md +++ b/MAINTAINERS_GUIDE.md @@ -12,20 +12,6 @@ git commit -m "[generate bindings]" --allow-empty Then after successfully running workflows, GitHub Actions will push a commit with the updated bindings onto your PR branch. -# GUIDE - -## Commit newly generated bindings - -Your last commit must contain `[generate bindings]`. You can make an empty -commit with this message: - -```sh -git commit -m "[generate bindings]" --allow-empty -``` - -Then after successfully running workflows, GitHub Actions will push a commit -with the updated bindings onto your PR branch. - ## Precomputed bindings ### How to update the precomputed bindings? From 948ca93ce4253bc7991d8bc33c004a70cbefd8b1 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 15:53:05 +0100 Subject: [PATCH 02/56] Make C-enums into idiomatic rust enums --- build.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.rs b/build.rs index c832b640..3dd96b4e 100644 --- a/build.rs +++ b/build.rs @@ -475,6 +475,11 @@ fn generate_bindings(r_paths: &InstallationPaths, version_info: &RVersionInfo) { // Tell cargo to invalidate the built crate whenever any of the // included header files changed. .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())); + + // Collect C-enums into idiomatic Rust-style enums + bindgen_builder = bindgen_builder.default_enum_style(bindgen::EnumVariation::Rust { + non_exhaustive: false, + }); // Collect C-enums into idiomatic Rust-style enums bindgen_builder = bindgen_builder.default_enum_style(bindgen::EnumVariation::Rust { From 37290adeacbc3fa4d4f4d27f3a8cb1a95b44231c Mon Sep 17 00:00:00 2001 From: CGMossa Date: Thu, 16 Nov 2023 16:19:46 +0000 Subject: [PATCH 03/56] Update bindings [skip ci] --- bindings/bindings-linux-aarch64-R4.4-devel.rs | 4 ++-- bindings/bindings-linux-x86_64-R4.4-devel.rs | 4 ++-- bindings/bindings-windows-x86_64-R4.4-devel.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bindings/bindings-linux-aarch64-R4.4-devel.rs b/bindings/bindings-linux-aarch64-R4.4-devel.rs index 7f0b1a5a..6e1674c8 100644 --- a/bindings/bindings-linux-aarch64-R4.4-devel.rs +++ b/bindings/bindings-linux-aarch64-R4.4-devel.rs @@ -164,8 +164,8 @@ pub const R_MINOR: &[u8; 4] = b"4.0\0"; pub const R_STATUS: &[u8; 29] = b"Under development (unstable)\0"; pub const R_YEAR: &[u8; 5] = b"2023\0"; pub const R_MONTH: &[u8; 3] = b"11\0"; -pub const R_DAY: &[u8; 3] = b"16\0"; -pub const R_SVN_REVISION: u32 = 85542; +pub const R_DAY: &[u8; 3] = b"14\0"; +pub const R_SVN_REVISION: u32 = 85524; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; diff --git a/bindings/bindings-linux-x86_64-R4.4-devel.rs b/bindings/bindings-linux-x86_64-R4.4-devel.rs index b96ea43f..85e5ec01 100644 --- a/bindings/bindings-linux-x86_64-R4.4-devel.rs +++ b/bindings/bindings-linux-x86_64-R4.4-devel.rs @@ -164,8 +164,8 @@ pub const R_MINOR: &[u8; 4] = b"4.0\0"; pub const R_STATUS: &[u8; 29] = b"Under development (unstable)\0"; pub const R_YEAR: &[u8; 5] = b"2023\0"; pub const R_MONTH: &[u8; 3] = b"11\0"; -pub const R_DAY: &[u8; 3] = b"16\0"; -pub const R_SVN_REVISION: u32 = 85542; +pub const R_DAY: &[u8; 3] = b"14\0"; +pub const R_SVN_REVISION: u32 = 85524; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; diff --git a/bindings/bindings-windows-x86_64-R4.4-devel.rs b/bindings/bindings-windows-x86_64-R4.4-devel.rs index 3a0985f2..a5d5b745 100644 --- a/bindings/bindings-windows-x86_64-R4.4-devel.rs +++ b/bindings/bindings-windows-x86_64-R4.4-devel.rs @@ -83,8 +83,8 @@ pub const R_MINOR: &[u8; 4] = b"4.0\0"; pub const R_STATUS: &[u8; 29] = b"Under development (unstable)\0"; pub const R_YEAR: &[u8; 5] = b"2023\0"; pub const R_MONTH: &[u8; 3] = b"11\0"; -pub const R_DAY: &[u8; 3] = b"17\0"; -pub const R_SVN_REVISION: u32 = 85550; +pub const R_DAY: &[u8; 3] = b"14\0"; +pub const R_SVN_REVISION: u32 = 85524; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; From be68e8c027904aa06ee1026d74d7cc66879aa2b0 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 15:05:58 +0100 Subject: [PATCH 04/56] Added `[generate bindings]` command for CI --- .github/workflows/test.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b907a0c2..6c27e536 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -233,23 +233,19 @@ jobs: runs-on: ubuntu-latest outputs: head_commit_message: ${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }} - # generate_bindings: ${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, '[generate bindings]') }} + generate_bindings: ${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, '[generate bindings]') }} steps: - uses: actions/checkout@v4 with: - ref: ${{ github.event.pull_request.head.ref }} + ref: ${{ github.event.pull_request.head.sha }} - name: Get Head Commit Message id: get_head_commit_message run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT" - - name: Show commit message - run: | - echo "${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }}" - echo "${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, '[generate bindings]') }}" pr_generated_bindings: name: Make PR with generated bindings needs: [test_with_bindgen, check_generate_bindings_flag] - if: ${{ contains(needs.check_generate_bindings_flag.outputs.head_commit_message, '[generate bindings]') }} + if: needs.check_generate_bindings_flag.outputs.generate_bindings runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 822c7bae90b8a769d963a412d3e8e83c311f9f37 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 16:50:54 +0100 Subject: [PATCH 05/56] hopefully, a GHA commit shouldn't follow From a76d37884602de3aba38170c4fbe80c030697494 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 17:01:03 +0100 Subject: [PATCH 06/56] maybe it needs to be an expression? --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6c27e536..49042bda 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -245,7 +245,7 @@ jobs: pr_generated_bindings: name: Make PR with generated bindings needs: [test_with_bindgen, check_generate_bindings_flag] - if: needs.check_generate_bindings_flag.outputs.generate_bindings + if: ${{ needs.check_generate_bindings_flag.outputs.generate_bindings }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From 4e315abff13dec7b39e9aacbbd1c67d3578d55ad Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 17:18:15 +0100 Subject: [PATCH 07/56] what's happening... --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 49042bda..cb830815 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -233,7 +233,7 @@ jobs: runs-on: ubuntu-latest outputs: head_commit_message: ${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }} - generate_bindings: ${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, '[generate bindings]') }} + # generate_bindings: ${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, '[generate bindings]') }} steps: - uses: actions/checkout@v4 with: @@ -241,11 +241,13 @@ jobs: - name: Get Head Commit Message id: get_head_commit_message run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT" + - name: Show commit message + run: echo ${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }} pr_generated_bindings: name: Make PR with generated bindings needs: [test_with_bindgen, check_generate_bindings_flag] - if: ${{ needs.check_generate_bindings_flag.outputs.generate_bindings }} + if: ${{ contains(needs.check_generate_bindings_flag.outputs.head_commit_message, '[generate bindings]') }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From db2dc3cfc345160781665d7b49fee36cdf13f377 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 17:20:44 +0100 Subject: [PATCH 08/56] please xplain. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb830815..f4a8bb6c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -242,7 +242,7 @@ jobs: id: get_head_commit_message run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT" - name: Show commit message - run: echo ${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }} + run: echo "${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }}" pr_generated_bindings: name: Make PR with generated bindings From 01d7b2125678ad6e1147164a0b91aac20c1669d8 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 17:24:02 +0100 Subject: [PATCH 09/56] right sha.. --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f4a8bb6c..b907a0c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -237,12 +237,14 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.event.pull_request.head.sha }} + ref: ${{ github.event.pull_request.head.ref }} - name: Get Head Commit Message id: get_head_commit_message run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT" - name: Show commit message - run: echo "${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }}" + run: | + echo "${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }}" + echo "${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, '[generate bindings]') }}" pr_generated_bindings: name: Make PR with generated bindings From 98715eeb5ba46ff3b0f8e9c517027e495d2b997a Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 16:50:54 +0100 Subject: [PATCH 10/56] hopefully, a GHA commit shouldn't follow From 339505e8ef0edd915d42bda2eb859b7f81bad50d Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 16:50:54 +0100 Subject: [PATCH 11/56] hopefully, a GHA commit shouldn't follow From b5ca5a21da37d53c6e5b2e684ba335e9778449fa Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 19:10:12 +0100 Subject: [PATCH 12/56] no generating of anything From aa7207d5a90d750e57b84a99cf6b7475a693b906 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 17:07:03 +0100 Subject: [PATCH 13/56] use enum definition of `SEXPTYPE`. --- build.rs | 3 +++ src/lib.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 3dd96b4e..478d34b7 100644 --- a/build.rs +++ b/build.rs @@ -476,6 +476,9 @@ fn generate_bindings(r_paths: &InstallationPaths, version_info: &RVersionInfo) { // included header files changed. .parse_callbacks(Box::new(bindgen::CargoCallbacks::new())); + // Use enum-definition of `SEXPTYPE`, as it is available and compatible + bindgen_builder = bindgen_builder.clang_arg("-Denum_SEXPTYPE"); + // Collect C-enums into idiomatic Rust-style enums bindgen_builder = bindgen_builder.default_enum_style(bindgen::EnumVariation::Rust { non_exhaustive: false, diff --git a/src/lib.rs b/src/lib.rs index d30fe11d..6b3913b4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -144,7 +144,7 @@ mod tests { unsafe { let val = Rf_protect(R_ParseEvalString(cstr!("1"), R_NilValue)); Rf_PrintValue(val); - assert_eq!(TYPEOF(val) as u32, REALSXP); + assert_eq!(TYPEOF(val), SEXPTYPE::REALSXP as _); assert_eq!(*REAL(val), 1.); Rf_unprotect(1); } From 6223dda13dffa1ad40f6eb7cd69d7d31c4950673 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 22:06:59 +0100 Subject: [PATCH 14/56] Added a PR generating mechanism instead of what was there before [generate bindings] --- .github/workflows/test.yml | 54 ++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b907a0c2..be1999f5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -248,36 +248,40 @@ jobs: pr_generated_bindings: name: Make PR with generated bindings - needs: [test_with_bindgen, check_generate_bindings_flag] - if: ${{ contains(needs.check_generate_bindings_flag.outputs.head_commit_message, '[generate bindings]') }} + needs: test_with_bindgen + if: contains(github.event.head_commit.message, "[generate bindings]") runs-on: ubuntu-latest + steps: - - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.ref }} - - uses: actions/download-artifact@v3 + - uses: actions/checkout@v4 - - name: Update bindings - run: | - # Update or add the bindings - cp generated_binding-*/*.rs bindings/ + - uses: actions/download-artifact@v3 - # Replace the default bindings - cd bindings - for x in linux-aarch64 linux-x86_64 macos-aarch64 macos-x86_64 windows-x86_64; do - # Choose the newest version except for devel - ln --force -s "$(ls -1 ./bindings-${x}-*.rs | grep -v devel | sort | tail -1)" ./bindings-${x}.rs - done - cd .. - - name: Add generated bindings - run: | - git add bindings/ - git config --local user.name "${GITHUB_ACTOR}" - git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com" - git commit -m "Update bindings [skip ci]" - - name: Push to PR branch - run: git push + - name: Create branch + run: git checkout -b generated-bindings + - name: Update bindings + run: | + # Update or add the bindings + cp generated_binding-*/*.rs bindings/ + + # Replace the default bindings + cd bindings + for x in linux-aarch64 linux-x86_64 macos-aarch64 macos-x86_64 windows-x86_64; do + # Choose the newest version except for devel + ln --force -s "$(ls -1 ./bindings-${x}-*.rs | grep -v devel | sort | tail -1)" ./bindings-${x}.rs + done + cd .. + - name: Add generated bindings + run: | + git add bindings/ + git config --local user.name "${GITHUB_ACTOR}" + git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com" + git commit -m "Update bindings [skip ci]" + - name: Make the generated bindings PR to the PR + run: | + gh pr create --title "Add generated bindings" + # Gather the generated bindings and push them to generated_bindings branch. # If we need to update the bindings, create a pull request from that branch. commit_generated_bindings: From 00bad0bce4236ab3384dad617fd308ffd7fbb097 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 22:13:56 +0100 Subject: [PATCH 15/56] Fixed it? [generate bindings] --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index be1999f5..a3c6e05b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -249,7 +249,7 @@ jobs: pr_generated_bindings: name: Make PR with generated bindings needs: test_with_bindgen - if: contains(github.event.head_commit.message, "[generate bindings]") + if: contains(github.event.head_commit.message, '[generate bindings]') runs-on: ubuntu-latest steps: From de9dd80e8ef629db735fb4abd3011652c3ce8972 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 22:30:12 +0100 Subject: [PATCH 16/56] [generate bindings] From bab812970160ec1e97bfc28cb94940dfc3c7e06b Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 22:37:06 +0100 Subject: [PATCH 17/56] let's see what's going on --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a3c6e05b..21c7de9a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,8 @@ on: workflow_dispatch: {} jobs: - + env: + ACTIONS_STEP_DEBUG: 1 test_with_bindgen: # When the event is not issue_comment, always run the tests. When it is, # check if (1) the comment is on pull request, (2) the comment author is the From 6b3d04db6cfd7c18ec7883fe76cb962713109637 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 22:39:49 +0100 Subject: [PATCH 18/56] what's going on? --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 21c7de9a..a6c3e94c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,5 +1,6 @@ name: Tests - +env: + ACTIONS_STEP_DEBUG: 1 on: push: branches: @@ -19,8 +20,7 @@ on: workflow_dispatch: {} jobs: - env: - ACTIONS_STEP_DEBUG: 1 + test_with_bindgen: # When the event is not issue_comment, always run the tests. When it is, # check if (1) the comment is on pull request, (2) the comment author is the From 8fa4e2b9b8d9abbbc8dfa10b558e0842bfa72a0e Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 22:41:00 +0100 Subject: [PATCH 19/56] only on the job --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a6c3e94c..dcfca28f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,6 +1,4 @@ name: Tests -env: - ACTIONS_STEP_DEBUG: 1 on: push: branches: @@ -249,6 +247,8 @@ jobs: pr_generated_bindings: name: Make PR with generated bindings + env: + ACTIONS_STEP_DEBUG: 1 needs: test_with_bindgen if: contains(github.event.head_commit.message, '[generate bindings]') runs-on: ubuntu-latest From 5e9afedd0dd70eb7f9282b5f041fbf6cd0cf8799 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 22:55:29 +0100 Subject: [PATCH 20/56] [generate bindings] From a2121c62fe32ab849bb410e49f08211df10cd9e7 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 23:00:29 +0100 Subject: [PATCH 21/56] [generate bindings] --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dcfca28f..a62ca667 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -250,7 +250,7 @@ jobs: env: ACTIONS_STEP_DEBUG: 1 needs: test_with_bindgen - if: contains(github.event.head_commit.message, '[generate bindings]') + if: ${{ contains(github.event.head_commit.message, '[generate bindings]') }} runs-on: ubuntu-latest steps: From 6eec0d512aa9eeeac3ad17388bc46c7830a5019c Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 23:11:30 +0100 Subject: [PATCH 22/56] [generate bindings] --- .github/workflows/test.yml | 50 +++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a62ca667..077ed559 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -254,34 +254,34 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v3 - - name: Create branch - run: git checkout -b generated-bindings + - name: Create branch + run: git checkout -b generated-bindings - - name: Update bindings - run: | - # Update or add the bindings - cp generated_binding-*/*.rs bindings/ - - # Replace the default bindings - cd bindings - for x in linux-aarch64 linux-x86_64 macos-aarch64 macos-x86_64 windows-x86_64; do - # Choose the newest version except for devel - ln --force -s "$(ls -1 ./bindings-${x}-*.rs | grep -v devel | sort | tail -1)" ./bindings-${x}.rs - done - cd .. - - name: Add generated bindings - run: | - git add bindings/ - git config --local user.name "${GITHUB_ACTOR}" - git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com" - git commit -m "Update bindings [skip ci]" - - name: Make the generated bindings PR to the PR - run: | - gh pr create --title "Add generated bindings" + - name: Update bindings + run: | + # Update or add the bindings + cp generated_binding-*/*.rs bindings/ + + # Replace the default bindings + cd bindings + for x in linux-aarch64 linux-x86_64 macos-aarch64 macos-x86_64 windows-x86_64; do + # Choose the newest version except for devel + ln --force -s "$(ls -1 ./bindings-${x}-*.rs | grep -v devel | sort | tail -1)" ./bindings-${x}.rs + done + cd .. + - name: Add generated bindings + run: | + git add bindings/ + git config --local user.name "${GITHUB_ACTOR}" + git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com" + git commit -m "Update bindings [skip ci]" + - name: Make the generated bindings PR to the PR + run: | + gh pr create --title "Add generated bindings" # Gather the generated bindings and push them to generated_bindings branch. # If we need to update the bindings, create a pull request from that branch. From 44ef9cb6a75419e56708702004c56018f01e9252 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 23:25:51 +0100 Subject: [PATCH 23/56] [generate bindings] --- .github/workflows/test.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 077ed559..1c47cea2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,10 +26,10 @@ jobs: # # ref. # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment - if: | - github.event_name != 'issue_comment' - || (github.event.issue.pull_request && github.event.comment.author_association == 'MEMBER' && startsWith(github.event.comment.body, '/bindings')) - + # if: | + # github.event_name != 'issue_comment' + # || (github.event.issue.pull_request && github.event.comment.author_association == 'MEMBER' && startsWith(github.event.comment.body, '/bindings')) + if: false runs-on: ${{ matrix.config.os }} name: ${{ matrix.config.os }} (R-${{ matrix.config.r }} rust-${{ matrix.config.rust-version }}-${{ matrix.config.target || 'default' }}) @@ -245,10 +245,14 @@ jobs: echo "${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }}" echo "${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, '[generate bindings]') }}" + is_generated_binding_commit: + name: Debug + run: | + echo ${{ github.event.head_commit.message }} + echo ${{ contains(github.event.head_commit.message, '[generate bindings]') }} + pr_generated_bindings: name: Make PR with generated bindings - env: - ACTIONS_STEP_DEBUG: 1 needs: test_with_bindgen if: ${{ contains(github.event.head_commit.message, '[generate bindings]') }} runs-on: ubuntu-latest From bfbfaa30d4b7f0764c202bc3915280b5f9dd4ff0 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 23:27:14 +0100 Subject: [PATCH 24/56] [generate bindings] --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1c47cea2..bf9a1fa4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -253,7 +253,7 @@ jobs: pr_generated_bindings: name: Make PR with generated bindings - needs: test_with_bindgen + # needs: test_with_bindgen if: ${{ contains(github.event.head_commit.message, '[generate bindings]') }} runs-on: ubuntu-latest From 2e372e98c37f6ffa40450d65a278714193607a81 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 23:28:13 +0100 Subject: [PATCH 25/56] now? [generate bindings] --- .github/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bf9a1fa4..5ebb0570 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -247,9 +247,10 @@ jobs: is_generated_binding_commit: name: Debug - run: | - echo ${{ github.event.head_commit.message }} - echo ${{ contains(github.event.head_commit.message, '[generate bindings]') }} + steps: + run: | + echo ${{ github.event.head_commit.message }} + echo ${{ contains(github.event.head_commit.message, '[generate bindings]') }} pr_generated_bindings: name: Make PR with generated bindings From e836203685263f7fde40d8692e15874742a639f7 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 23:28:54 +0100 Subject: [PATCH 26/56] [generate bindings] --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5ebb0570..d41c99aa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -248,9 +248,9 @@ jobs: is_generated_binding_commit: name: Debug steps: - run: | - echo ${{ github.event.head_commit.message }} - echo ${{ contains(github.event.head_commit.message, '[generate bindings]') }} + - run: | + echo ${{ github.event.head_commit.message }} + echo ${{ contains(github.event.head_commit.message, '[generate bindings]') }} pr_generated_bindings: name: Make PR with generated bindings From 9705affc14143db7f54b1fbaec865a472be829a2 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 23:29:36 +0100 Subject: [PATCH 27/56] [generate bindings] --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d41c99aa..1d5ad829 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -247,6 +247,7 @@ jobs: is_generated_binding_commit: name: Debug + runs-on: ubuntu-latest steps: - run: | echo ${{ github.event.head_commit.message }} From 1a19c8e2594c07cd37b57970110d08f37d98f6ee Mon Sep 17 00:00:00 2001 From: cgmossa Date: Thu, 16 Nov 2023 23:30:57 +0100 Subject: [PATCH 28/56] echo twice? [generate bindings] --- .github/workflows/test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1d5ad829..911b86a7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -249,9 +249,8 @@ jobs: name: Debug runs-on: ubuntu-latest steps: - - run: | - echo ${{ github.event.head_commit.message }} - echo ${{ contains(github.event.head_commit.message, '[generate bindings]') }} + - run: echo ${{ github.event.head_commit.message }} + - run: echo ${{ contains(github.event.head_commit.message, '[generate bindings]') }} pr_generated_bindings: name: Make PR with generated bindings From 4db91c2feb0b60a3feaf6d3bd875cb88a74def7d Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:11:04 +0100 Subject: [PATCH 29/56] [generate bindings] --- .github/workflows/test.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 911b86a7..7ada9bc2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -245,22 +245,36 @@ jobs: echo "${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }}" echo "${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, '[generate bindings]') }}" + check_generate_bindings_flag: + name: Check if [generate bindings] is in latest commit message + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ env.GITHUB_SHA }} + - name: Get Head Commit Message + id: get_head_commit_message + run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_ENV" + is_generated_binding_commit: name: Debug runs-on: ubuntu-latest + needs: check_generate_bindings_flag steps: - - run: echo ${{ github.event.head_commit.message }} - - run: echo ${{ contains(github.event.head_commit.message, '[generate bindings]') }} + - run: echo ${{ $HEAD_COMMIT_MESSAGE }} + - run: echo ${{ contains($HEAD_COMMIT_MESSAGE, '[generate bindings]') }} pr_generated_bindings: name: Make PR with generated bindings - # needs: test_with_bindgen - if: ${{ contains(github.event.head_commit.message, '[generate bindings]') }} + needs: [test_with_bindgen, check_generate_bindings_flag] + if: ${{ contains($HEAD_COMMIT_MESSAGE, '[generate bindings]') }} runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v4 - + with: + ref: ${{ env.GITHUB_SHA }} + - uses: actions/download-artifact@v3 - name: Create branch From 9f2204882cc39960a9129d19e8f6a118321b91da Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:14:09 +0100 Subject: [PATCH 30/56] [generate bindings] --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ada9bc2..c29e40da 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -253,8 +253,8 @@ jobs: with: ref: ${{ env.GITHUB_SHA }} - name: Get Head Commit Message - id: get_head_commit_message - run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_ENV" + id: get_head_commit_message + run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_ENV" is_generated_binding_commit: name: Debug @@ -269,7 +269,7 @@ jobs: needs: [test_with_bindgen, check_generate_bindings_flag] if: ${{ contains($HEAD_COMMIT_MESSAGE, '[generate bindings]') }} runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v4 with: From 859c206cfcd10631c7dffbda6021da8ae3f7004a Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:15:37 +0100 Subject: [PATCH 31/56] [generate bindings] --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c29e40da..1a4c9e0c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -261,7 +261,7 @@ jobs: runs-on: ubuntu-latest needs: check_generate_bindings_flag steps: - - run: echo ${{ $HEAD_COMMIT_MESSAGE }} + - run: echo ${{ "$HEAD_COMMIT_MESSAGE" }} - run: echo ${{ contains($HEAD_COMMIT_MESSAGE, '[generate bindings]') }} pr_generated_bindings: From 0b87e0d4a0a4684ab0c8556ae94e7cee1bebdb07 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:16:17 +0100 Subject: [PATCH 32/56] this --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1a4c9e0c..aafbb0d6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -261,8 +261,8 @@ jobs: runs-on: ubuntu-latest needs: check_generate_bindings_flag steps: - - run: echo ${{ "$HEAD_COMMIT_MESSAGE" }} - - run: echo ${{ contains($HEAD_COMMIT_MESSAGE, '[generate bindings]') }} + - run: echo "$HEAD_COMMIT_MESSAGE" + - run: echo ${{ contains(${{HEAD_COMMIT_MESSAGE}}, '[generate bindings]') }} pr_generated_bindings: name: Make PR with generated bindings From 1e62cc1d5a2ac505047fffccfb3c834342e67602 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:20:28 +0100 Subject: [PATCH 33/56] now --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index aafbb0d6..f1949a07 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -262,7 +262,7 @@ jobs: needs: check_generate_bindings_flag steps: - run: echo "$HEAD_COMMIT_MESSAGE" - - run: echo ${{ contains(${{HEAD_COMMIT_MESSAGE}}, '[generate bindings]') }} + - run: echo "${{ contains(${{ $HEAD_COMMIT_MESSAGE }}, '[generate bindings]') }}"" pr_generated_bindings: name: Make PR with generated bindings From e0f4b1555a6de854ab3281250b85bfd8c7a128e5 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:20:41 +0100 Subject: [PATCH 34/56] again --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f1949a07..f34bedd7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -262,7 +262,7 @@ jobs: needs: check_generate_bindings_flag steps: - run: echo "$HEAD_COMMIT_MESSAGE" - - run: echo "${{ contains(${{ $HEAD_COMMIT_MESSAGE }}, '[generate bindings]') }}"" + - run: echo "${{ contains(${{ $HEAD_COMMIT_MESSAGE }}, '[generate bindings]') }}" pr_generated_bindings: name: Make PR with generated bindings From 175712b813b3c35214942fbd3a82b4d9b5cff3f3 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:22:22 +0100 Subject: [PATCH 35/56] use `env.` before environment variable --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f34bedd7..6fb3da0e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -262,12 +262,12 @@ jobs: needs: check_generate_bindings_flag steps: - run: echo "$HEAD_COMMIT_MESSAGE" - - run: echo "${{ contains(${{ $HEAD_COMMIT_MESSAGE }}, '[generate bindings]') }}" + - run: echo "${{ contains(${{ env.HEAD_COMMIT_MESSAGE }}, '[generate bindings]') }}" pr_generated_bindings: name: Make PR with generated bindings needs: [test_with_bindgen, check_generate_bindings_flag] - if: ${{ contains($HEAD_COMMIT_MESSAGE, '[generate bindings]') }} + if: ${{ contains(env.HEAD_COMMIT_MESSAGE, '[generate bindings]') }} runs-on: ubuntu-latest steps: From 35e876c7f23b75c255916fee20e06a9e92a28c02 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:26:18 +0100 Subject: [PATCH 36/56] noooow --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6fb3da0e..f8d79c5e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -262,7 +262,7 @@ jobs: needs: check_generate_bindings_flag steps: - run: echo "$HEAD_COMMIT_MESSAGE" - - run: echo "${{ contains(${{ env.HEAD_COMMIT_MESSAGE }}, '[generate bindings]') }}" + # - run: echo "${{ contains(${{ env.HEAD_COMMIT_MESSAGE }}, '[generate bindings]') }}" pr_generated_bindings: name: Make PR with generated bindings From 087b70bfe7a19c998cc3c6498e9e6f7b42ea38de Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:27:58 +0100 Subject: [PATCH 37/56] like this? --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f8d79c5e..cb12111d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -267,7 +267,7 @@ jobs: pr_generated_bindings: name: Make PR with generated bindings needs: [test_with_bindgen, check_generate_bindings_flag] - if: ${{ contains(env.HEAD_COMMIT_MESSAGE, '[generate bindings]') }} + if: ${{ contains($HEAD_COMMIT_MESSAGE, '[generate bindings]') }} runs-on: ubuntu-latest steps: From 36e50ce1f04fb25d775203d0f3bb18190543187a Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:32:19 +0100 Subject: [PATCH 38/56] why? --- .github/workflows/test.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cb12111d..622e5f47 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -261,13 +261,12 @@ jobs: runs-on: ubuntu-latest needs: check_generate_bindings_flag steps: - - run: echo "$HEAD_COMMIT_MESSAGE" - # - run: echo "${{ contains(${{ env.HEAD_COMMIT_MESSAGE }}, '[generate bindings]') }}" + - run: echo ${{env.HEAD_COMMIT_MESSAGE}} pr_generated_bindings: name: Make PR with generated bindings needs: [test_with_bindgen, check_generate_bindings_flag] - if: ${{ contains($HEAD_COMMIT_MESSAGE, '[generate bindings]') }} + if: ${{ contains(env.HEAD_COMMIT_MESSAGE, '[generate bindings]') }} runs-on: ubuntu-latest steps: From fafd883ecf47183863e55aa895820762af827899 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:36:19 +0100 Subject: [PATCH 39/56] just work you stupid --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 622e5f47..3dfb294d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -266,7 +266,7 @@ jobs: pr_generated_bindings: name: Make PR with generated bindings needs: [test_with_bindgen, check_generate_bindings_flag] - if: ${{ contains(env.HEAD_COMMIT_MESSAGE, '[generate bindings]') }} + if: contains(${{env.HEAD_COMMIT_MESSAGE}}, '[generate bindings]') runs-on: ubuntu-latest steps: From a2ea0e76c3ceb886c9e34ff48c15655fc9f5ad9a Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:41:11 +0100 Subject: [PATCH 40/56] now that I give up --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3dfb294d..1ba49963 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -254,19 +254,19 @@ jobs: ref: ${{ env.GITHUB_SHA }} - name: Get Head Commit Message id: get_head_commit_message - run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_ENV" + run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT" is_generated_binding_commit: name: Debug runs-on: ubuntu-latest needs: check_generate_bindings_flag steps: - - run: echo ${{env.HEAD_COMMIT_MESSAGE}} + - run: echo ${{needs.check_generate_bindings_flag.outputs.HEAD_COMMIT_MESSAGE}} pr_generated_bindings: name: Make PR with generated bindings needs: [test_with_bindgen, check_generate_bindings_flag] - if: contains(${{env.HEAD_COMMIT_MESSAGE}}, '[generate bindings]') + if: contains(needs.check_generate_bindings_flag.outputs.HEAD_COMMIT_MESSAGE, '[generate bindings]') runs-on: ubuntu-latest steps: From 823928b34074d622e17e031fe83ece9f3a38b0e0 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:45:18 +0100 Subject: [PATCH 41/56] [generate bindings] --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ba49963..f344c7db 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -261,7 +261,7 @@ jobs: runs-on: ubuntu-latest needs: check_generate_bindings_flag steps: - - run: echo ${{needs.check_generate_bindings_flag.outputs.HEAD_COMMIT_MESSAGE}} + - run: echo ${{ needs.check_generate_bindings_flag.outputs.HEAD_COMMIT_MESSAGE }} pr_generated_bindings: name: Make PR with generated bindings From a510b8d768fe9c8ac2d771390b9a438377bfec66 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:54:31 +0100 Subject: [PATCH 42/56] [generate bindings] finally... --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f344c7db..6ca8d473 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -248,6 +248,8 @@ jobs: check_generate_bindings_flag: name: Check if [generate bindings] is in latest commit message runs-on: ubuntu-latest + outputs: + head_commit_message: ${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }} steps: - uses: actions/checkout@v4 with: @@ -261,12 +263,12 @@ jobs: runs-on: ubuntu-latest needs: check_generate_bindings_flag steps: - - run: echo ${{ needs.check_generate_bindings_flag.outputs.HEAD_COMMIT_MESSAGE }} + - run: echo ${{ needs.check_generate_bindings_flag.outputs.head_commit_message }} pr_generated_bindings: name: Make PR with generated bindings needs: [test_with_bindgen, check_generate_bindings_flag] - if: contains(needs.check_generate_bindings_flag.outputs.HEAD_COMMIT_MESSAGE, '[generate bindings]') + if: contains(needs.check_generate_bindings_flag.outputs.head_commit_message, '[generate bindings]') runs-on: ubuntu-latest steps: From 99afd164c90b90e941ea92e1c5ada185ef1c531c Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 00:57:22 +0100 Subject: [PATCH 43/56] [generate bindings] --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6ca8d473..3890a74f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -253,7 +253,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ env.GITHUB_SHA }} + ref: ${{ github.event.pull_request.head.sha }} - name: Get Head Commit Message id: get_head_commit_message run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT" @@ -263,12 +263,12 @@ jobs: runs-on: ubuntu-latest needs: check_generate_bindings_flag steps: - - run: echo ${{ needs.check_generate_bindings_flag.outputs.head_commit_message }} + - run: echo "${{ needs.check_generate_bindings_flag.outputs.head_commit_message }}" pr_generated_bindings: name: Make PR with generated bindings needs: [test_with_bindgen, check_generate_bindings_flag] - if: contains(needs.check_generate_bindings_flag.outputs.head_commit_message, '[generate bindings]') + if: ${{ contains(needs.check_generate_bindings_flag.outputs.head_commit_message, '[generate bindings]') }} runs-on: ubuntu-latest steps: From 626ad9874c3a57dd551e55a8c8d0cf4ce2f9cf9f Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 01:00:14 +0100 Subject: [PATCH 44/56] [generate bindings] --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3890a74f..fd823dd0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -264,6 +264,7 @@ jobs: needs: check_generate_bindings_flag steps: - run: echo "${{ needs.check_generate_bindings_flag.outputs.head_commit_message }}" + - run: echo "${{ contains(needs.check_generate_bindings_flag.outputs.head_commit_message) }}" pr_generated_bindings: name: Make PR with generated bindings From 860d1c2bfc642c02837bf265c455e55e5a7c02ce Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 01:01:57 +0100 Subject: [PATCH 45/56] now? [generate bindings] --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fd823dd0..7038760f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -264,7 +264,7 @@ jobs: needs: check_generate_bindings_flag steps: - run: echo "${{ needs.check_generate_bindings_flag.outputs.head_commit_message }}" - - run: echo "${{ contains(needs.check_generate_bindings_flag.outputs.head_commit_message) }}" + - run: echo "${{ contains(needs.check_generate_bindings_flag.outputs.head_commit_message, '[generate bindings]') }}" pr_generated_bindings: name: Make PR with generated bindings From 548f02b654c9ef6eebd61e0a23246b5ba8dc671b Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 01:04:32 +0100 Subject: [PATCH 46/56] [generate bindings] --- .github/workflows/test.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7038760f..d3234322 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,10 +26,10 @@ jobs: # # ref. # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment - # if: | - # github.event_name != 'issue_comment' - # || (github.event.issue.pull_request && github.event.comment.author_association == 'MEMBER' && startsWith(github.event.comment.body, '/bindings')) - if: false + if: | + github.event_name != 'issue_comment' + || (github.event.issue.pull_request && github.event.comment.author_association == 'MEMBER' && startsWith(github.event.comment.body, '/bindings')) + runs-on: ${{ matrix.config.os }} name: ${{ matrix.config.os }} (R-${{ matrix.config.r }} rust-${{ matrix.config.rust-version }}-${{ matrix.config.target || 'default' }}) From 143256ada495e7e8c888029f503c76c282e13c35 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 12:32:30 +0100 Subject: [PATCH 47/56] [generate bindings] --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3234322..7bcfd811 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,8 +27,8 @@ jobs: # ref. # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#issue_comment if: | - github.event_name != 'issue_comment' - || (github.event.issue.pull_request && github.event.comment.author_association == 'MEMBER' && startsWith(github.event.comment.body, '/bindings')) + github.event_name != 'issue_comment' + || (github.event.issue.pull_request && github.event.comment.author_association == 'MEMBER' && startsWith(github.event.comment.body, '/bindings')) runs-on: ${{ matrix.config.os }} From b6d71a74729fd9faf3e0754cbb4bce6f3b64fc5a Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 12:36:23 +0100 Subject: [PATCH 48/56] Remove debug workflow. --- .github/workflows/test.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7bcfd811..53b34d1f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -258,14 +258,6 @@ jobs: id: get_head_commit_message run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT" - is_generated_binding_commit: - name: Debug - runs-on: ubuntu-latest - needs: check_generate_bindings_flag - steps: - - run: echo "${{ needs.check_generate_bindings_flag.outputs.head_commit_message }}" - - run: echo "${{ contains(needs.check_generate_bindings_flag.outputs.head_commit_message, '[generate bindings]') }}" - pr_generated_bindings: name: Make PR with generated bindings needs: [test_with_bindgen, check_generate_bindings_flag] From 0bb10cbad27879fd2f50906cf7a47f9ddc67011c Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 12:54:36 +0100 Subject: [PATCH 49/56] add github token [generate bindings] --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 53b34d1f..770f3301 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -295,6 +295,8 @@ jobs: - name: Make the generated bindings PR to the PR run: | gh pr create --title "Add generated bindings" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Gather the generated bindings and push them to generated_bindings branch. # If we need to update the bindings, create a pull request from that branch. From 32e26fa0379fff1124931cf6cf26901119fbc03c Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 12:58:20 +0100 Subject: [PATCH 50/56] don't propose a PR with the merge commit --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 770f3301..149c1376 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -267,7 +267,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ env.GITHUB_SHA }} + ref: ${{ github.event.pull_request.head.sha }} - uses: actions/download-artifact@v3 From 6c613c489cd2849fc580741311429106d4101aef Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 13:07:22 +0100 Subject: [PATCH 51/56] [generate bindings] --- .github/workflows/test.yml | 39 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 149c1376..2e9609fe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,22 +61,22 @@ jobs: - {os: windows-latest, r: 'oldrel', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', rtools-version: '42', emit-bindings: 'true'} - - {os: macOS-latest, r: 'release', rust-version: 'nightly'} - - {os: macOS-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} - - {os: macOS-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} - - {os: macOS-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} - - {os: macOS-latest, r: 'release', rust-version: 'stable', target: 'aarch64-apple-darwin', skip-tests: 'true', emit-bindings: 'true'} + # - {os: macOS-latest, r: 'release', rust-version: 'nightly'} + # - {os: macOS-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} + # - {os: macOS-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} + # - {os: macOS-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} + # - {os: macOS-latest, r: 'release', rust-version: 'stable', target: 'aarch64-apple-darwin', skip-tests: 'true', emit-bindings: 'true'} - {os: ubuntu-latest, r: 'release', rust-version: 'nightly'} - - {os: ubuntu-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'release', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'release', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} env: RSPM: ${{ matrix.config.rspm }} @@ -267,13 +267,10 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.event.pull_request.head.sha }} + ref: ${{ github.event.pull_request.head.ref }} - uses: actions/download-artifact@v3 - - name: Create branch - run: git checkout -b generated-bindings - - name: Update bindings run: | # Update or add the bindings @@ -292,11 +289,13 @@ jobs: git config --local user.name "${GITHUB_ACTOR}" git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com" git commit -m "Update bindings [skip ci]" - - name: Make the generated bindings PR to the PR - run: | - gh pr create --title "Add generated bindings" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Push to PR branch + run: git push ${{ github.event.pull_request }} + # - name: Make the generated bindings PR to the PR + # run: | + # gh pr create --title "Add generated bindings" --body "Generated bindings as a result of: ${{ github.event.pull_request.number }}" + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Gather the generated bindings and push them to generated_bindings branch. # If we need to update the bindings, create a pull request from that branch. From 31bb610d6735f346f0f90c7065789c366b291cbd Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 13:51:36 +0100 Subject: [PATCH 52/56] it doesn't actually download any artifacts [generate bindings] --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2e9609fe..cd95e0ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -68,8 +68,8 @@ jobs: # - {os: macOS-latest, r: 'release', rust-version: 'stable', target: 'aarch64-apple-darwin', skip-tests: 'true', emit-bindings: 'true'} - - {os: ubuntu-latest, r: 'release', rust-version: 'nightly'} - # - {os: ubuntu-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} + # - {os: ubuntu-latest, r: 'release', rust-version: 'nightly'} + - {os: ubuntu-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} # - {os: ubuntu-latest, r: 'release', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} # - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} From 4701d0bc20738be0b8610e846760201e5289226f Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 14:11:08 +0100 Subject: [PATCH 53/56] [generate bindings] --- .github/workflows/test.yml | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cd95e0ca..bd7277b2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -61,22 +61,22 @@ jobs: - {os: windows-latest, r: 'oldrel', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', rtools-version: '42', emit-bindings: 'true'} - # - {os: macOS-latest, r: 'release', rust-version: 'nightly'} - # - {os: macOS-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} - # - {os: macOS-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} - # - {os: macOS-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} - # - {os: macOS-latest, r: 'release', rust-version: 'stable', target: 'aarch64-apple-darwin', skip-tests: 'true', emit-bindings: 'true'} + - {os: macOS-latest, r: 'release', rust-version: 'nightly'} + - {os: macOS-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} + - {os: macOS-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} + - {os: macOS-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} + - {os: macOS-latest, r: 'release', rust-version: 'stable', target: 'aarch64-apple-darwin', skip-tests: 'true', emit-bindings: 'true'} - # - {os: ubuntu-latest, r: 'release', rust-version: 'nightly'} + - {os: ubuntu-latest, r: 'release', rust-version: 'nightly'} - {os: ubuntu-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} - # - {os: ubuntu-latest, r: 'release', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} + - {os: ubuntu-latest, r: 'release', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} - # - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} - # - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} + - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} + - {os: ubuntu-latest, r: 'devel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} - # - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} - # - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} + - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} + - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} env: RSPM: ${{ matrix.config.rspm }} @@ -268,7 +268,7 @@ jobs: - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} - + - uses: actions/download-artifact@v3 - name: Update bindings @@ -290,12 +290,7 @@ jobs: git config --local user.email "${GITHUB_ACTOR}@users.noreply.github.com" git commit -m "Update bindings [skip ci]" - name: Push to PR branch - run: git push ${{ github.event.pull_request }} - # - name: Make the generated bindings PR to the PR - # run: | - # gh pr create --title "Add generated bindings" --body "Generated bindings as a result of: ${{ github.event.pull_request.number }}" - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: git push # Gather the generated bindings and push them to generated_bindings branch. # If we need to update the bindings, create a pull request from that branch. From 1760f5040455651126a52f7e7e822969636e9cfd Mon Sep 17 00:00:00 2001 From: CGMossa Date: Fri, 17 Nov 2023 13:13:16 +0000 Subject: [PATCH 54/56] Update bindings [skip ci] --- bindings/bindings-linux-x86_64-R4.3.rs | 27 -------------------------- 1 file changed, 27 deletions(-) diff --git a/bindings/bindings-linux-x86_64-R4.3.rs b/bindings/bindings-linux-x86_64-R4.3.rs index 07d7019e..75b91f1e 100644 --- a/bindings/bindings-linux-x86_64-R4.3.rs +++ b/bindings/bindings-linux-x86_64-R4.3.rs @@ -98,33 +98,6 @@ pub const HAVE_ALLOCA_H: u32 = 1; pub const HAVE_UINTPTR_T: u32 = 1; pub const R_XLEN_T_MAX: u64 = 4503599627370496; pub const R_SHORT_LEN_MAX: u32 = 2147483647; -pub const NILSXP: u32 = 0; -pub const SYMSXP: u32 = 1; -pub const LISTSXP: u32 = 2; -pub const CLOSXP: u32 = 3; -pub const ENVSXP: u32 = 4; -pub const PROMSXP: u32 = 5; -pub const LANGSXP: u32 = 6; -pub const SPECIALSXP: u32 = 7; -pub const BUILTINSXP: u32 = 8; -pub const CHARSXP: u32 = 9; -pub const LGLSXP: u32 = 10; -pub const INTSXP: u32 = 13; -pub const REALSXP: u32 = 14; -pub const CPLXSXP: u32 = 15; -pub const STRSXP: u32 = 16; -pub const DOTSXP: u32 = 17; -pub const ANYSXP: u32 = 18; -pub const VECSXP: u32 = 19; -pub const EXPRSXP: u32 = 20; -pub const BCODESXP: u32 = 21; -pub const EXTPTRSXP: u32 = 22; -pub const WEAKREFSXP: u32 = 23; -pub const RAWSXP: u32 = 24; -pub const S4SXP: u32 = 25; -pub const NEWSXP: u32 = 30; -pub const FREESXP: u32 = 31; -pub const FUNSXP: u32 = 99; pub const TYPE_BITS: u32 = 5; pub const MAX_NUM_SEXPTYPE: u32 = 32; pub const NAMEDMAX: u32 = 7; From 67419a50a0142c54efc9b94309449d71fdf90372 Mon Sep 17 00:00:00 2001 From: cgmossa Date: Fri, 17 Nov 2023 15:04:57 +0100 Subject: [PATCH 55/56] Clean-up --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bd7277b2..90151129 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -250,6 +250,7 @@ jobs: runs-on: ubuntu-latest outputs: head_commit_message: ${{ steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE }} + generate_bindings: ${{ contains(steps.get_head_commit_message.outputs.HEAD_COMMIT_MESSAGE, '[generate bindings]') }} steps: - uses: actions/checkout@v4 with: @@ -261,9 +262,8 @@ jobs: pr_generated_bindings: name: Make PR with generated bindings needs: [test_with_bindgen, check_generate_bindings_flag] - if: ${{ contains(needs.check_generate_bindings_flag.outputs.head_commit_message, '[generate bindings]') }} + if: needs.check_generate_bindings_flag.outputs.generate_bindings runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 with: From 67688650d034832cad64f33ea3d288ff81ad46b0 Mon Sep 17 00:00:00 2001 From: CGMossa Date: Fri, 17 Nov 2023 14:14:19 +0000 Subject: [PATCH 56/56] Update bindings [skip ci] --- bindings/bindings-linux-aarch64-R4.2.rs | 27 ------------ bindings/bindings-linux-aarch64-R4.3.rs | 27 ------------ bindings/bindings-linux-aarch64-R4.4-devel.rs | 28 ------------- bindings/bindings-linux-x86_64-R4.2.rs | 27 ------------ bindings/bindings-linux-x86_64-R4.4-devel.rs | 28 ------------- bindings/bindings-macos-aarch64-R4.3.rs | 27 ------------ bindings/bindings-macos-x86_64-R4.2.rs | 27 ------------ bindings/bindings-macos-x86_64-R4.3.rs | 31 +------------- bindings/bindings-macos-x86_64-R4.4-devel.rs | 28 ------------- bindings/bindings-windows-x86_64-R4.2.rs | 41 ++++--------------- bindings/bindings-windows-x86_64-R4.3.rs | 41 ++++--------------- .../bindings-windows-x86_64-R4.4-devel.rs | 32 +-------------- 12 files changed, 18 insertions(+), 346 deletions(-) diff --git a/bindings/bindings-linux-aarch64-R4.2.rs b/bindings/bindings-linux-aarch64-R4.2.rs index 80560457..94849e48 100644 --- a/bindings/bindings-linux-aarch64-R4.2.rs +++ b/bindings/bindings-linux-aarch64-R4.2.rs @@ -97,33 +97,6 @@ pub const HAVE_ALLOCA_H: u32 = 1; pub const HAVE_UINTPTR_T: u32 = 1; pub const R_XLEN_T_MAX: u64 = 4503599627370496; pub const R_SHORT_LEN_MAX: u32 = 2147483647; -pub const NILSXP: u32 = 0; -pub const SYMSXP: u32 = 1; -pub const LISTSXP: u32 = 2; -pub const CLOSXP: u32 = 3; -pub const ENVSXP: u32 = 4; -pub const PROMSXP: u32 = 5; -pub const LANGSXP: u32 = 6; -pub const SPECIALSXP: u32 = 7; -pub const BUILTINSXP: u32 = 8; -pub const CHARSXP: u32 = 9; -pub const LGLSXP: u32 = 10; -pub const INTSXP: u32 = 13; -pub const REALSXP: u32 = 14; -pub const CPLXSXP: u32 = 15; -pub const STRSXP: u32 = 16; -pub const DOTSXP: u32 = 17; -pub const ANYSXP: u32 = 18; -pub const VECSXP: u32 = 19; -pub const EXPRSXP: u32 = 20; -pub const BCODESXP: u32 = 21; -pub const EXTPTRSXP: u32 = 22; -pub const WEAKREFSXP: u32 = 23; -pub const RAWSXP: u32 = 24; -pub const S4SXP: u32 = 25; -pub const NEWSXP: u32 = 30; -pub const FREESXP: u32 = 31; -pub const FUNSXP: u32 = 99; pub const TYPE_BITS: u32 = 5; pub const MAX_NUM_SEXPTYPE: u32 = 32; pub const NAMEDMAX: u32 = 7; diff --git a/bindings/bindings-linux-aarch64-R4.3.rs b/bindings/bindings-linux-aarch64-R4.3.rs index f1c80fd3..fe3e5f03 100644 --- a/bindings/bindings-linux-aarch64-R4.3.rs +++ b/bindings/bindings-linux-aarch64-R4.3.rs @@ -98,33 +98,6 @@ pub const HAVE_ALLOCA_H: u32 = 1; pub const HAVE_UINTPTR_T: u32 = 1; pub const R_XLEN_T_MAX: u64 = 4503599627370496; pub const R_SHORT_LEN_MAX: u32 = 2147483647; -pub const NILSXP: u32 = 0; -pub const SYMSXP: u32 = 1; -pub const LISTSXP: u32 = 2; -pub const CLOSXP: u32 = 3; -pub const ENVSXP: u32 = 4; -pub const PROMSXP: u32 = 5; -pub const LANGSXP: u32 = 6; -pub const SPECIALSXP: u32 = 7; -pub const BUILTINSXP: u32 = 8; -pub const CHARSXP: u32 = 9; -pub const LGLSXP: u32 = 10; -pub const INTSXP: u32 = 13; -pub const REALSXP: u32 = 14; -pub const CPLXSXP: u32 = 15; -pub const STRSXP: u32 = 16; -pub const DOTSXP: u32 = 17; -pub const ANYSXP: u32 = 18; -pub const VECSXP: u32 = 19; -pub const EXPRSXP: u32 = 20; -pub const BCODESXP: u32 = 21; -pub const EXTPTRSXP: u32 = 22; -pub const WEAKREFSXP: u32 = 23; -pub const RAWSXP: u32 = 24; -pub const S4SXP: u32 = 25; -pub const NEWSXP: u32 = 30; -pub const FREESXP: u32 = 31; -pub const FUNSXP: u32 = 99; pub const TYPE_BITS: u32 = 5; pub const MAX_NUM_SEXPTYPE: u32 = 32; pub const NAMEDMAX: u32 = 7; diff --git a/bindings/bindings-linux-aarch64-R4.4-devel.rs b/bindings/bindings-linux-aarch64-R4.4-devel.rs index 6e1674c8..dae5fe00 100644 --- a/bindings/bindings-linux-aarch64-R4.4-devel.rs +++ b/bindings/bindings-linux-aarch64-R4.4-devel.rs @@ -98,34 +98,6 @@ pub const HAVE_ALLOCA_H: u32 = 1; pub const HAVE_UINTPTR_T: u32 = 1; pub const R_XLEN_T_MAX: u64 = 4503599627370496; pub const R_SHORT_LEN_MAX: u32 = 2147483647; -pub const NILSXP: u32 = 0; -pub const SYMSXP: u32 = 1; -pub const LISTSXP: u32 = 2; -pub const CLOSXP: u32 = 3; -pub const ENVSXP: u32 = 4; -pub const PROMSXP: u32 = 5; -pub const LANGSXP: u32 = 6; -pub const SPECIALSXP: u32 = 7; -pub const BUILTINSXP: u32 = 8; -pub const CHARSXP: u32 = 9; -pub const LGLSXP: u32 = 10; -pub const INTSXP: u32 = 13; -pub const REALSXP: u32 = 14; -pub const CPLXSXP: u32 = 15; -pub const STRSXP: u32 = 16; -pub const DOTSXP: u32 = 17; -pub const ANYSXP: u32 = 18; -pub const VECSXP: u32 = 19; -pub const EXPRSXP: u32 = 20; -pub const BCODESXP: u32 = 21; -pub const EXTPTRSXP: u32 = 22; -pub const WEAKREFSXP: u32 = 23; -pub const RAWSXP: u32 = 24; -pub const OBJSXP: u32 = 25; -pub const S4SXP: u32 = 25; -pub const NEWSXP: u32 = 30; -pub const FREESXP: u32 = 31; -pub const FUNSXP: u32 = 99; pub const TYPE_BITS: u32 = 5; pub const MAX_NUM_SEXPTYPE: u32 = 32; pub const NAMEDMAX: u32 = 7; diff --git a/bindings/bindings-linux-x86_64-R4.2.rs b/bindings/bindings-linux-x86_64-R4.2.rs index c3367eab..34746751 100644 --- a/bindings/bindings-linux-x86_64-R4.2.rs +++ b/bindings/bindings-linux-x86_64-R4.2.rs @@ -97,33 +97,6 @@ pub const HAVE_ALLOCA_H: u32 = 1; pub const HAVE_UINTPTR_T: u32 = 1; pub const R_XLEN_T_MAX: u64 = 4503599627370496; pub const R_SHORT_LEN_MAX: u32 = 2147483647; -pub const NILSXP: u32 = 0; -pub const SYMSXP: u32 = 1; -pub const LISTSXP: u32 = 2; -pub const CLOSXP: u32 = 3; -pub const ENVSXP: u32 = 4; -pub const PROMSXP: u32 = 5; -pub const LANGSXP: u32 = 6; -pub const SPECIALSXP: u32 = 7; -pub const BUILTINSXP: u32 = 8; -pub const CHARSXP: u32 = 9; -pub const LGLSXP: u32 = 10; -pub const INTSXP: u32 = 13; -pub const REALSXP: u32 = 14; -pub const CPLXSXP: u32 = 15; -pub const STRSXP: u32 = 16; -pub const DOTSXP: u32 = 17; -pub const ANYSXP: u32 = 18; -pub const VECSXP: u32 = 19; -pub const EXPRSXP: u32 = 20; -pub const BCODESXP: u32 = 21; -pub const EXTPTRSXP: u32 = 22; -pub const WEAKREFSXP: u32 = 23; -pub const RAWSXP: u32 = 24; -pub const S4SXP: u32 = 25; -pub const NEWSXP: u32 = 30; -pub const FREESXP: u32 = 31; -pub const FUNSXP: u32 = 99; pub const TYPE_BITS: u32 = 5; pub const MAX_NUM_SEXPTYPE: u32 = 32; pub const NAMEDMAX: u32 = 7; diff --git a/bindings/bindings-linux-x86_64-R4.4-devel.rs b/bindings/bindings-linux-x86_64-R4.4-devel.rs index 85e5ec01..7d43d268 100644 --- a/bindings/bindings-linux-x86_64-R4.4-devel.rs +++ b/bindings/bindings-linux-x86_64-R4.4-devel.rs @@ -98,34 +98,6 @@ pub const HAVE_ALLOCA_H: u32 = 1; pub const HAVE_UINTPTR_T: u32 = 1; pub const R_XLEN_T_MAX: u64 = 4503599627370496; pub const R_SHORT_LEN_MAX: u32 = 2147483647; -pub const NILSXP: u32 = 0; -pub const SYMSXP: u32 = 1; -pub const LISTSXP: u32 = 2; -pub const CLOSXP: u32 = 3; -pub const ENVSXP: u32 = 4; -pub const PROMSXP: u32 = 5; -pub const LANGSXP: u32 = 6; -pub const SPECIALSXP: u32 = 7; -pub const BUILTINSXP: u32 = 8; -pub const CHARSXP: u32 = 9; -pub const LGLSXP: u32 = 10; -pub const INTSXP: u32 = 13; -pub const REALSXP: u32 = 14; -pub const CPLXSXP: u32 = 15; -pub const STRSXP: u32 = 16; -pub const DOTSXP: u32 = 17; -pub const ANYSXP: u32 = 18; -pub const VECSXP: u32 = 19; -pub const EXPRSXP: u32 = 20; -pub const BCODESXP: u32 = 21; -pub const EXTPTRSXP: u32 = 22; -pub const WEAKREFSXP: u32 = 23; -pub const RAWSXP: u32 = 24; -pub const OBJSXP: u32 = 25; -pub const S4SXP: u32 = 25; -pub const NEWSXP: u32 = 30; -pub const FREESXP: u32 = 31; -pub const FUNSXP: u32 = 99; pub const TYPE_BITS: u32 = 5; pub const MAX_NUM_SEXPTYPE: u32 = 32; pub const NAMEDMAX: u32 = 7; diff --git a/bindings/bindings-macos-aarch64-R4.3.rs b/bindings/bindings-macos-aarch64-R4.3.rs index ed38009b..e03b0d04 100644 --- a/bindings/bindings-macos-aarch64-R4.3.rs +++ b/bindings/bindings-macos-aarch64-R4.3.rs @@ -100,33 +100,6 @@ pub const HAVE_ALLOCA_H: u32 = 1; pub const HAVE_UINTPTR_T: u32 = 1; pub const R_XLEN_T_MAX: u64 = 4503599627370496; pub const R_SHORT_LEN_MAX: u32 = 2147483647; -pub const NILSXP: u32 = 0; -pub const SYMSXP: u32 = 1; -pub const LISTSXP: u32 = 2; -pub const CLOSXP: u32 = 3; -pub const ENVSXP: u32 = 4; -pub const PROMSXP: u32 = 5; -pub const LANGSXP: u32 = 6; -pub const SPECIALSXP: u32 = 7; -pub const BUILTINSXP: u32 = 8; -pub const CHARSXP: u32 = 9; -pub const LGLSXP: u32 = 10; -pub const INTSXP: u32 = 13; -pub const REALSXP: u32 = 14; -pub const CPLXSXP: u32 = 15; -pub const STRSXP: u32 = 16; -pub const DOTSXP: u32 = 17; -pub const ANYSXP: u32 = 18; -pub const VECSXP: u32 = 19; -pub const EXPRSXP: u32 = 20; -pub const BCODESXP: u32 = 21; -pub const EXTPTRSXP: u32 = 22; -pub const WEAKREFSXP: u32 = 23; -pub const RAWSXP: u32 = 24; -pub const S4SXP: u32 = 25; -pub const NEWSXP: u32 = 30; -pub const FREESXP: u32 = 31; -pub const FUNSXP: u32 = 99; pub const TYPE_BITS: u32 = 5; pub const MAX_NUM_SEXPTYPE: u32 = 32; pub const NAMEDMAX: u32 = 7; diff --git a/bindings/bindings-macos-x86_64-R4.2.rs b/bindings/bindings-macos-x86_64-R4.2.rs index 0effeabf..acf37172 100644 --- a/bindings/bindings-macos-x86_64-R4.2.rs +++ b/bindings/bindings-macos-x86_64-R4.2.rs @@ -99,33 +99,6 @@ pub const HAVE_ALLOCA_H: u32 = 1; pub const HAVE_UINTPTR_T: u32 = 1; pub const R_XLEN_T_MAX: u64 = 4503599627370496; pub const R_SHORT_LEN_MAX: u32 = 2147483647; -pub const NILSXP: u32 = 0; -pub const SYMSXP: u32 = 1; -pub const LISTSXP: u32 = 2; -pub const CLOSXP: u32 = 3; -pub const ENVSXP: u32 = 4; -pub const PROMSXP: u32 = 5; -pub const LANGSXP: u32 = 6; -pub const SPECIALSXP: u32 = 7; -pub const BUILTINSXP: u32 = 8; -pub const CHARSXP: u32 = 9; -pub const LGLSXP: u32 = 10; -pub const INTSXP: u32 = 13; -pub const REALSXP: u32 = 14; -pub const CPLXSXP: u32 = 15; -pub const STRSXP: u32 = 16; -pub const DOTSXP: u32 = 17; -pub const ANYSXP: u32 = 18; -pub const VECSXP: u32 = 19; -pub const EXPRSXP: u32 = 20; -pub const BCODESXP: u32 = 21; -pub const EXTPTRSXP: u32 = 22; -pub const WEAKREFSXP: u32 = 23; -pub const RAWSXP: u32 = 24; -pub const S4SXP: u32 = 25; -pub const NEWSXP: u32 = 30; -pub const FREESXP: u32 = 31; -pub const FUNSXP: u32 = 99; pub const TYPE_BITS: u32 = 5; pub const MAX_NUM_SEXPTYPE: u32 = 32; pub const NAMEDMAX: u32 = 7; diff --git a/bindings/bindings-macos-x86_64-R4.3.rs b/bindings/bindings-macos-x86_64-R4.3.rs index 26dad2f3..447f8b77 100644 --- a/bindings/bindings-macos-x86_64-R4.3.rs +++ b/bindings/bindings-macos-x86_64-R4.3.rs @@ -1,8 +1,8 @@ /* automatically generated by rust-bindgen 0.69.1 */ /* libR-sys version: 0.6.0 */ -/* bindgen clang version: Homebrew clang version 17.0.3 */ -/* clang-rs version: Homebrew clang version 17.0.3 */ +/* bindgen clang version: Homebrew clang version 17.0.2 */ +/* clang-rs version: Homebrew clang version 17.0.2 */ /* r version: 4.3.2 */ #[repr(C)] @@ -100,33 +100,6 @@ pub const HAVE_ALLOCA_H: u32 = 1; pub const HAVE_UINTPTR_T: u32 = 1; pub const R_XLEN_T_MAX: u64 = 4503599627370496; pub const R_SHORT_LEN_MAX: u32 = 2147483647; -pub const NILSXP: u32 = 0; -pub const SYMSXP: u32 = 1; -pub const LISTSXP: u32 = 2; -pub const CLOSXP: u32 = 3; -pub const ENVSXP: u32 = 4; -pub const PROMSXP: u32 = 5; -pub const LANGSXP: u32 = 6; -pub const SPECIALSXP: u32 = 7; -pub const BUILTINSXP: u32 = 8; -pub const CHARSXP: u32 = 9; -pub const LGLSXP: u32 = 10; -pub const INTSXP: u32 = 13; -pub const REALSXP: u32 = 14; -pub const CPLXSXP: u32 = 15; -pub const STRSXP: u32 = 16; -pub const DOTSXP: u32 = 17; -pub const ANYSXP: u32 = 18; -pub const VECSXP: u32 = 19; -pub const EXPRSXP: u32 = 20; -pub const BCODESXP: u32 = 21; -pub const EXTPTRSXP: u32 = 22; -pub const WEAKREFSXP: u32 = 23; -pub const RAWSXP: u32 = 24; -pub const S4SXP: u32 = 25; -pub const NEWSXP: u32 = 30; -pub const FREESXP: u32 = 31; -pub const FUNSXP: u32 = 99; pub const TYPE_BITS: u32 = 5; pub const MAX_NUM_SEXPTYPE: u32 = 32; pub const NAMEDMAX: u32 = 7; diff --git a/bindings/bindings-macos-x86_64-R4.4-devel.rs b/bindings/bindings-macos-x86_64-R4.4-devel.rs index 494018cd..9ed6a24b 100644 --- a/bindings/bindings-macos-x86_64-R4.4-devel.rs +++ b/bindings/bindings-macos-x86_64-R4.4-devel.rs @@ -100,34 +100,6 @@ pub const HAVE_ALLOCA_H: u32 = 1; pub const HAVE_UINTPTR_T: u32 = 1; pub const R_XLEN_T_MAX: u64 = 4503599627370496; pub const R_SHORT_LEN_MAX: u32 = 2147483647; -pub const NILSXP: u32 = 0; -pub const SYMSXP: u32 = 1; -pub const LISTSXP: u32 = 2; -pub const CLOSXP: u32 = 3; -pub const ENVSXP: u32 = 4; -pub const PROMSXP: u32 = 5; -pub const LANGSXP: u32 = 6; -pub const SPECIALSXP: u32 = 7; -pub const BUILTINSXP: u32 = 8; -pub const CHARSXP: u32 = 9; -pub const LGLSXP: u32 = 10; -pub const INTSXP: u32 = 13; -pub const REALSXP: u32 = 14; -pub const CPLXSXP: u32 = 15; -pub const STRSXP: u32 = 16; -pub const DOTSXP: u32 = 17; -pub const ANYSXP: u32 = 18; -pub const VECSXP: u32 = 19; -pub const EXPRSXP: u32 = 20; -pub const BCODESXP: u32 = 21; -pub const EXTPTRSXP: u32 = 22; -pub const WEAKREFSXP: u32 = 23; -pub const RAWSXP: u32 = 24; -pub const OBJSXP: u32 = 25; -pub const S4SXP: u32 = 25; -pub const NEWSXP: u32 = 30; -pub const FREESXP: u32 = 31; -pub const FUNSXP: u32 = 99; pub const TYPE_BITS: u32 = 5; pub const MAX_NUM_SEXPTYPE: u32 = 32; pub const NAMEDMAX: u32 = 7; diff --git a/bindings/bindings-windows-x86_64-R4.2.rs b/bindings/bindings-windows-x86_64-R4.2.rs index 69467abd..6c480dcf 100644 --- a/bindings/bindings-windows-x86_64-R4.2.rs +++ b/bindings/bindings-windows-x86_64-R4.2.rs @@ -1,10 +1,10 @@ -/* automatically generated by rust-bindgen 0.69.1 */ - -/* libR-sys version: 0.6.0 */ -/* bindgen clang version: clang version 16.0.6 */ -/* clang-rs version: clang version 16.0.6 */ -/* r version: 4.2.3 */ - +/* automatically generated by rust-bindgen 0.69.1 */ + +/* libR-sys version: 0.6.0 */ +/* bindgen clang version: clang version 16.0.6 */ +/* clang-rs version: clang version 16.0.6 */ +/* r version: 4.2.3 */ + pub const INT_MIN: i32 = -2147483648; pub const SINGLESXP: u32 = 302; pub const R_LEN_T_MAX: u32 = 2147483647; @@ -17,33 +17,6 @@ pub const SIZEOF_SIZE_T: u32 = 8; pub const HAVE_UINTPTR_T: u32 = 1; pub const R_XLEN_T_MAX: u64 = 4503599627370496; pub const R_SHORT_LEN_MAX: u32 = 2147483647; -pub const NILSXP: u32 = 0; -pub const SYMSXP: u32 = 1; -pub const LISTSXP: u32 = 2; -pub const CLOSXP: u32 = 3; -pub const ENVSXP: u32 = 4; -pub const PROMSXP: u32 = 5; -pub const LANGSXP: u32 = 6; -pub const SPECIALSXP: u32 = 7; -pub const BUILTINSXP: u32 = 8; -pub const CHARSXP: u32 = 9; -pub const LGLSXP: u32 = 10; -pub const INTSXP: u32 = 13; -pub const REALSXP: u32 = 14; -pub const CPLXSXP: u32 = 15; -pub const STRSXP: u32 = 16; -pub const DOTSXP: u32 = 17; -pub const ANYSXP: u32 = 18; -pub const VECSXP: u32 = 19; -pub const EXPRSXP: u32 = 20; -pub const BCODESXP: u32 = 21; -pub const EXTPTRSXP: u32 = 22; -pub const WEAKREFSXP: u32 = 23; -pub const RAWSXP: u32 = 24; -pub const S4SXP: u32 = 25; -pub const NEWSXP: u32 = 30; -pub const FREESXP: u32 = 31; -pub const FUNSXP: u32 = 99; pub const TYPE_BITS: u32 = 5; pub const MAX_NUM_SEXPTYPE: u32 = 32; pub const NAMEDMAX: u32 = 7; diff --git a/bindings/bindings-windows-x86_64-R4.3.rs b/bindings/bindings-windows-x86_64-R4.3.rs index 90ae282c..68d42f0f 100644 --- a/bindings/bindings-windows-x86_64-R4.3.rs +++ b/bindings/bindings-windows-x86_64-R4.3.rs @@ -1,10 +1,10 @@ -/* automatically generated by rust-bindgen 0.69.1 */ - -/* libR-sys version: 0.6.0 */ -/* bindgen clang version: clang version 16.0.6 */ -/* clang-rs version: clang version 16.0.6 */ -/* r version: 4.3.2 */ - +/* automatically generated by rust-bindgen 0.69.1 */ + +/* libR-sys version: 0.6.0 */ +/* bindgen clang version: clang version 16.0.6 */ +/* clang-rs version: clang version 16.0.6 */ +/* r version: 4.3.2 */ + pub const INT_MIN: i32 = -2147483648; pub const SINGLESXP: u32 = 302; pub const R_LEN_T_MAX: u32 = 2147483647; @@ -18,33 +18,6 @@ pub const SIZEOF_SIZE_T: u32 = 8; pub const HAVE_UINTPTR_T: u32 = 1; pub const R_XLEN_T_MAX: u64 = 4503599627370496; pub const R_SHORT_LEN_MAX: u32 = 2147483647; -pub const NILSXP: u32 = 0; -pub const SYMSXP: u32 = 1; -pub const LISTSXP: u32 = 2; -pub const CLOSXP: u32 = 3; -pub const ENVSXP: u32 = 4; -pub const PROMSXP: u32 = 5; -pub const LANGSXP: u32 = 6; -pub const SPECIALSXP: u32 = 7; -pub const BUILTINSXP: u32 = 8; -pub const CHARSXP: u32 = 9; -pub const LGLSXP: u32 = 10; -pub const INTSXP: u32 = 13; -pub const REALSXP: u32 = 14; -pub const CPLXSXP: u32 = 15; -pub const STRSXP: u32 = 16; -pub const DOTSXP: u32 = 17; -pub const ANYSXP: u32 = 18; -pub const VECSXP: u32 = 19; -pub const EXPRSXP: u32 = 20; -pub const BCODESXP: u32 = 21; -pub const EXTPTRSXP: u32 = 22; -pub const WEAKREFSXP: u32 = 23; -pub const RAWSXP: u32 = 24; -pub const S4SXP: u32 = 25; -pub const NEWSXP: u32 = 30; -pub const FREESXP: u32 = 31; -pub const FUNSXP: u32 = 99; pub const TYPE_BITS: u32 = 5; pub const MAX_NUM_SEXPTYPE: u32 = 32; pub const NAMEDMAX: u32 = 7; diff --git a/bindings/bindings-windows-x86_64-R4.4-devel.rs b/bindings/bindings-windows-x86_64-R4.4-devel.rs index a5d5b745..0f27a73a 100644 --- a/bindings/bindings-windows-x86_64-R4.4-devel.rs +++ b/bindings/bindings-windows-x86_64-R4.4-devel.rs @@ -18,34 +18,6 @@ pub const SIZEOF_SIZE_T: u32 = 8; pub const HAVE_UINTPTR_T: u32 = 1; pub const R_XLEN_T_MAX: u64 = 4503599627370496; pub const R_SHORT_LEN_MAX: u32 = 2147483647; -pub const NILSXP: u32 = 0; -pub const SYMSXP: u32 = 1; -pub const LISTSXP: u32 = 2; -pub const CLOSXP: u32 = 3; -pub const ENVSXP: u32 = 4; -pub const PROMSXP: u32 = 5; -pub const LANGSXP: u32 = 6; -pub const SPECIALSXP: u32 = 7; -pub const BUILTINSXP: u32 = 8; -pub const CHARSXP: u32 = 9; -pub const LGLSXP: u32 = 10; -pub const INTSXP: u32 = 13; -pub const REALSXP: u32 = 14; -pub const CPLXSXP: u32 = 15; -pub const STRSXP: u32 = 16; -pub const DOTSXP: u32 = 17; -pub const ANYSXP: u32 = 18; -pub const VECSXP: u32 = 19; -pub const EXPRSXP: u32 = 20; -pub const BCODESXP: u32 = 21; -pub const EXTPTRSXP: u32 = 22; -pub const WEAKREFSXP: u32 = 23; -pub const RAWSXP: u32 = 24; -pub const OBJSXP: u32 = 25; -pub const S4SXP: u32 = 25; -pub const NEWSXP: u32 = 30; -pub const FREESXP: u32 = 31; -pub const FUNSXP: u32 = 99; pub const TYPE_BITS: u32 = 5; pub const MAX_NUM_SEXPTYPE: u32 = 32; pub const NAMEDMAX: u32 = 7; @@ -83,8 +55,8 @@ pub const R_MINOR: &[u8; 4] = b"4.0\0"; pub const R_STATUS: &[u8; 29] = b"Under development (unstable)\0"; pub const R_YEAR: &[u8; 5] = b"2023\0"; pub const R_MONTH: &[u8; 3] = b"11\0"; -pub const R_DAY: &[u8; 3] = b"14\0"; -pub const R_SVN_REVISION: u32 = 85524; +pub const R_DAY: &[u8; 3] = b"16\0"; +pub const R_SVN_REVISION: u32 = 85542; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15;