Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
^\.Rproj\.user$
^.*\.Rproj$
^\.claude$
^\.corteza$
^CLAUDE\.md$
^SECURITY\.md$
^\.git$
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/Makevars.win.in
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Loading