cedar_ffi 0.2.0 copy "cedar_ffi: ^0.2.0" to clipboard
cedar_ffi: ^0.2.0 copied to clipboard

FFI bindings for the Cedar policy language, written in Rust.

Cedar FFI #

A Dart FFI wrapper for the Cedar policy engine.

Usage #

The library uses Dart's native assets feature to compile and link the Cedar policy engine into any Dart or Flutter application. Since Cedar is written in Rust, usage of this library also requires having the latest stable Rust toolchain installed.

See the example for a simple example of how to use the library.

Development #

The Cedar policy language is written in Rust. To bridge to Dart, some lightweight bindings have been written in src which allows Dart to call into the Rust library.

Generating the FFI bindings #

The FFI bindings are generated using the ffigen tool. To regenerate the bindings, run the following command:

$ dart --enable-experiment=native-assets run ffigen
0
likes
150
points
76
downloads

Publisher

verified publishercelest.dev

Weekly Downloads

FFI bindings for the Cedar policy language, written in Rust.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause-Patent (license)

Dependencies

built_collection, built_value, cedar, cli_config, collection, ffi, json_annotation, logging, meta, native_assets_cli, native_toolchain_c

More

Packages that depend on cedar_ffi