Expand description
§monochange_dart
monochange_dart discovers Dart and Flutter packages for the shared planner.
Reach for this crate when you need to scan pubspec.yaml files, expand Dart or Flutter workspaces, and normalize package metadata into monochange_core records.
§Why use it?
- cover both pure Dart and Flutter package layouts with one adapter
- normalize pubspec metadata and dependency edges for shared release planning
- detect Flutter packages without maintaining a separate discovery path
§Best for
- scanning Dart or Flutter monorepos into normalized workspace records
- reusing the same planning pipeline for mobile and non-mobile packages
- discovering Flutter packages without a dedicated Flutter-only adapter layer
§Public entry points
discover_dart_packages(root)discovers Dart and Flutter workspaces plus standalone packagesDartAdapterexposes the shared adapter interface
§Scope
pubspec.yamlworkspace expansion- Dart package parsing
- Flutter package detection
- normalized dependency extraction
Re-exports§
pub use analysis::DartSemanticAnalyzer;pub use analysis::semantic_analyzer;
Modules§
Structs§
Enums§
Constants§
Functions§
- adapter
- Return the shared Dart and Flutter ecosystem adapter.
- default_
dependency_ fields - Return the manifest fields that usually contain dependency versions.
- default_
dependency_ version_ prefix - default_
lockfile_ commands - Return the default lockfile refresh commands for
package. - discover_
dart_ packages - Discover Dart and Flutter packages rooted at
root. - discover_
lockfiles - Discover lockfiles that should be refreshed for
package. - load_
configured_ dart_ package - Load one explicitly configured Dart/Flutter package without walking the repo.
- supported_
versioned_ file_ kind - Classify a Dart or Flutter versioned file path.
- update_
dependency_ fields - Update dependency sections inside a parsed
pubspec.yamlmapping. - update_
manifest_ text - Update
pubspec.yamltext while preserving the existing layout. - update_
pubspec_ lock - Update versions embedded in a parsed
pubspec.lockmapping. - validate_
versioned_ file - Return the default dependency-version prefix for this ecosystem. Validate that a Dart versioned file contains a readable version field.
- write_
dart_ placeholder_ manifest