diff --git a/ffi/README.md b/ffi/README.md new file mode 100644 index 00000000..9e7cecf1 --- /dev/null +++ b/ffi/README.md @@ -0,0 +1,21 @@ +# IronRDP FFI + +[Diplomat]-based FFI for IronRDP. + +Currently, only the .NET target is officially supported. + +## How to build + +- Install required tools: `cargo xtask ffi install` + - For .NET, note that `dotnet` is also a requirement that you will need to install on your own. + +- Build the shared library: `cargo xtask ffi build` (alternatively, in release mode: `cargo xtask ffi build --release`) + +- Build the bindings: `cargo xtask ffi bindings` + +At this point, you may build and run the examples for .NET: + +- `dotnet run --project Devolutions.IronRdp.ConnectExample` +- `dotnet run --project Devolutions.IronRdp.AvaloniaExample` + +[Diplomat]: https://github.com/rust-diplomat/diplomat