Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration

The WrapConfig struct controls the rewriting behavior.

Fields

FieldTypeDescription
orig_nameStringThe original tool’s name (e.g., "rustc")
fake_nameStringThe name to display instead (e.g., "dustc")
fake_verStringThe version string to display (e.g., "2.0.0")
save_origboolWhether to append the original version in parentheses

Example

#![allow(unused)]
fn main() {
use wrapcli::WrapConfig;

let cfg = WrapConfig {
    orig_name: "git".into(),
    fake_name: "gitter".into(),
    fake_ver: "3.0.0".into(),
    save_orig: false,
};
}