| Crates.io | tor-units |
| lib.rs | tor-units |
| version | 0.34.0 |
| created_at | 2021-06-24 13:18:17.240596+00 |
| updated_at | 2025-08-28 21:09:57.657701+00 |
| description | Provides macros for types which are constrained within a range, ensuring invalid values are unrepresentable. |
| homepage | https://gitlab.torproject.org/tpo/core/arti/-/wikis/home |
| repository | https://gitlab.torproject.org/tpo/core/arti.git/ |
| max_upload_size | |
| id | 414433 |
| size | 108,234 |
Safe wrappers for primitive numeric types.
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:
Duration]Duration]memquota-memcost -- implement tor_memquota::HasMemoryCost for many types.
(Does not actually force compiling in memory quota tracking;
that's memquota in tor-memquota and higher-level crates.)
full -- Enable all features above.
License: MIT OR Apache-2.0