Mini Functions 🦀

Made With Love

Highly performant utility and wrapper functions library for Rust

Mini Functions

Crates.io Lib.rs Docs.rs License

divider

WebsiteDocumentationReport BugRequest FeatureContributing Guidelines

Welcome to the Mini Functions Library for Rust 👋 (v0.0.2)

Mini Functions defines a base layer of functionality for writing Rust applications. It provides a set of functions that can be used in your application code.

This table briefly describes the Mini Functions Library available for Rust. This table provides the include file name and the function prototype for each function.

Requirements 📋

mini-functions requires Rust 1.57.0 or later.

The mini-functions library consists of the following functions listed in alphabetical order in the following tables.

Table 1 - Date Functions (date.rs)

| 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 iso8601()| 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::nowutc()|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. |

Table 2 - Log Function (log.rs)

| Function | Include File | Function Prototype | Description | | -------- | ------------ | ------------------ | ----------- | | Log::new() | log.rs | fn new() | Creates a new log instance. | | Log::log() | log.rs | fn log() | Logs a message to the console.|

divider

Semantic Versioning Policy 🚥

For transparency into our release cycle and in striving to maintain backward compatibility, Mini Functions follows semantic versioning.

divider

License 📝

The project is licensed under the terms of both the MIT license and the Apache License (Version 2.0).

divider

Contribution 🤝

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.

divider

Acknowledgements 💙

A big thank you to all the awesome contributors of Mini Functions for their help and support.