[−][src]Crate dustr
dustr
is as a binary that parses rust code to generate its dart bindings. The rust code must
be marked using procedural macros from the ffishim_derive library.
With dustr, you can call this rust code:
ⓘThis example is not tested
#[ffishim_function] fn hello(s: String) -> String { format!("Hello, {}!", s) }
from dart:
import 'package:hello/hello.dart';
void main() {
var greeting = hello("fred");
print("${greeting}");
}
For more context, please take a look at the README.md.
Modules
types | Definition of types supported by dustr and their behavior. |
Structs
Enum | The dart representation of a rust enum. |
Function | A dart ffi function binding declaration. |
Imports | Imports helps manage imports (remove duplicates etc.) |
Library | The dart equivalent of a rust |
Module | A rust module (hierarchy), built by parsing a crate. |
Package | The dart package built from rust sources. |
Struct | The dart representation of a rust structure. |
Wrapper | A dart wrapper around our function declarations. |