string-literal-const-replace

Crates.iostring-literal-const-replace
lib.rsstring-literal-const-replace
version
sourcesrc
created_at2025-02-12 20:45:13.942868+00
updated_at2025-02-12 20:45:13.942868+00
descriptionProc macro for compile-time find/replace on string literals
homepage
repositoryhttps://github.com/JarredAllen/string-literal-const-replace
max_upload_size
id1553458
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Jarred Allen (JarredAllen)

documentation

README

string-literal-const-replace

This is a proc macro which allows you to, at compile time, perform find/replace on string literals. This macro is intended to be called by other macros, to do processing on inputs provided to the macro.

Note that this macro is nightly-only as it relies on the proc_macro_expand unstable feature.

Example of use:

assert_eq!(
    string_literal_replace!("hello, world!" ("hello" -> "goodbye")),
    "goodbye, world!"
);
Commit count: 7

cargo fmt