Skip to content

Latest commit

 

History

History
72 lines (52 loc) · 3.57 KB

TEMPLATE.md

File metadata and controls

72 lines (52 loc) · 3.57 KB

Common (CMN) logo

Common (CMN)

A Rust library for accessing a collection of mathematical and cryptographic constants

Part of the Mini Functions family of libraries.

Common (CMN) Banner

Made With Rust Crates.io Lib.rs Docs.rs License Codecov

WebsiteDocumentationReport BugRequest FeatureContributing Guidelines

divider

Overview 📖

Common (CMN), a Rust library designed for developers who are looking for a comprehensive collection of mathematical and cryptographic constants.

Common (CMN) is a modern, fast, and user-friendly library that makes it easy to access a wide range of mathematical and cryptographic constants, including the mathematical constant Euler, the hash algorithm used, the cost of the hash algorithm, the length of the hash, the mathematical constant Phi, the mathematical constant Pi, the Planck constant, a set of special characters, and much more.

Features ✨

The library includes two main structures: Constant and Constants.

  • The Constant structure holds the name and value of each constant as a &'static str and a String, respectively.
  • The Constants structure implements a method constants that returns a Vec<Constant> containing all the available constants.
  • The available constants include the mathematical constants EULER, PHI, PI, PLANCK, and SQRT5, and the cryptographic constants HASH_ALGORITHM, HASH_COST, HASH_LENGTH, and SPECIAL_CHARS.
  • The library also includes an enumeration ConstantValue that represents the different constant values. The values can be an f64 float, a String, a u32, a usize, or a &'static [char] array of characters.

Changelog 📚