native_toolchain_rs 0.1.2+2
native_toolchain_rs: ^0.1.2+2 copied to clipboard
Rust support for Dart's Native Assets. Automatically builds and bundles your Rust code with your Dart code!
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add native_toolchain_rsWith Flutter:
$ flutter pub add native_toolchain_rsThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
native_toolchain_rs: ^0.1.2+2Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:native_toolchain_rs/native_toolchain_rs.dart';