CMN
A Rust library for accessing a collection of mathematical and cryptographic constants
Welcome to CMN đ
Website âĸ Documentation âĸ Report Bug âĸ Request Feature âĸ Contributing Guidelines
Overview đ
Common (CMN), a Rust library designed for developers who are looking for a comprehensive collection of mathematical and cryptographic constants.
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
Constantstructure holds the name and value of each constant as a&'static strand aString, 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, andSQRT5, and the cryptographic constantsHASH_ALGORITHM,HASH_COST,HASH_LENGTH, andSPECIAL_CHARS. - The library also includes an enumeration
ConstantValuethat represents the different constant values. The values can be anf64 float, aString, au32, ausize, or a&'static [char]array of characters.
Installation đĻ
It takes just a few minutes to get up and running with cmn.
Requirements
cmn requires Rust 1.67.0 or later.
Documentation
âšī¸ Info: Please check out our website for more information and find our documentation on docs.rs, lib.rs and crates.io.
Usage đ
To use cmn in your project, add the following to your
Cargo.toml file:
[]
= "0.0.1"
Add the following to your main.rs file:
extern crate cmn;
use *;
then you can use the functions in your application code.
Examples
CMN comes with a set of examples that you can use to get started. The
examples are located in the examples directory of the project. To run
the examples, clone the repository and run the following command in your
terminal from the project root directory.
cargo run --example cmn
Semantic Versioning Policy đĨ
For transparency into our release cycle and in striving to maintain
backward compatibility, CMN follows semantic versioning.
License đ
The project is licensed under the terms of both the MIT license and the Apache License (Version 2.0).
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.
Acknowledgements đ
A big thank you to all the awesome contributors of Mini Functions for their help and support.