Skip to content

C++#13

Merged
plebhash merged 6 commits into
stratum-mining:mainfrom
plebhash:2026-04-27-cpp
May 1, 2026
Merged

C++#13
plebhash merged 6 commits into
stratum-mining:mainfrom
plebhash:2026-04-27-cpp

Conversation

@plebhash

@plebhash plebhash commented Apr 27, 2026

Copy link
Copy Markdown
Member

close #4

@plebhash plebhash changed the title 2026 04 27 cpp C++ Apr 27, 2026
for example, variants like `Sv2Message::SetupConnection(SetupConnection)` would produce C++ with unnamed field `SetupConnection ;`

coverting these to named fields like `Sv2Message::SetupConnection { message: SetupConnection }` gives the generator a real C++ member name.
`ShareValidationError(ShareValidationError)` caused a C++ type-name collision.
to enforce compatibility with uniffi-bindgen-cpp tag v0.8.1+v0.29.4
@plebhash plebhash marked this pull request as ready for review April 28, 2026 22:22

@Shourya742 Shourya742 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.

The changes on rust end looks sane. I ran the example and test locally and it worked.

@Shourya742

Copy link
Copy Markdown
Member

One minor thing (not a blocker for this PR): the Python script doesn’t have set -e, so if an error occurs during binding, we won’t notice it. We do have this in the C++ scripts.

set -euo pipefail

@plebhash

plebhash commented May 1, 2026

Copy link
Copy Markdown
Member Author

One minor thing (not a blocker for this PR): the Python script doesn’t have set -e, so if an error occurs during binding, we won’t notice it. We do have this in the C++ scripts.

set -euo pipefail

thanks, took note of this

as discussed in our sync, there's a few remaining issues on the python side

I'll create a (low prio) issue with them soon, making sure to include this as well.

@plebhash plebhash merged commit e1bcae4 into stratum-mining:main May 1, 2026
3 checks passed
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.

need to add support for C++

2 participants