Skip to content

Commit

Permalink
feat!: rename ignoreMissingNativeManifest to useNativeManifest (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
knopp authored May 10, 2024
1 parent 25a871f commit b910c02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions native_toolchain_rust/lib/src/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class RustBuilder {
this.toolchain,
required this.crateManifestPath,
required this.buildConfig,
this.ignoreMissingNativeManifest = false,
this.useNativeManifest = true,
this.dartBuildFiles = const ['hook/build.dart'],
this.logger,
});
Expand Down Expand Up @@ -135,12 +135,12 @@ class RustBuilder {
final List<String> dartBuildFiles;

/// By default `native_toolchain_rust` expects `native_manifest.yaml` in
/// package root in order to check for required Rust version and also for
/// 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 `true`.
/// in your package, set this to `false`.
///
/// See https://pub.dev/packages/native_doctor for more information.
final bool ignoreMissingNativeManifest;
final bool useNativeManifest;

/// Optional logger for verbose output.
final Logger? logger;
Expand Down Expand Up @@ -176,7 +176,7 @@ class RustBuilder {
)!;

await toolchain._checkTarget(target: target);
if (!ignoreMissingNativeManifest) {
if (useNativeManifest) {
await toolchain._checkNativeManifest(buildConfig: buildConfig);
}

Expand Down

0 comments on commit b910c02

Please sign in to comment.