Expand description
Dev deps: some useful macros.
Re-exports§
pub use string as string_v2;
Modules§
- base64
- Base64 related macros
- hash
- Hash related macros
- misc
- Misc
- random
- Random number / string generation utilities
- string
- Useful
StringExtutilities forcrate::str_concatmacros
Macros§
- b64_
decode - Decode given base64 string to bytes.
- b64_
encode - Encode given buffer into base64 string.
- b64_
encode_ bytes Deprecated - Base64 encode with
bytes::Bytesreturned - calc_
hash - Calculate Hash.
- calc_
hash_ str - A helper macro to get string from hash result
- crate_
version - Helper to create version string or build time for your crate.
- init_
tracing_ simple - Init
tracing_subscriberwith default settings. - md5
- Calculate MD5 hash.
- now
- Faster way to get current timestamp other than
chrono::Local::now().timestamp(), 12x faster on my machine. - random_
choice - Generate a random string by choosing ones from given candidates.
- random_
str - See
RandStrandRandHexStrfor more information. - random_
string - Generate random
String. - random_
string_ fast Deprecated - Generate random string base on xor-shift algorithm.
- sha256
- Calc SHA256 hash.
- sha384
- Calculate SHA384 hash.
- sha512
- Calculate SHA512 hash.
- str_
concat - Fast concat
String/ &str/ number. - str_
iter_ wrapper - See
IterWrapper. - str_
wrapper - See
StrWrapperandStringWrapper. - urlencoding_
str - See
EncodeorDecodefor more information. - wrapper
- Helper macro for creating a wrapper type.