-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat: language agnostic rust codegen #44
Conversation
@eliassjogreen maybe the new CLI should be a custom cargo subcommand? https://github.com/rust-lang/cargo/wiki/Third-party-cargo-subcommands |
@littledivy Yep I agree, that sounds like a wise choice |
test.ts
Outdated
(__source instanceof ArrayBuffer | ||
? __source | ||
: __source instanceof Uint8Array | ||
? __source.buffer | ||
: __source instanceof Deno.UnsafePointer | ||
? new Deno.UnsafePointerView(__source).getArrayBuffer(24) | ||
: __source instanceof Deno.UnsafePointerView | ||
? __source.getArrayBuffer(24) | ||
: undefined)!; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be a helper function.
Closing because stale and merge conflicts. |
This PR addresses #43, #4, #23 by implementing a new codegen in rust which in turn will be used by the macro and in the future extensions to deno bindgen which could enable for example c header support.
Todo:
codegen
cratecodegen
)Previous works, references and resources: