| Crates.io | rorm-lib |
| lib.rs | rorm-lib |
| version | 0.4.0 |
| created_at | 2022-09-06 01:10:17.876306+00 |
| updated_at | 2023-03-20 23:50:58.553121+00 |
| description | The FFI bindings to C. |
| homepage | https://rorm.rs |
| repository | https://github.com/rorm-orm/rorm-lib |
| max_upload_size | |
| id | 659190 |
| size | 181,146 |
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-libIn order to compile rorm-lib, a rustup installation
is recommended.
## Clone the repository
git clone --recursive -b main https://github.com/rorm-orm/rorm-lib && cd rorm-lib
## To compile the current development version, use:
# git clone --recursive -b dev https://github.com/rorm-orm/rorm-lib && cd rorm-lib
# Compile the release version (optimized + no debug symbols)
cargo build -r -p rorm-lib
## or build the debug build:
# cargo build -p rorm-lib
## or also enable the logging functionality:
# cargo build -p rorm-lib -F logging
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:
# Install / update cbindgen
cargo install -f cbindgen
# Generate header
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.