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
StringExt
utilities forcrate::str_concat
macros
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::Bytes
returned - 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_subscriber
with 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
RandStr
andRandHexStr
for 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
StrWrapper
andStringWrapper
. - urlencoding_
str - See
Encode
orDecode
for more information. - wrapper
- Helper macro for creating a wrapper type.