Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: expose a zig module #96

Open
rockorager opened this issue Aug 3, 2024 · 3 comments
Open

Feature request: expose a zig module #96

rockorager opened this issue Aug 3, 2024 · 3 comments

Comments

@rockorager
Copy link

I was curious if you would accept exposing a zig module for cyber so it could be imported directly in a zig project without going through the c api?

@sno2
Copy link

sno2 commented Aug 3, 2024

This seems like a duplicate of #86.

@TheOnlySilverClaw
Copy link
Contributor

@sno2 Isn't that specifically about tooling?

But I concur, having a direct Zig API would be very much appreciated!

@fubark
Copy link
Owner

fubark commented Dec 10, 2024

I have started to improve capi.zig, so you can expect something in the next commit. But it's not comprehensive, I've only included things I've needed to use for testing. It's essentially a wrapper over the the flat C functions as Zig methods.

Edit: Actually it's already there. If you're unsure of how to use it I would just do a grep for usages. For example ZVM is the Zig wrapper for VM. But there is no Zig module for it, if someone is interested I'd welcome the PR.

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

No branches or pull requests

4 participants