Skip to main content

Module manifest

Module manifest 

Source
Expand description

mlua-pkg.toml manifest parser.

A single Manifest type covers both consumer manifests (with a populated [deps] table) and author manifests ([package] only, with an optional entry field).

§Consumer manifest example

[package]
name = "my-app"
version = "0.1.0"

[deps]
foo  = { git = "https://github.com/x/foo", tag = "v1.2.0" }
bar  = { git = "https://github.com/y/bar", rev = "abc123" }
baz  = { git = "https://github.com/z/baz", branch = "main" }

[deps.qux]
git   = "https://github.com/q/qux"
tag   = "v2.0.0"
entry = "lib"

§Author manifest example

[package]
name    = "foo"
version = "1.2.0"
entry   = "src"

Structs§

Dep
A git-based dependency declared in [deps].
Manifest
Parsed mlua-pkg.toml.
Package
[package] section of mlua-pkg.toml.