yog-cli 0.52.1

Yog build tool — `yog build` compiles a mod and packages it as .yog.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! TOML, as the build writes it (`Cargo.toml`, `rust-toolchain.toml`): comments.

use yog_codegen::Comments;

/// The TOML language.
pub struct Toml;

impl Comments for Toml {
    fn comment(text: &str) -> String {
        format!("# {text}")
    }

    /// TOML has no doc comments: a comment it is.
    fn doc(text: &str) -> String {
        Self::comment(text)
    }
}