Expand description
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.
Structs§
- Dependencies
- A package manifest’s two dependency tables, entries by name in declaration order.
- Entry
- One dependency entry. It serializes in the spelling of the file (
urlorpath,version,subpath,dialect,plugin, the filter keys), so a consumer’smars.tomlwrites it back as it was authored.versionis a git source’s constraint; a path source has none and ignores it. - Entry
Warning - A rule a
Strictness::Packageentry broke and was kept anyway. - RawEntry
- The authored shape of an entry, before the rules that need its name. A consumer’s
mars.tomlholds entries in this shape, so a file with a bad entry still loads andmars removecan repair it;Entry::readapplies the rules where an entry is used.
Enums§
- Entry
Error - An entry the schema refuses, by the rule it breaks. Each message names the entry.
- Plugin
Selector Error - A dependency entry that selects a marketplace plugin with a key that contradicts it.
- Source
- Where an entry’s package comes from: a git repository or a directory, never both.
- Strictness
- Who an entry is read for, which decides what a rule does when it breaks.
Functions§
- validate_
plugin_ selector pluginpicks one plugin of the marketplace at the source’s root, read as a Claude marketplace; asubpathordialectwould name a different root or reading.