Skip to content

Conversation

@tarkah
Copy link
Contributor

@tarkah tarkah commented Oct 29, 2024

No description provided.

Copy link
Member

@ikeycode ikeycode left a comment

Choose a reason for hiding this comment

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

Mildly terrifying =) Was it not possible to autogenerate the header from the extern "C" functions..? My only nitpicks atm are missing docs/SPDX headers. I assume the renames are required for FFI exports, and unavoidably introduce the verbosity / far reach of changes?

@tarkah
Copy link
Contributor Author

tarkah commented Nov 8, 2024

Was it not possible to autogenerate the header from the extern "C" functions..?

The header is being auto generated by cbindgen, checkout build.rs!

I assume the renames are required for FFI exports, and unavoidably introduce the verbosity / far reach of changes?

Lol yeah cbindgen operates on type names only, not fully qualified paths, so any "duplicate" name, even from different modules, collide and it'll only emit one of them. So I had to switch the entire crate to fully qualified type syntax :/

My only nitpicks atm are missing docs/SPDX headers.

👍 Yup we need 100% documentation and outlining safety & lifetimes will be important. Any necessary allocations happen on the rust side. The consumer needs to copy out any StoneStrings we allocate in Rust to C before destroying the reader and Rust drops it all. Since C is devoid of lifetimes, le documentation must be solid.

@CLAassistant
Copy link

CLAassistant commented Jan 17, 2025

CLA assistant check
All committers have signed the CLA.

@ermo ermo added this to the alpha2 milestone May 8, 2025
@ermo
Copy link
Member

ermo commented May 8, 2025

Tentatively assigning this to alpha2.

@ermo ermo added priority: could have type: compliance/interop Will make for a nicer compliance/interop story labels May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: could have type: compliance/interop Will make for a nicer compliance/interop story

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants