blob: 31ae8aff8a1605e588f97fe2a59c76640ef8dc31 [file] [log] [blame]
name: stb_image
description: |
This project is a minimal, cross-platform demonstration of how to use Dart's
build hooks, with code assets and `dart:ffi` to call a simple function from a
popular C library. This project uses `stbi_info` from the `stb_image.h`
library to read an image's dimensions and color channels without loading the
entire file into memory.
version: 0.1.0
repository: https://github.com/dart-lang/native/tree/main/pkgs/code_assets/example/build/stb_image
publish_to: none
resolution: workspace
environment:
sdk: '>=3.9.0 <4.0.0'
dependencies:
code_assets: any
ffi: ^2.1.4
hooks: any
native_toolchain_c: any
dev_dependencies:
ffigen: ^20.0.0-dev.1
test: ^1.25.15