Skip to content

Releases: sebastienrousseau/cmn

Common (CMN) 🦀 v0.0.4

11 May 14:59
7857d2c
Compare
Choose a tag to compare

Release v0.0.4 - 2024-05-11

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.

Changelog 📚

Features:

  • ✨ Added new constants to the list.

Bug Fixes:

  • 🐛 Resolved excessive float precision error.
  • 🧵 Fixed cargo bench.

Refactorings:

  • 🎨 Refactored code and removed xtask.

Testing:

  • ✅ Expanded unit test coverage with macros.
  • ✅ Added new tests: test_get_value, test_is_valid.

What's Changed

New Contributors

Full Changelog: v0.0.3...v0.0.4

Common (CMN) 🦀 v0.0.3

13 May 20:52
c97b11e
Compare
Choose a tag to compare

Release v0.0.3 - 2023-05-13

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 📚

New Contributors

Full Changelog: v0.0.2...v0.0.3

Common (CMN) 🦀 v0.0.2

09 Feb 08:37
a4a68ee
Compare
Choose a tag to compare

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

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

divider

Welcome to CMN 👋

CMN Banner

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 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.

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:

[dependencies]
cmn = "0.0.2"

Add the following to your main.rs file:

extern crate cmn;
use cmn::*;

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.

divider

Acknowledgements 💙

A big thank you to all the awesome contributors of Mini Functions
for their help and support. A special thank you goes to the
Rust Reddit community for providing a
lot of useful suggestions on how to improve this project.