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

C binding library interface for the Clue compiler #138

Open
Lyrth opened this issue Nov 26, 2023 · 0 comments
Open

C binding library interface for the Clue compiler #138

Lyrth opened this issue Nov 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Lyrth
Copy link

Lyrth commented Nov 26, 2023

It would likely be beneficial to provide C bindings for the compiler so that it can be used in other non-Rust projects. This will allow Clue to be embedded without needing to call the Clue executable (via the CLI).

Source files for the binding and a C header file should be provided once this is implemented, and optionally, prebuilt dynamic libraries (aka. probably a cdylib on Rust) for each platform.

libtcc could be a (probably more complicated than needed) reference, but I personally like the structure. (Let us know of other implementations that can be a good reference for Clue's)

@Maiori44 Maiori44 added the enhancement New feature or request label Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants