Object-oriented binding generator for Rust.
Licensed under the terms of the MIT or Apache v2 licenses at your choice.
oo-bindgen
: main library to build an object-oriented representation of your
library.tests
: contains an example foo-ffi
library with the associated
foo-bindings
object-oriented library definition. It builds the same library
in each supported language. Each language has extensive unit tests written to
check that the generated bindings work as expected.A minimal CMakeLists.txt
to compile with a library generated by oo-bindgen is
the following:
```cmake cmakeminimumrequired(VERSION 3.8)
project(myawesomeproject LANGUAGES C)
set(CMAKEPREFIXPATH ${CMAKECURRENTLISTDIR}/foo/cmake) findpackage(foo REQUIRED)
addexecutable(myawesomeproject main.c) targetlinklibraries(myawesome_project PRIVATE foo)
addcustomcommand(TARGET myawesomeproject POSTBUILD
COMMAND ${CMAKECOMMAND} -E copyifdifferent $
nuget sources add -Name my-nuget-feed -Source /my-nuget-feed
.nuget add foo.0.1.0.nupkg -Source /my-nuget-feed
.dotnet add
MyAwesomeProject package foo
or add it using Visual Studio interface. It
should add a line in your .csproj
like the following: <PackageReference Include="foo" Version="0.1.0" />
mvn org.apache.maven.plugins:maven-install-plugin:3.0.0-M1:install-file -D"file=foo-0.1.0.jar"
xml
<dependency>
<groupId>io.stepfunc</groupId>
<artifactId>foo</artifactId>
<version>0.1.0</version>
</dependency>