This folder contains various FFI wrappers for ICU4X.
The primary ICU4X FFI is generated via Diplomat and can be found under ffi/capi
, alongside generated C, C++, JS, TS, and Dart bindings.
In C and C++, the bindings in ffi/capi/bindings
can be directly used and linked against a compiled version of icu_capi
. See our C++ tutorial for more info.
For JS/TS we provide an NPM package in ffi/npm
. This is currently not published on NPM.
For Dart we provide a package in ffi/dart
. This needs to be initialised with make
. It is not currently published on pub.dev
.
For use in FreeRTOS, we provide a special wrapper in ffi/freertos
. This uses the FreeRTOS allocator and can be linked directly with a FreeRTOS firmware.
For use with the GN build tool, see tutorials/gn
for an example setup.