code_assets 2.0.0 copy "code_assets: ^2.0.0" to clipboard
code_assets: ^2.0.0 copied to clipboard

This library contains the hook protocol specification for bundling native code with Dart packages.

2.0.0 #

  • Validate bundled dynamic libraries by reading their header: when the file is a recognized ELF, Mach-O, or PE binary, check that it was built for the target architecture. Reject multi-architecture Mach-O output because hooks run once per target architecture. A file the built-in validators do not recognize, or a recognized library built for an architecture they do not know, warns on the supplied logger instead of failing.
  • Bump the dependency on package:hooks to ^2.2.0.
  • Breaking change: Overrode == and hashCode in OS, Architecture, and Sanitizer to support custom targets. These objects can no longer be used as keys of const maps and sets.
    • Migration: Use final (runtime) maps and sets instead of const, or use the string representations (e.g., OS.name, Architecture.name) as keys if const is required.
  • Support custom target OS, architecture, and santizer in protocol extension.

1.2.1 #

  • Avoid throwing a null-assertion error/exception when input.config.code is accessed but input.config.buildCodeAssets is false. Instead, throw a clear and descriptive StateError.

1.2.0 #

  • Added an optional sanitizer parameter to CodeConfig and CodeAssetExtension supporting asan, msan, and tsan.

1.1.0 #

  • Bumped dependency on package:hooks to ^2.0.0 and implemented the new outputFiles protocol extension method to track generated files for cache invalidation, correctly omitting non-local assets like system libraries.

1.0.0 #

  • Stable release.

0.19.10 #

  • Document input.packageRoot in more places.
  • Document CodeAsset.id package namespacing.

0.19.9 #

  • Document that asset file paths must be absolute.

0.19.8 #

  • Polished README.md, Dartdocs, and examples.

0.19.7 #

  • Bump examples to use package:ffigen 20.0.0-dev.0.

0.19.6 #

  • Added a library comment detailing how to use the package.
  • Fixed duplicate asset id detection with assets coming from both build and link hooks.

0.19.5 #

  • Bump package:hooks to 0.20.0.

0.19.4 #

  • Add doc comments to all public members.

0.19.3 #

  • Mark this package as in preview.

0.19.1 #

  • Bump the SDK constraint to at least the one from package:hooks to fix dartdoc generation on https://pub.dev.

0.19.0 #

  • Split up package:native_assets_cli in package:hooks, package:code_assets, and package:data_assets.

0.1.0 #

  • Initial version.
15
likes
160
points
9.48M
downloads

Documentation

API reference

Publisher

verified publisherdart.dev

Weekly Downloads

This library contains the hook protocol specification for bundling native code with Dart packages.

Repository (GitHub)
View/report issues
Contributing

Topics

#assets #ffi #hooks #interop #native-assets

License

BSD-3-Clause (license)

Dependencies

collection, hooks, logging

More

Packages that depend on code_assets