Crates.io | tor-units |
lib.rs | tor-units |
version | 0.25.0 |
source | src |
created_at | 2021-06-24 13:18:17.240596 |
updated_at | 2024-12-02 17:58:35.040248 |
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 | 30,846 |
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