Configuration
Donna projects use donna.toml for metadata and dependencies.
name = "hello"
version = "0.1.0"
author = "Nikolas"
description = "A small Donna project"
Dependencies are declared in TOML tables.
[dependencies]
donna = { git = "https://github.com/donna-lang/donna_stdlib", version = ">=0.1.0 and <1.0.0" }
unittest = { git = "https://github.com/donna-lang/unittest", tag = "v0.1.1" }
Local dependencies are useful while building packages side by side.
[dependencies]
mustache = { path = "../mustache" }
Git dependencies can use version, tag, branch, or rev. Prefer version for published packages and rev when you need a build to be perfectly repeatable.
Project metadata can power generated docs, badges, package pages, and release tooling. Keep it accurate. A clean donna.toml is a small thing that prevents a lot of nonsense later.