| Crates.io | swamp-dep-loader |
| lib.rs | swamp-dep-loader |
| version | 0.2.26 |
| created_at | 2025-03-29 16:11:26.624355+00 |
| updated_at | 2025-08-18 11:24:45.468515+00 |
| description | Parses Swamp modules, scans for dependencies (`mod` and `use`), and determines the correct analysis order. |
| homepage | |
| repository | https://github.com/swamp/swamp |
| max_upload_size | |
| id | 1611432 |
| size | 30,247 |
Parses Swamp source files, identifies module dependencies (mod and use statements), and calculates the correct order for semantic analysis.
This crate orchestrates the initial parsing phase of the Swamp compilation process. Starting from an entry point module, it recursively:
swamp-ast) using swamp-parser.mod (import) and use declarations to discover dependencies on other modules.crate.My.Module, some_package.Lib) to file system paths using swamp-source-map.DependencyParser: Manages the state of parsed modules and scanned dependencies.parse_local_modules: Recursively parses the entry module and its dependencies.get_analysis_order: Calculates the topological sort of the module dependency graph.crate vs. registry packages, .swamp extension).This crate is primarily used internally by the Swamp compiler.
[dependencies]
swamp-dep-loader = "0.2.26"
This project is licensed under the MIT License - see the LICENSE file for details.
Copyright (c) Peter Bjorklund. All rights reserved. https://github.com/swamp/swamp