Skip to main content

Crate vanta_migrate

Crate vanta_migrate 

Source
Expand description

vanta-migrate — import foreign version files into a Vanta [tools] set.

Reads the common version files (.mise.toml/mise.toml, .tool-versions, .nvmrc, .python-version, rust-toolchain.toml, …) and produces tool→version pairs plus the source they came from, which the CLI renders into a vanta.toml. See docs/30-migration.md. Pure-std parsing; no foreign tool is invoked.

Structs§

Imported
One imported tool pin and the file it came from.

Functions§

import_dir
Scan a directory for known version files and import them. The first file to mention a tool wins (specific files are scanned before broad ones).
parse_mise_toml
Parse a mise / rtx config (.mise.toml, mise.toml, .config/mise/config.toml) [tools] table. Supports the flat form (node = "20", python = ["3.12"], ruby = { version = "3.3" }) and the [tools.<name>] sub-table form (version = "20"). Pure-std line parsing — only the [tools] section is read.
parse_tool_versions
Parse an asdf/mise .tool-versions body (“name version” per line).
to_manifest_toml
Render imported tools into a vanta.toml [tools] table.