rorm-lib
provides FFI bindings for rorm-db.
With the help of this crate, it is possible for other languages to use the orm.
rorm-lib
In order to compile rorm-lib
, a rustup installation
is recommended.
```bash
git clone --recursive -b main https://github.com/rorm-orm/rorm-lib && cd rorm-lib
cargo build -r -p rorm-lib
```
The resulting libraries will be written to ./target/release/
or ./target/debug/
depending on the build type.
The current API definition can be generated by using cbindgen
:
```bash
cargo install -f cbindgen
cbindgen --crate rorm-lib --config cbindgen.toml --output rorm.h ```
The generated header file is located in ./rorm.h
.
To provide a similar experience as rorm
for users, it is required to build
an additional layer upon this binding as well as an interface for rorm-cli
.