Skip to main content

Crate monochange_dart

Crate monochange_dart 

Source
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 packages
  • DartAdapter exposes the shared adapter interface

§Scope

  • pubspec.yaml workspace expansion
  • Dart package parsing
  • Flutter package detection
  • normalized dependency extraction

Re-exports§

pub use analysis::DartSemanticAnalyzer;
pub use analysis::semantic_analyzer;

Modules§

analysis
lints
Dart and Flutter manifest lint suite.

Structs§

DartAdapter

Enums§

DartVersionedFileKind

Constants§

PUBSPEC_FILE

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.yaml mapping.
update_manifest_text
Update pubspec.yaml text while preserving the existing layout.
update_pubspec_lock
Update versions embedded in a parsed pubspec.lock mapping.
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