Expand description
Module loader for Sage projects.
This crate handles:
- Loading single-file programs
- Loading multi-file projects with
sage.toml - Module tree construction from
moddeclarations - Cycle detection in imports
Structs§
- Module
Tree - A complete module tree for a Sage project.
- Parsed
Module - A parsed module with its source and AST.
- Project
Manifest - A Sage project manifest (sage.toml).
- Test
Config - The test section of sage.toml.
- Test
File - A discovered test file with its parsed contents.
Enums§
- Load
Error - Errors that can occur during module loading.
Functions§
- discover_
test_ files - Discover all
*_test.sgfiles in a project. - load_
project - Load a project from a sage.toml or project directory.
- load_
project_ with_ packages - Load a project with external package resolution.
- load_
single_ file - Load a single .sg file (no project structure).
- load_
test_ files - Load all test files in a project.
Type Aliases§
- Module
Path - A module path like
["agents", "researcher"].