diff --git a/Cargo.lock b/Cargo.lock index 4a27fa83..4a95ba9f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -240,13 +240,6 @@ dependencies = [ "vec_map", ] -[[package]] -name = "clibrojo" -version = "0.1.0" -dependencies = [ - "rojo", -] - [[package]] name = "cloudabi" version = "0.0.3" diff --git a/Cargo.toml b/Cargo.toml index 09411ee1..d04e4d9b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,13 +28,6 @@ dev_live_assets = [] [workspace] members = [ - "rojo-insta-ext", - "clibrojo", - "memofs", -] - -default-members = [ - ".", "rojo-insta-ext", "memofs", ] diff --git a/clibrojo/Cargo.toml b/clibrojo/Cargo.toml deleted file mode 100644 index 19420607..00000000 --- a/clibrojo/Cargo.toml +++ /dev/null @@ -1,13 +0,0 @@ -[package] -name = "clibrojo" -version = "0.1.0" -authors = ["Lucien Greathouse "] -edition = "2018" - -[lib] -crate-type = ["cdylib"] - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -rojo = { path = ".." } diff --git a/clibrojo/README.md b/clibrojo/README.md deleted file mode 100644 index d8821ed9..00000000 --- a/clibrojo/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# 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. - -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 -``` \ No newline at end of file diff --git a/clibrojo/src/lib.rs b/clibrojo/src/lib.rs deleted file mode 100644 index 0c3dbbf7..00000000 --- a/clibrojo/src/lib.rs +++ /dev/null @@ -1,14 +0,0 @@ -use std::{ffi::CStr, os::raw::c_char, path::PathBuf}; - -use librojo::commands::{serve, ServeOptions}; - -#[no_mangle] -pub extern "C" fn rojo_serve(path: *const c_char) { - let path = unsafe { PathBuf::from(CStr::from_ptr(path).to_str().unwrap()) }; - - serve(&ServeOptions { - fuzzy_project_path: path, - port: None, - }) - .unwrap(); -}