Module libmake::generator

source ·
Expand description

The generator module contains functions for generating the new library.

Structs

Functions

  • Copies a template file to the output directory and replaces the placeholders with the given parameters (if any).
  • Creates a directory if it does not exist. If the directory already exists, the function will return Ok(()).
  • Creates the template directory and downloads the template files.
  • Generates files for a new Rust project based on given arguments.
  • Generates files for a new Rust project based on command line arguments. The arguments must be in the form --name=value. The following arguments are supported:
  • Generates files for a new Rust project based on a configuration file. Supported configuration file formats: JSON, YAML, CSV.
  • Generates files for a new Rust project based on a CSV file.
  • Generates files for a new Rust project based on a JSON file.
  • Generates files for a new Rust project based on a TOML file.
  • Generates files for a new Rust project based on a YAML file.