Registry / utility / tor-basic-utils

tor-basic-utils

JSON →
library0.42.0rscratesunverified

General helpers used by Tor (Arti project).

# Cargo.toml [dependencies] tor-basic-utils = "0.42.0"
INSTALL
IMPORT
SIG · TOR-BASIC-UTILS
T
tor-basic-utils
utilityrustv0.42.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RngExt
use tor_basic_utils::RngExt;

Uses the RngExt trait to generate a random number within a range.

use tor_basic_utils::RngExt; use rand::thread_rng; fn main() { let mut rng = thread_rng(); let val: u32 = rng.gen_range(0..100); println!("Random value: {}", val); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.42.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
tor-basic-utils — cargo add tor-basic-utils · libregistry