-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Cleanup cplugin interface to fully use DeviceInfo_FFI and eliminate _ prefix on some funcs - Remove dangling pointer to callback on cplugin unload - Remove need to allocate DeviceInfo in rust from a c plugin. We just let them use the FFI type and we copy the data over - Add some const qualifiers to things that should never be mutated * Further C plugin cleanup (#67) * Simplify CMakeLists for test_c_plugin It no longer needs linking against Rust code * Remove new_device_info & drop_device_info * Bump CPLUGIN_ABI_VERSION since everything's definitely incompatible now * Fix test (hopefully) (#68) * Fix "bindings changed" * Also run workflow on PR * Re-enable test plugin building * Fix ffi test that uses test-plugin * Fix test plugin tests on sdk.rs --------- Co-authored-by: Sainan <sainan@calamity.gg>
- Loading branch information
Showing
11 changed files
with
149 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Test CI | ||
|
||
on: push | ||
on: [push, pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
const TEST_PLUGIN_DIR: &str = "test_c_plugin"; | ||
|
||
fn main() { | ||
// println!("Building Test C Plugin"); | ||
// println!("{:?}", std::env::var("OUT_DIR")); | ||
println!("Building Test C Plugin"); | ||
println!("{:?}", std::env::var("OUT_DIR")); | ||
|
||
// cmake::Config::new(TEST_PLUGIN_DIR) | ||
// .no_build_target(true) | ||
// .out_dir(format!("./{}", TEST_PLUGIN_DIR)) | ||
// .always_configure(false) | ||
// .profile("Debug") | ||
// .build(); | ||
cmake::Config::new(TEST_PLUGIN_DIR) | ||
.no_build_target(true) | ||
.out_dir(format!("./{}", TEST_PLUGIN_DIR)) | ||
.always_configure(false) | ||
.profile("Debug") | ||
.build(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.