Skip to content

Overhaul rust library to use cmake + cxx, remove old api system#57

Merged
ChristopherJMiller merged 3 commits into
nextfrom
chris/cxx-rs
Sep 30, 2025
Merged

Overhaul rust library to use cmake + cxx, remove old api system#57
ChristopherJMiller merged 3 commits into
nextfrom
chris/cxx-rs

Conversation

@ChristopherJMiller

@ChristopherJMiller ChristopherJMiller commented Sep 25, 2025

Copy link
Copy Markdown
Member

Starting hook up the cxx crate as a simpler way for us to bridge logic between rust and libmahjong! It does a bunch of heavy macro work to let us bring over shared logic on a class by class basis very nicely. To start with the process, this PR brings over winds and pieces, and gets some test coverage on them!

I've also removed the C API library in this PR, as this will replace it. Additionally, I had to do some additional tinkering to the nix flake to get the dev shell working, I hope I didn't break anything (we'll find out)

@github-actions

Copy link
Copy Markdown

Coverage Report

No coverage data available.

@github-actions

github-actions Bot commented Sep 25, 2025

Copy link
Copy Markdown
TestsPassed ✅SkippedFailed
JUnit Test Report148 ran148 passed0 skipped0 failed

@aliceagain aliceagain left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me! very cool

@ChristopherJMiller ChristopherJMiller merged commit 2e641f6 into next Sep 30, 2025
7 checks passed
@aliceagain aliceagain deleted the chris/cxx-rs branch September 30, 2025 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants