magic_webgen 1.0.1
magic_webgen: ^1.0.1 copied to clipboard
Build WebAssembly libraries from C sources and generate Dart bindings from project configuration.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add magic_webgenThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
magic_webgen: ^1.0.1Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:magic_webgen/ast_func.dart';
import 'package:magic_webgen/ast_node_kind.dart';
import 'package:magic_webgen/ast_param.dart';
import 'package:magic_webgen/ast_parse.dart';
import 'package:magic_webgen/ast_struct.dart';
import 'package:magic_webgen/ast_typedef.dart';
import 'package:magic_webgen/ast_var.dart';
import 'package:magic_webgen/ast_visit.dart';
import 'package:magic_webgen/clang.dart';
import 'package:magic_webgen/map_type.dart';
import 'package:magic_webgen/write_bindings.dart';