Skip to main content

Crate wolf_project

Crate wolf_project 

Source
Expand description

Projects: the manifest wolfpack.toml, the fixed layout, and wolf new (spec chapter 6).

Structs§

ConfigOverride
One override from [config.<module path>].
Manifest
A validated manifest.
ModuleFile
One .wolf file of a project.

Enums§

ConfigValue
The value of a [config] override.
Kind
The two kinds of projects.
Role
What a source file is for.
Target
The three translation targets.

Constants§

NATIVE_DIRS
The directories of native/, one per target (spec chapter 6, section 7, rule 7).

Functions§

create
Creates a new project in dir (spec chapter 6, rule 7.6). dir must not exist or be empty.
discover
Lists the .wolf files of the project in a fixed order and reports layout errors (E0612).
find_root
Finds the project root: the nearest directory, starting at start, containing wolfpack.toml (spec chapter 6, rule 6.6).
is_kebab_case
[a-z][a-z0-9]*(-[a-z0-9]+)*
is_snake_case
[a-z][a-z0-9]*(_[a-z0-9]+)* (spec chapter 1, section 3).
native_files
The files of native/<target>/ with their paths relative to it, in a fixed order; empty when the directory does not exist. Hidden files and directories are left out.
parse_manifest
Parses and validates the manifest text. Returns None if it is unusable; every problem is reported as E0611 or E0613 with the exact key.