File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ import 'package:native_toolchain_rs/src/crate_resolver.dart';
77import 'package:native_toolchain_rs/src/process_runner.dart' ;
88import 'package:native_toolchain_rs/src/toml_parsing.dart' ;
99
10+ export 'package:native_toolchain_rs/src/exception.dart' ;
11+
1012/// The mode to build the Rust crate with.
1113enum BuildMode {
1214 /// Build in release mode; i.e., `cargo build --release`
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import 'package:hooks/hooks.dart';
55import 'package:logging/logging.dart' ;
66import 'package:native_toolchain_rs/native_toolchain_rs.dart' ;
77import 'package:native_toolchain_rs/src/crate_resolver.dart' ;
8- import 'package:native_toolchain_rs/src/exception.dart' ;
98import 'package:native_toolchain_rs/src/process_runner.dart' ;
109import 'package:native_toolchain_rs/src/toml_parsing.dart' ;
1110import 'package:path/path.dart' as path;
Original file line number Diff line number Diff line change @@ -5,11 +5,7 @@ import 'package:meta/meta.dart';
55// NOTE: the API for our exceptions is currently experimental
66// ignore_for_file: public_member_api_docs
77
8- /// # WARNING
9- /// This is experimental!
10- /// It may change on any new release without notice!
11- /// Please file an issue with your use-case for it, if you do use it.
12- @experimental
8+ /// An [Exception] representing a failure while trying to build Rust assets.
139sealed class RustBuildException implements Exception {}
1410
1511/// # WARNING
@@ -67,3 +63,8 @@ final class RustProcessException implements RustBuildException {
6763 'innerProcessException: ${inner ?? 'none' }'
6864 ')' ;
6965}
66+
67+ // NOTE: this is here so that end-users can't exhaustively pattern match
68+ // (and thus gives us some API flexibility for new types)
69+ // ignore: unused_element
70+ final class _NoBreakingChangeForNewExceptions implements RustBuildException {}
You can’t perform that action at this time.
0 commit comments