cmn 0.0.6

121 mathematical, physical, and cryptographic constants for Rust — no_std, WASM-ready, compile-time const, typed runtime lookup, 14 utility macros
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.72"
name = "cmn"
version = "0.0.6"
authors = ["The Common (CMN) library contributors <contact@cmnlib.com>"]
build = "build.rs"
include = [
    "/CHANGELOG.md",
    "/CONTRIBUTING.md",
    "/LICENSE-APACHE",
    "/LICENSE-MIT",
    "/benches/**",
    "/build.rs",
    "/Cargo.toml",
    "/examples/**",
    "/README.md",
    "/src/**",
    "/tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "121 mathematical, physical, and cryptographic constants for Rust — no_std, WASM-ready, compile-time const, typed runtime lookup, 14 utility macros"
homepage = "https://cmnlib.com/"
documentation = "https://docs.rs/cmn"
readme = "README.md"
keywords = [
    "constants",
    "mathematics",
    "physics",
    "cryptography",
    "macros",
]
categories = [
    "mathematics",
    "science",
    "no-std",
    "cryptography",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/sebastienrousseau/cmn/"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
    "--generate-link-to-definition",
]
targets = ["x86_64-unknown-linux-gnu"]

[package.metadata.clippy]
warn-lints = [
    "clippy::all",
    "clippy::pedantic",
    "clippy::cargo",
    "clippy::nursery",
]

[features]
default = ["std"]
std = [
    "serde",
    "serde_json",
]

[lib]
name = "cmn"
crate-type = ["lib"]
path = "src/lib.rs"

[[bin]]
name = "cmn"
path = "src/main.rs"
required-features = ["std"]

[[example]]
name = "cmn"
path = "examples/cmn.rs"

[[example]]
name = "constants_lookup"
path = "examples/constants_lookup.rs"

[[example]]
name = "constants_math"
path = "examples/constants_math.rs"

[[example]]
name = "constants_physical"
path = "examples/constants_physical.rs"

[[example]]
name = "datetime_demo"
path = "examples/datetime_demo.rs"

[[example]]
name = "macros_demo"
path = "examples/macros_demo.rs"

[[example]]
name = "words_demo"
path = "examples/words_demo.rs"

[[test]]
name = "test_constants"
path = "tests/test_constants.rs"

[[test]]
name = "test_datetime"
path = "tests/test_datetime.rs"

[[test]]
name = "test_lib"
path = "tests/test_lib.rs"

[[test]]
name = "test_macros"
path = "tests/test_macros.rs"

[[test]]
name = "test_main"
path = "tests/test_main.rs"

[[test]]
name = "test_regression"
path = "tests/test_regression.rs"

[[test]]
name = "test_words"
path = "tests/test_words.rs"

[[bench]]
name = "benchmark"
path = "benches/criterion.rs"
harness = false

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dependencies.serde_json]
version = "1.0.149"
optional = true

[dev-dependencies.assert_cmd]
version = "2.2.0"

[dev-dependencies.criterion]
version = "0.8.2"

[lints.rust]
bare_trait_objects = "allow"
dead_code = "deny"
deprecated_in_future = "deny"
elided_lifetimes_in_paths = "allow"
ellipsis_inclusive_range_patterns = "deny"
explicit_outlives_requirements = "deny"
macro_use_extern_crate = "deny"
meta_variable_misuse = "deny"
missing_copy_implementations = "warn"
missing_debug_implementations = "forbid"
missing_docs = "warn"
non_ascii_idents = "forbid"
non_camel_case_types = "allow"
non_upper_case_globals = "allow"
noop_method_call = "deny"
single_use_lifetimes = "deny"
trivial_bounds = "allow"
trivial_casts = "deny"
trivial_numeric_casts = "deny"
unreachable_pub = "forbid"
unsafe_code = "forbid"
unstable_features = "warn"
unused_extern_crates = "warn"
unused_features = "deny"
unused_import_braces = "deny"
unused_labels = "deny"
unused_lifetimes = "deny"
unused_macro_rules = "deny"
unused_qualifications = "deny"
unused_results = "warn"
variant_size_differences = "deny"

[lints.rust.future_incompatible]
level = "deny"
priority = -1

[lints.rust.keyword_idents]
level = "deny"
priority = -1

[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1

[lints.rust.rust_2021_compatibility]
level = "deny"
priority = -1

[lints.rust.unused]
level = "deny"
priority = -1

[profile.bench]
debug = 2

[profile.dev]
opt-level = 0
lto = false
codegen-units = 256
debug = 2
debug-assertions = true
rpath = false
panic = "unwind"
overflow-checks = true
incremental = true
strip = false

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
debug-assertions = false
rpath = false
panic = "abort"
overflow-checks = false
incremental = false
strip = "symbols"

[profile.test]
opt-level = 0
lto = false
codegen-units = 256
debug = 2
debug-assertions = true
rpath = false
overflow-checks = true
incremental = true
strip = false