9 releases

0.8.0 Dec 7, 2024
0.2.0 Apr 24, 2023
0.1.0 Apr 23, 2023
0.0.8 Jan 28, 2023
0.0.2 Jul 7, 2022

#515 in Programming languages

Download history 3/week @ 2024-08-26 32/week @ 2024-09-23 1/week @ 2024-10-07 7/week @ 2024-10-14 8/week @ 2024-11-04 8/week @ 2024-11-25 182/week @ 2024-12-02 80/week @ 2024-12-09

270 downloads per month
Used in cbqn

GPL-3.0-only

1MB
27K SLoC

C 23K SLoC // 0.0% comments BQN 4K SLoC // 0.1% comments Rust 419 SLoC // 0.0% comments Shell 52 SLoC // 0.1% comments Bazel 18 SLoC

cbqn-sys

A crate providing FFI bindings to CBQN.

Features

shared-object

The default feature is shared-object which links to libcbqn.so. It can be built using shared-o3 target. Use RUSTFLAGS="-L /path/to/cbqn" and LD_LIBRARY_PATH=/path/to/cbqn/libcbqn.so if the shared object is not in a system-wide path.

No features

Building without features gives only the API to CBQN. Used with cbqn-rs WASI backend for example.

Pregenerated bindings

Pregenerated bindings can be found from src/pregenerated.rs. To recreate them, use bindgen-cli.

License

Licensed either under GPLv3, LGPLv3 or MPL 2.0 following the licensing of CBQN.

Dependencies