Website • Documentation • Report Bug • Request Feature • Contributing Guidelines
Mini Functions
is a highly performant utility and wrapper functions
library for Rust that has been carefully designed with optimization and
efficiency in mind.
By providing convenient wrapper functions, our library aims to provide a high-level interface for common tasks while still leveraging the performance benefits of Rust under the hood.
These utility functions serve as an essential toolkit for any Rust developer, and the library's design abstractions allow for easy integration into a variety of projects and applications.
mini-functions
requires Rust 1.57.0 or later.
It takes just a few minutes to get up and running with mini-functions
.
Check out our documentation for more information.
Add the following to your Cargo.toml
file:
toml
[dependencies]
mini-functions = "0.0.3"
Add the following to your main.rs
file:
rust
use mini_functions::*;
then you can use the functions in your application code.
Mini Functions
is a library of functions for Rust that provides a
collection of tools for working with various aspects of a Rust
application.
The functions in Mini Functions
are optimized for speed and
efficiency, making them useful for a variety of applications, including
those that require fast performance or that need to handle large amounts
of data.
The mini-functions
library consists of the following functions:
The following tables provide a brief description of each function in the
mini-functions
library.
| Function | Include File | Function Prototype | Description |
| -------- | ------------ | ------------------ | ----------- |
| Date::date()
| date.rs
| fn date()
| Returns the current date in UTC format. |
| Date::day()
| date.rs
| fn day()
| Returns the current day. |
| Date::hour()
| date.rs
| fn hour()
| Returns the current hour. |
| Date::iso_8601()
| date.rs
| fn iso_8601()
| Returns the current date and time in ISO 8601 format. |
| Date::microsecond()
| date.rs
| fn microsecond()
| Returns the current microsecond. |
| Date::millisecond()
| date.rs
| fn millisecond()
| Returns the current millisecond. |
| Date::minute()
| date.rs
| fn minute()
| Returns the current minute. |
| Date::month()
| date.rs
| fn month()
| Returns the current month. |
| Date::nanosecond()
| date.rs
| fn nanosecond()
| Returns the current nanosecond. |
| Date::now_utc()
| date.rs
| fn now_utc()
| Returns the current date and time in UTC format. |
| Date::second()
| date.rs
| fn second()
| Returns the current second. |
| Date::timestamp()
| date.rs
| fn timestamp()
| Returns the current timestamp. |
| Date::weekday()
| date.rs
| fn weekday()
| Returns the current weekday. |
| Date::year()
| date.rs
| fn year()
| Returns the current year. |
| Function | Include File | Function Prototype | Description |
| -------- | ------------ | ------------------ | ----------- |
| Log::log()
| log.rs
| fn log()
| Logs a message to the console.|
| Log::new()
| log.rs
| fn new()
| Creates a new log instance. |
| Function | Include File | Function Prototype | Description |
| -------- | ------------ | ------------------ | ----------- |
| UUID::new()
| uuid.rs
| fn new()
| Creates a new UUID instance based on the version specified. (v3, v4, v5) |
| UUID::uuid_v3()
| uuid.rs
| fn uuid_v3()
| Creates a new UUID v3 instance. |
| UUID::uuid_v4()
| uuid.rs
| fn uuid_v4()
| Creates a new UUID v4 instance. |
| UUID::uuid_v5()
| uuid.rs
| fn uuid_v5()
| Creates a new UUID v5 instance. |
For transparency into our release cycle and in striving to maintain
backward compatibility, Mini Functions
follows
semantic versioning.
The project is licensed under the terms of both the MIT license and the Apache License (Version 2.0).
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
A big thank you to all the awesome contributors of Mini Functions for their help and support.