mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Stop having clibrojo as a default project, update docs
This commit is contained in:
parent
dfb015acc2
commit
94e1501329
2 changed files with 16 additions and 2 deletions
|
|
@ -33,7 +33,6 @@ default-members = [
|
||||||
".",
|
".",
|
||||||
"rojo-test",
|
"rojo-test",
|
||||||
"rojo-insta-ext",
|
"rojo-insta-ext",
|
||||||
"clibrojo",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,19 @@
|
||||||
# Rojo as a C Library
|
# Rojo as a C Library
|
||||||
This is an experiment to expose a C API for Rojo that would be suitable for embedding it into an existing C/C++ application.
|
This is an experiment to expose a C API for Rojo that would be suitable for embedding it into an existing C/C++ application.
|
||||||
|
|
||||||
I'm hoping to expand it to drop the HTTP layer and communicate through a channel, which could make it feasible to embed into an existing Roblox IDE with minimal changes or additional code.
|
I'm hoping to expand it to drop the HTTP layer and communicate through a channel, which could make it feasible to embed into an existing Roblox IDE with minimal changes or additional code.
|
||||||
|
|
||||||
|
## Building
|
||||||
|
This project is currently not built by default and could break/disappear at any time.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cargo build -p clibrojo
|
||||||
|
```
|
||||||
|
|
||||||
|
On Windows, Cargo will generate a `clibrojo.dll` and associated `.lib` file. Link these into your project.
|
||||||
|
|
||||||
|
To generate the associated C header file to include in the project, use [cbindgen](https://github.com/eqrion/cbindgen):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cbindgen --crate clibrojo --output include/rojo.h
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue