NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #221 most downloaded on pub.dev
A library to invoke the native C compiler installed on the host machine.
Last release 22 days ago
16 Sep 2026
Release timing varies
gaps range from 8 days to 3 months
Nearly every release is documented
notes for 54 of 54 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
55 releases · first in 2023
One column per quarter.
Support Architecture.arm64e for macOS and iOS.
Architecture.arm64e for macOS and iOS.package:code_assets dependency to ^2.1.0.package:file FileSystem, exposed asCBuilder.run, CLinker.run, CLibrary.build, andCLibrary.link (defaulting to LocalFileSystem), so file system access can beFix native_toolchain_c failing with MSSSMS installed by requiring vswhere to only show output that includes the necessary build tools
package:code_assets dependency to ^2.0.0.package:process ProcessManager, exposed asCBuilder.run, CLinker.run, CLibrary.build, andCLibrary.link (defaulting to LocalProcessManager), so process invocationsFixed building with MSVC on Windows when a source, include, or output path contains a space (e.g. a user name with a space in the default pub cache lo
cmd.exe, whose quote handling mangled such command lines. As a
consequence, cmd.exe environment variable expansion (%VAR%) no longer
applies to compiler flags and defines; they are passed to the tools
verbatim.*.obj, so object files left in the output directory by
other builds are no longer swept into the archive, and archive member names
no longer embed the local build directory path.Fixed compatibility with newer Xcode versions when cross-compiling static libraries on macOS hosts targeting Android and Linux.
Added support for passing sanitizer flags (-fsanitize=address, -fsanitize=memory, -fsanitize=thread) to C compilers and linkers.
-fsanitize=address, -fsanitize=memory, -fsanitize=thread) to C compilers and linkers.package:code_assets ^1.2.0.Bumped dependency on package:code_assets to ^1.1.0 and package:hooks to ^2.0.0.
package:code_assets to ^1.1.0 and package:hooks to ^2.0.0.Made CLinker.run Logger argument optional. It now defaults to a logger printing to stdout and stderr.
CLinker.run Logger argument optional. It now defaults to a logger
printing to stdout and stderr.LinkerOptions.treeshake, skip bundling a dynamic library if symbolsToKeep is empty.On Android, use the NDK's libc++.a linker script when cppLinkStdLib is 'c++_static'. This ensures both libc++_static and libc++abi are linked, fixing
libc++.a linker script when cppLinkStdLib is
'c++_static'. This ensures both libc++_static and libc++abi are linked,
fixing dlopen failures on newer Android versions caused by missing C++ ABI
symbols. (#3240)Search for NDK in ANDROID_HOME and ANDROID_NDK environment variables.
ANDROID_HOME and ANDROID_NDK environment variables.-encryptable linker flag. This resolves an
issue with app store
rejections.For Windows, include errors from the standard output of cl in the logger's output of CBuilder.
cl in the logger's
output of CBuilder.
(#2809)Bump package:hooks and package:code_assetsto 1.0.0.
package:hooks and package:code_assetsto 1.0.0.Made CBuilder.run Logger argument optional. It now defaults to a logger printing to stdout and stderr. (Technically this is a breaking change on passi…
CBuilder.run Logger argument optional. It now defaults to a logger
printing to stdout and stderr. (Technically this is a breaking change on
passing null explicitly, but I doubt anyone is using it like that.)Bump package:hooks and package:code_assetsto 0.20.0.
package:hooks and package:code_assetsto 0.20.0.* Fix treeshaking on mac.
Support building assets for packages which are not the input package.
Support Module Definitions for linking on Windows.
* Support linking for Windows.
* Support linking for iOS.
* Support linking for MacOS.
* Support linking for Android.
Bump the SDK constraint to at least the one from package:hooks to fix dartdoc generation on https://pub.dev.
package:hooks to fix
dartdoc generation on https://pub.dev.Firebase Studio NixOS support (default install locations for native toolchains).
Depend on package:code_assets and package:hooks 0.19.0. (package:native_assets_cli was split up into these packages.)
package:code_assets and package:hooks 0.19.0.
(package:native_assets_cli was split up into these packages.)Bump package:native_assets_cli to 0.18.0.
package:native_assets_cli to 0.18.0.Bump package:native_assets_cli to 0.17.0.
package:native_assets_cli to 0.17.0.Bump package:native_assets_cli to 0.16.0.
package:native_assets_cli to 0.16.0.Bump package:native_assets_cli to 0.16.0.
package:native_assets_cli to 0.16.0.Nothing published for this version
Replace linkInPackage with Routing.
linkInPackage with Routing.package:native_assets_cli to 0.14.0.Bump package:native_assets_cli to 0.13.0 and required fixes.
package:native_assets_cli to 0.13.0 and required fixes.Added support for forced includes to CBuilder.
CBuilder.package:native_assets_cli to 0.12.0.Bump package:native_assets_cli to 0.11.0.
package:native_assets_cli to 0.11.0.For Android, produce dylibs with page-size set to 16kb by default. https://github.com/dart-lang/native/issues/1611
CBuilder. It defaults to -3s and
/O3. https://github.com/dart-lang/native/issues/1267CBuilder. It defaults to release. (The
build mode was removed from the build config of the hooks.)libraries and libraryDirectories to CTool.package:native_assets_cli to 0.10.0.Address analyzer info diagnostic about multi-line if requiring a block body.
package:native_assets_cli to 0.9.0. This makes
package:native_toolchain_c now take BuildOutputBuilder and
LinkOutputBuilder objects.Bump package:native_assets_cli to 0.8.0.
package:native_assets_cli to 0.8.0.Fix internal bug in LinkerOptions.
LinkerOptions.package:native_assets_cli to 0.7.3.Deprecated CBuilder's constructors dartBuildFiles. The Dart sources are automatically used for determining whether hooks need to be rerun by newer Dar…
CBuilder's constructors dartBuildFiles. The Dart sources are
automatically used for determining whether hooks need to be rerun by newer
Dart and Flutter SDKs.Bump package:native_assets_cli to 0.7.0.
package:native_assets_cli to 0.7.0.Renamed parameters in Builder.run.
Builder.run.Language.objectiveC.HookConfig.targetIosSdk and HookConfig.targetMacosSdk optional
values, and pass them to the clang compiler.Bump package:native_assets_cli to 0.5.0.
package:native_assets_cli to 0.5.0.Output an Asset.file in dry run. https://github.com/dart-lang/native/issues/1049
Asset.file in dry run.
https://github.com/dart-lang/native/issues/1049Breaking change Completely rewritten API in native_assets_cli.
native_assets_cli.build.dart to be the main script.
https://github.com/dart-lang/native/issues/823package:native_assets_cli to 0.5.0.Bump package:native_assets_cli to 0.4.0.
package:native_assets_cli to 0.4.0.Stop depending on private package:native_assets_cli CCompilerConfig fields.
package:native_assets_cli CCompilerConfig fields.Export environmentFromBatchFile.
environmentFromBatchFile.package:native_assets_cli to 0.3.2.Added workaround minSdkVersion 19 and 20 for Android.
Documentation updates.
Fix extensions of nested types to use fully qualified generated wrapper names.
Explicitly tell linker to create position dependent or position independent executable (#113).
Added includes for specifying include directories.
includes for specifying include directories.flags for specifying arbitrary compiler flags.std for specifying a language standard.language for selecting the language (c and cpp) to compile source files as.cppLinkStdLib for specifying the C++ standard library to link against.Fix MSVC tool resolution inside (x86) folder (#123).
Generate position independent code for libraries by default and add pic option to control this behavior.
pic option to control this behavior.Added defines for specifying custom defines.
defines for specifying custom defines.buildModeDefine to toggle define for current build mode.ndebugDefine to toggle define of NDEBUG for non-debug builds.Bump ffigen and swift2objc versions.
- Initial version.
Your coding agent can read these notes before it upgrades. Set up the MCP server →