Skip to content

fix: update bindings, fix tests#239

Open
stephenctw wants to merge 1 commit intofeature/bump-emulator-2from
feature/bump-emulator-2-stephen
Open

fix: update bindings, fix tests#239
stephenctw wants to merge 1 commit intofeature/bump-emulator-2from
feature/bump-emulator-2-stephen

Conversation

@stephenctw
Copy link
Collaborator

@stephenctw stephenctw commented Feb 10, 2026

@GCdePaula Could you help taking a second look at the Rust-bindings. They are mostly done by AI agent, which works now, but you might want to make some changes.

@stephenctw stephenctw self-assigned this Feb 10, 2026
self.machine,
dir_cstr.as_ptr(),
cartesi_machine_sys::CM_SHARING_CONFIG,
cartesi_machine_sys::CM_SHARING_ALL,
Copy link

@mpolitzer mpolitzer Feb 10, 2026

Choose a reason for hiding this comment

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

tldr; this change is correct.

I asked the machine team about this function.
The answer is that they are future proofing it for lambda.
For now this(CM_SHARING_ALL) option is the only that makes sense.

Copy link
Collaborator

@GCdePaula GCdePaula left a comment

Choose a reason for hiding this comment

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

Why the "serde default" everywhere? Like, what changed in the new machine version that required us to add this "serde default"? Can you also explain what this default does?

Copy link
Collaborator

Choose a reason for hiding this comment

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

How will this change behave if we need to use an unreleased machine?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need these changes?

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.

3 participants