Skip to content

TekuSP/framework-system-ffi-extensions

Repository files navigation

framework_lib_ffi

CI

Standalone native FFI facade for framework-system, intended for .NET interop via csbindgen.

This repository keeps the FFI crate separate from the upstream framework-system repository and consumes upstream as a git submodule.

Layout

  • framework-system/: upstream Framework System repository as a git submodule
  • src/: Rust FFI surface exported from this standalone crate
  • csharp/NativeMethods.g.cs: generated low-level C# bindings

Clone

Clone with submodules:

git clone --recurse-submodules <your-repo-url>

If you already cloned without submodules:

git submodule update --init --recursive

Build

cargo build --release

Building regenerates csharp/NativeMethods.g.cs using csbindgen.

See FFI_NOTES.md for the current feature gaps and the main ABI/packaging learnings from this work.

Notes

  • This crate depends on framework-system/framework_lib via a local path dependency.
  • Update the framework-system submodule when you want to track upstream changes.
  • FrameworkByteBuffer values returned by the native API must be released with framework_byte_buffer_free after the managed side has copied their contents.

About

Standalone native FFI facade for framework-system, intended for .NET interop via csbindgen.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Contributors

Languages