Skip to main content

Crate mars_schema

Crate mars_schema 

Source
Expand description

Pure schema vocabulary, parsing, validation, and editing for Mars packages.

Re-exports§

pub use harness::HarnessId;

Modules§

agent
Agent definition reader.
claude
The Claude dialect: plugin and marketplace manifests, discovery, relocation and translation of Claude-shaped repositories into schema v1 items.
dependency
One [dependencies] or [local-dependencies] entry, as a package manifest or a consumer mars.toml writes it: its source, selectors and filter, and the rules that hold wherever it is read. The consumer’s configuration, a package’s manifest reading and mars add all read an entry through Entry::read, which holds every rule and says, by Strictness, which of them refuse and which only warn.
diagnostic
Stable diagnostics returned by schema operations.
dialect
Inbound dialect vocabulary for foreign definitions.
discover
Definition selection over a host-independent package tree, and the one bounded directory walk every convention scan shares (the binary’s bootstrap walk included).
edit
Canonical YAML emission for editors that splice bytes into authored frontmatter.
filter
Which of a package’s items a dependency entry selects: the authored agents, skills, exclude, only_skills, only_agents and rename keys, their consistency rule, and the FilterMode they resolve to.
frontmatter
git_url
harness
Stable harness identifiers and authored-name parsing.
harness_overrides
harness-overrides: the per-harness passthrough blocks of an Agent or skill.
hooks
The hook.toml definition and every per-target hook rule.
inspect
inspect: what is in a repository, before anything is selected or converted.
item
Package item vocabulary.
links
The skill body-link rule: which relative links leave a skill’s payload and stop resolving once the skills are installed.
manifest
Package-manifest reading owned by the schema boundary.
markdown
Small Markdown syntax helpers shared by build and compiler paths.
mcp
Canonical MCP tool references in tools: / disallowed-tools: lists.
mcp_server
The authored MCP server definition: the vocabulary and the pure parse of one mcp/<name>/mcp.toml.
mcp_servers
The mcpServers entry: the one codec for the shape Claude’s .mcp.json declares and Cursor, Pi and a generated Claude/Codex plugin tree copy.
model_policy
Model-policy definition and validation shared by profiles and consumer config.
names
Names and relative coordinates the dependency vocabulary is built from: item names, source subpaths, and rename maps. Pure string handling; separators normalize to / on every host.
network
Shell network policy: the mode a profile, overlay, settings or CLI flag names, and the host grammar of its allow and deny sets.
normalize
normalize: turn a selection of a repository into schema v1 packages.
ordered
A JSON-shaped value that keeps mapping key order.
package
Versioned package metadata and manifest classification.
permission_set
One layer of an additive permission set: a plain list adds to lower layers, replace clears them.
plugin_metadata
Pure validation for Mars-generated plugin tree markers.
prepare
One-pass package classification, normalization, selection, and strict reading.
provider
Provider names, the hosts that supply skills Mars installs outside the dependency graph.
read
The serialized v1 reading shared by native and WASM callers.
selection
Item selection: which Agents, skills and package-level documents of a settled dependency graph a consumer installs.
skill
Skill definition reading.
tool_names
Mars tool-name grammar.
tool_natives
Explicit per-harness native tool names for Mars capabilities.
tool_policy
Canonical authored tool-policy values and frontmatter parsing.
tree
Host-independent package tree access.
upgrade
Pure legacy Mars definition and manifest upgrades to schema v1.
version
The two version grammars Mars reads and how a version is chosen among a repository’s tags.
visibility
Whether an effectful package item (a hook or an MCP server) crosses a package boundary.

Macros§

string_newtype

Constants§

VERSION
The schema crate version, kept in lockstep with the Mars CLI.