diff --git a/.Rbuildignore b/.Rbuildignore index 7736b0e..21c19f9 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,6 +1,7 @@ ^\.Rproj\.user$ ^.*\.Rproj$ ^\.claude$ +^\.corteza$ ^CLAUDE\.md$ ^SECURITY\.md$ ^\.git$ diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c621330..decb6b7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -56,3 +56,41 @@ jobs: - name: Check warnings and SAS coverage run: Rscript .github/check-results.R + + windows: + # r-ci bootstraps Linux and macOS only. This leg links librust.a with + # Rtools against the newest stable rustc, which is how 0.3.0.1 broke: + # rustc 1.100 std needs -lsynchronization. + runs-on: windows-latest + defaults: + run: + shell: bash + + steps: + - uses: actions/checkout@v6 + + - uses: r-lib/actions/setup-r@v2 + with: + r-version: release + rtools-version: "" + + - name: Install Rust toolchain + run: | + rustup update stable + rustup default stable + rustup target add x86_64-pc-windows-gnu + rustc --version + + - name: Dependencies + # One line: Windows Rscript splits a multi-line -e string. + run: | + Rscript -e 'options(repos = "https://cloud.r-project.org")' \ + -e 'install.packages(c("tinytest", "simplermarkdown"))' + + - name: Test + run: | + R CMD build --no-manual . + R CMD check --no-manual --as-cran mx.crypto_*.tar.gz + + - name: Check warnings and SAS coverage + run: Rscript .github/check-results.R diff --git a/DESCRIPTION b/DESCRIPTION index 38838ca..2e69947 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: mx.crypto Type: Package Title: Matrix End-to-End Encryption Primitives -Version: 0.3.0.1 -Date: 2026-11-10 +Version: 0.3.0.2 +Date: 2026-11-23 Authors@R: c( person("Troy", "Hernandez", role = c("aut", "cre"), email = "troy@cornball.ai", diff --git a/NEWS.md b/NEWS.md index 5709edc..fb1688d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,11 @@ +# mx.crypto 0.3.0.2 + +* Fix: link the Windows build against `-lsynchronization`. From rustc + 1.100.0 the Rust standard library calls `WaitOnAddress` and + `WakeByAddressSingle`/`WakeByAddressAll`, so the Rtools link failed on + every Windows build with the newest stable Rust. No R code or API + changes. + # mx.crypto 0.3.0.1 * Fix: update the bundled 'matrix-pickle' and 'matrix-pickle-derive' crates diff --git a/src/Makevars.win.in b/src/Makevars.win.in index 4929e00..aa8b2e2 100644 --- a/src/Makevars.win.in +++ b/src/Makevars.win.in @@ -10,7 +10,9 @@ CARGO_ENV = @CARGO_ENV@ @RUST_DEPS@ -PKG_LIBS = $(RUST_LIB) -lws2_32 -ladvapi32 -luserenv -lbcrypt -lntdll +# Rust 1.100 std calls WaitOnAddress and WakeByAddress*, which live in +# synchronization; without it the Rtools link fails. +PKG_LIBS = $(RUST_LIB) -lws2_32 -ladvapi32 -luserenv -lbcrypt -lntdll -lsynchronization all: $(SHLIB)