Expand description
Project root detection and shape.toml configuration
Discovers the project root by walking up from a starting directory
looking for a shape.toml file, then parses its configuration.
Structs§
- Build
External Section - [build.external] section
- Build
Section - [build] section
- Detailed
Dependency - Detailed dependency with path, git, or version fields.
- Extension
Entry - An extension entry in [[extensions]]
- FsPermissions
- [permissions.fs] — path-level filesystem constraints.
- Modules
Section - [modules] section
- Native
Dependency Detail - Detailed native dependency record.
- Native
Target - Normalized native target used for host-aware native dependency resolution.
- Native
Target Value Detail - Detailed target-qualified native dependency value.
- NetPermissions
- [permissions.net] — host-level network constraints.
- Permissions
Section - [permissions] section — declares what capabilities the project needs.
- Project
Root - A discovered project root with its parsed configuration
- Project
Section - [project] section
- Sandbox
Section - [sandbox] section — isolation settings for deterministic/testing modes.
- Shape
Project - Top-level shape.toml configuration
Enums§
- Dependency
Spec - A dependency specification: either a version string or a detailed table.
- External
Lock Mode - External input lock mode for compile-time workflows.
- Native
Dependency Provider - How a native dependency is provisioned.
- Native
Dependency Spec - Entry in
[native-dependencies]. - Native
Target Value - Target-qualified native dependency value.
- Permission
Preset - Permission shorthand: a string like “pure”, “readonly”, or “full”, or an inline table with fine-grained booleans.
Functions§
- find_
project_ root - Walk up from
start_dirlooking for ashape.tomlfile. ReturnsSome(ProjectRoot)if found,Noneotherwise. - normalize_
package_ identity - Normalize project metadata into a canonical package identity.
- normalize_
package_ identity_ with_ fallback - Normalize project metadata into a canonical package identity with explicit fallbacks.
- parse_
native_ dependencies_ section - Parse the
[native-dependencies]section table into typed specs. - parse_
shape_ project_ toml - Parse a
shape.tomldocument into aShapeProject.