Skip to main content

hashstring

Macro hashstring 

Source
hashstring!() { /* proc-macro */ }
Available on crate features hashstrings and macros only.
Expand description

Hash a string so that it can be searched for in the resulting executable without including the actual string. This macro creates a case sensitive encrust::Hashstring.

ยงExample

let look_for_me = hashstring!("Find me!");
assert!(look_for_me == "Find me!");
assert!(look_for_me != "fInD Me!");