Introducing Mini Functions 🦀

An High-Performance Utility and Wrapper Functions Rust Library :rocket:

Mini Functions is an opinionated collection of utility and wrapper functions that aims to accelerate Rust development by providing useful, easy-to-use, and high-performance tools.

Here’s a breakdown of the features available today:

  • Common constants: These constants are an integral part of the library and are used in functions such as date formatting, password generation, and UUID generation.
  • Date and time functions: These functions allow you to retrieve and manipulate information about dates and times.
  • Hash functions: These functions generate hashes for various data types.
  • Log functions: These functions are designed to help you debug and troubleshoot your Rust code by providing a simple and intuitive way to log messages to the console.
  • Password functions: These functions generate passwords and verify passwords.
  • QRCode functions: These functions generate QRCode images and data.
    Random number functions: These functions generate random numbers in a variety of sizes and formats.
  • UUID functions: These functions generate UUIDs (Universally Unique Identifiers).

Join the Mini Functions Community

Mini Functions is an ongoing project that is constantly evolving and improving. Our goal is to make it a highly-performant utility and wrapper functions library for Rust. We’ve already added a number of functions and features to the library, and we have more planned for the future but we need your help.

As an open source project, we welcome contributions from the community. If you’re an experienced Rust developer and you’re interested in helping us shape the direction of the project, we encourage you to get involved. Whether you have ideas for new features, want to help fix bugs, or just want to learn more about Rust development, we welcome your contributions.

Join us on GitHub and be a part of the Mini Functions community!

Future features in no particular order

  • A function for encoding and decoding data using base64, which is a common encoding format used for transferring data over the internet.
  • A function for compressing and decompressing data using a popular compression algorithm like gzip.
  • A function for generating and parsing JSON data, which is a popular format for exchanging data between systems.
  • A function for generating short, unique codes that could be used as an alternative to UUIDs for identifying resources.
  • A function for generating and validating digital signatures, which can be used to verify the authenticity and integrity of a message or document.
  • A function for generating and parsing INI data, which is a simple, human-readable format for storing configuration information.
  • A function for generating and parsing BSON data, which is a binary serialisation format used by MongoDB.
  • A function for generating and verifying digital signatures using a variety of cryptographic algorithms (e.g. RSA, ECDSA, DSA).
  • A function for generating and verifying message authentication codes (MACs) using cryptographic hash functions like HMAC.
  • A function for generating and verifying checksums using cryptographic hash functions like SHA-256 or SHA-3.
  • A function for generating and verifying timestamps using cryptographic methods, which can be used to prove the existence of a document at a specific point in time.
  • A function for generating and verifying digital certificates, which can be used to authenticate the identity of a person or organisation.
  • A function for generating and verifying one-time passwords (OTPs), which can be used for secure two-factor authentication.
  • A function for generating and verifying JWTs (JSON Web Tokens), which can be used for secure, stateless authentication between systems.
  • A function for generating and verifying post-quantum key pairs using algorithms like lattice-based cryptography or code-based cryptography.
  • A function for generating and verifying post-quantum digital signatures using algorithms like lattice-based cryptography or code-based cryptography.
  • A function for generating and verifying post-quantum message authentication codes using algorithms like lattice-based cryptography or code-based cryptography.
  • A function for generating and verifying post-quantum checksums using algorithms like lattice-based cryptography or code-based cryptography.
  • A function for generating and verifying post-quantum timestamps using algorithms like lattice-based cryptography or code-based cryptography.
  • A function for generating and verifying post-quantum digital certificates using algorithms like lattice-based cryptography or code-based cryptography.
  • A function for generating and verifying post-quantum one-time passwords using algorithms like lattice-based cryptography or code-based cryptography.
  • A function for generating and verifying post-quantum JWTs using algorithms like lattice-based cryptography or code-based cryptography.
  • A function for making HTTP requests to APIs, with support for various authentication schemes (e.g. OAuth, Basic Auth).
  • A function for parsing and validating API responses, with support for various data formats (e.g. JSON, XML, CSV).
  • A function for generating client libraries for interacting with APIs, using code generation tools like OpenAPI or Swagger.
  • A function for mock testing APIs, which can be used to test client applications without relying on the real API.
  • A function for monitoring APIs for uptime and performance, with support for alerting and notification when issues arise.
1 Like