This crate simply provides various miscellaneous utilities that are useful in the course of actix-web development, like a function to sanitize control characters from a string (commonly used in user input). See the docs.rs documentation for a complete list of currently available functions.
Dual licenced under MIT or Apache-2.0 license, the same license as actix-web.
Returns the current unix time in seconds. This is useful both for when working with external APIs or libraries that expect a UNIX time, and for cleanly keeping track of time in one’s own code.
Generates a secure random string. This is useful for token generation, such as email verification tokens. This string can contain any of the characters in the string “abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890” with equal probability.