March Docs

Forge.Project

Forge.Project — load and represent a Bastion project

Reads the forge.toml in (or above) the current working directory and returns a Project record that other Forge commands consume.

forge.toml format (TOML subset): [package] name = "my_app" version = "0.1.0" type = "app"

[deps]
bastion       = "*"
some_lib      = { path: "../some_lib" }
other_lib     = { git: "https://...", tag: "v1.0" }
another_lib   = { git: "https://...", branch: "main" }
yet_another   = { git: "https://...", rev: "abc123" }

Types

typeDepDep =#
typeProjectProject = {#

Functions

fnloadload()#

Load the Bastion project from the nearest forge.toml, searching up from cwd. Returns Ok(Project) on success or Err(msg) on failure.