pub package package publisher

A library to invoke the native C compiler installed on the host machine through ninja build.

Status: Experimental

This package mirrors the API of native_toolchain_c. Simply replace CBuilder with NinjaBuilder and the build will be run through ninja instead of invoking the compiler directly.

Building through ninja allows for incremental nad parallel builds, better dependency tracking and automatic compile_commands.json generation.

Ninja does not need to be installed on the host system, if missing it will be downloaded during the build. The download is checked against original sha256 checksum to ensure integrity. See ninja_releases.json for more information.

Example

An example can be found in example/package.

Libraries

native_toolchain_ninja
A library to invoke the native C compiler installed on the host machine.