hoax 1.0.0

Simple procedural macro crate that "hides" any string literal in a plain sight.
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 4.59 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 255.84 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • FssAy/hoax
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • FssAy

Hoax

Simple procedural macro crate that "hides" string literals in the binary in plain sight.

Usage

[dependencies]

hoax = "1.0.0"

hoax!

Panics only when the first token tree is not a string literal, any followings are ignored. Returns a String collected from a vector of chars.

Example

#[macro_use] extern crate hoax;

println!("{}", "I am not hidden :c");
println!("{}", hoax!("I guess I am hidden c:"));

Expansion

hoax!("cat\n")

is the same as

{vec!['c', 'a', 't', '\n',].iter().collect::<String>()}