RustBuilder class final
Builds a Rust project via rustup.
Constructors
-
RustBuilder({required String assetName, String? cratePath, BuildMode buildMode = BuildMode.release, bool enableDefaultFeatures = true, List<
String> features = const <String>[], List<String> extraCargoBuildArgs = const <String>[], Map<String, String> extraCargoEnvironmentVariables = const <String, String>{}}) -
Creates a RustBuilder with the supplied configuration.
const
Properties
- assetName → String
-
The name of the native asset to build.
final
- buildMode → BuildMode
-
The mode to build the crate with.
final
- cratePath → String?
-
The path, from the root of your Dart project, to the Rust crate.
A
Cargo.tomlandrust-toolchain.tomlare expected at this location.final - enableDefaultFeatures → bool
-
Whether or not to enable the default features of the crate.
final
-
extraCargoBuildArgs
→ List<
String> -
WARNING
final
-
extraCargoEnvironmentVariables
→ Map<
String, String> -
WARNING
final
-
features
→ List<
String> -
List of features to enable in the crate.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
{required BuildInput input, required BuildOutputBuilder output, List< AssetRouting> assetRouting = const [ToAppBundle()], Logger? logger}) → Future<void> - Runs the entire Rust build process, including:
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited