arti/crates/tor-units
Nick Mathewson bf04641c68 Disable clippy::unlinlined-format-args
This warning kind of snuck up on us! (See #748)  For now, let's
disable it.  (I've cleaned it up in a couple of examples, since
those are meant to be more idiomatic and user-facing.)

Closes #748.
2023-01-27 08:27:47 -05:00
..
src Disable clippy::unlinlined-format-args 2023-01-27 08:27:47 -05:00
Cargo.toml Bump the minor version of every crate. 2022-11-30 15:10:16 -05:00
README.md doc: consistent summary line for the READMEs 2022-12-20 14:31:47 +01:00
semver.md tor-units: Add an IntegerMinutes. 2023-01-11 09:10:08 -05:00

README.md

tor-units

Safe wrappers for primitive numeric types.

Overview

This crate is part of Arti, a project to implement Tor in Rust. It provides safe wrappers for primitive numeric wrappers used in other parts of Arti. In particular, it provides:

  • a bounded i32 with both checked and clamping constructors,
  • an integer milliseconds wrapper with conversion to [Duration]
  • an integer seconds wrapper with conversion to [Duration]
  • a percentage wrapper, to prevent accidental failure to divide by 100.
  • a SendMeVersion which can be compared only.

License: MIT OR Apache-2.0