Crate mini_functions

source ·
Expand description

Mini Functions 🦀

Mini Functions Logo

A Highly Performant Utility and Wrapper Functions Library for Rust

Elevate your Rust development with this comprehensive library of functions and utilities designed to streamline common tasks, enhance performance, and promote maintainability across various aspects of Rust application development.

GitHub Rust Crates.io Lib.rs License

Overview

Mini-Functions is a modern Rust library that prioritizes performance, security, and modularity. It provides a low-overhead access to functions for common programming tasks.

Features

  • Claims - Provides robust functionalities for handling various types of claims in JSON Web Tokens (JWT), including standard, custom, and private claims. Ideal for authentication and authorization processes in Rust applications.
  • Common - Offers a comprehensive collection of mathematical and cryptographic constants, such as prime numbers, Pi, cryptographic keys, and more. Essential for applications requiring high-level mathematical computations and secure cryptographic operations.
  • Date - Features an extensive suite of functions for parsing, validating, manipulating, and formatting dates and times. Supports a wide range of date/time formats and is tailored for time-sensitive Rust applications.
  • Errors - Delivers advanced error handling functions with support for custom error types, integration with logging systems, and streamlined error propagation. Enhances the reliability and maintainability of Rust applications through robust error management.
  • Hash - Specializes in Quantum-Resistant Cryptographic Hashing, offering a library tailored for password hashing and verification. Includes modern algorithms designed to withstand quantum-computing threats, ensuring long-term security.
  • JWT - Provides a full range of JSON Web Token (JWT) functionalities, including secure token generation, decoding, and validation. Facilitates secure and efficient user authentication processes in Rust-based systems.
  • Logs - Enables application-level logging with a focus on simplicity and readability. Features customizable log formats, multiple log levels, and easy integration with Rust applications, making debugging and monitoring more efficient.
  • MD5 - Offers MD5 hash functions, suitable for legacy systems compatibility. Includes a clear advisory on MD5’s vulnerabilities and guidance on secure alternatives for modern applications.
  • QR - Allows for comprehensive QR code operations, including generation, customization, and scanning capabilities. Supports a variety of formats and use-cases, making it a versatile tool for Rust applications involving QR code integration.
  • Random - Features high-quality random number generation using the Mersenne Twister algorithm. Ideal for applications requiring random data generation, including simulations, gaming, and cryptographic operations.

These components provide a comprehensive set of functionality and offer powerful new capabilities to help you build better applications and services in the Rust programming language.

Learn more

Installation

Mini Functions is available on both Crates.io and Lib.rs.

Learn more about Mini Functions at https://minifunctions.com.

Add the following to your Cargo.toml file:

[dependencies]
mini_functions = "0.0.10"

Then, add the following to your crate root:

extern crate mini_functions;

use mini_functions::mini_functions::*;

Modules

  • Provides access to the claims of a JSON Web Token (JWT). Application JSON Web Token (JWT) claims functionality
  • Offers a comprehensive collection of mathematical and cryptographic constants. Application Common mathematical constants functionality
  • Features an extensive suite of functions for handling dates and times. Application date/time functionality
  • Delivers advanced error handling functionalities. Application Error handling functionality
  • Specializes in Quantum-Resistant Cryptographic Hashing. Application hash functionality
  • Provides a full range of JSON Web Token (JWT) functionalities. Application JSON Web Token (JWT) functionality
  • Enables application-level logging with customizable features. Application logging functionality
  • Offers MD5 hash functions with advisories on usage. Application MD5 hashing functionality
  • Re-exports public contents of key modules
  • Allows for comprehensive QR code operations. Application QR code functionality
  • Features high-quality random number generation using the Mersenne Twister algorithm. Application random number generation functionality