RustBuilder class
Properties
assetName
→ String ?
Optional asset name used for generating asset Id. If not specified crate name will be used.
final
buildConfig
→ BuildConfig
Build config provided to the build callback from native_assets_cli
.
final
cratePath
→ String
Path to the Rust crate directory relative to the package root.
final
dartBuildFiles
→ List <String >
Dart build files inside hook directory that should be added as
dependencies. Default value adds hook/build.dart
as dependency.
final
Extra arguments to pass to cargo build
.
final
hashCode
→ int
The hash code for this object.
no setter inherited
logger
→ Logger?
Optional logger for verbose output.
final
package
→ String
Package name. This will be part of asset Id.
For example package my_package
with crate name my_crate
will have
asset id package:my_package/my_crate
:
final
release
→ bool
Whether to build in release mode. Default is true
even for debug builds.
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
toolchain
→ RustToolchain ?
Custom Rust toolchain to use (optional).
final
useNativeManifest
→ bool
By default native_toolchain_rust
expects native_manifest.yaml
in
package root in order to check for the required Rust version and also for
native_doctor
to work. If you don't want to include native_manifest.yaml
in your package, set this to false
.
final
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run ({required BuildOutput output })
→ Future <void >
toString ()
→ String
A string representation of this object.
inherited
native_toolchain_rust_mirror 0.1.0-dev.8