2 unstable releases

Uses new Rust 2024

0.2.0 Jun 22, 2025
0.1.0 Sep 16, 2023

#126 in No standard library

Download history 97/week @ 2025-06-18 31/week @ 2025-06-25

128 downloads per month

MIT/Apache

7KB

common_consts

Constants used in daily life.

The author of this crate is not good at English.
Forgive me if the document is hard to read.

Words that express quantities in daily conversations are often used in source code as well. Since it is tedious to define constants for those magic numbers in each project, we collect them here.

Values

Quantity values (In qv module).

  • ZERO
  • FEW
  • SOME
  • SEVERAL
  • HANDFUL
  • MANY

Frequency values (In fv module).

  • NEVER
  • ALMOST_NEVER
  • RARELY
  • OCCASIONALLY
  • SOMETIMES
  • OFTEN
  • ALMOST
  • ALWAYS

Notes

Specific values for each constants may change in future versions.

What's new

  • Rust edition is updated to 2024.
  • Add prelude module (Although this crate is very small).

No runtime deps