string-literal-const-replace 0.1.0

Proc macro for compile-time find/replace on string literals
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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`](https://github.com/rust-lang/rust/issues/90765) unstable feature.

Example of use:

```rust
assert_eq!(
    string_literal_replace!("hello, world!" ("hello" -> "goodbye")),
    "goodbye, world!"
);
```