#tor #error #arti #traits #enums #api #unified

tor-error

Provides the unified type-erased error type returned by many (esp. high-level) Tor APIs.

18 releases

0.17.0 Apr 2, 2024
0.6.1 Feb 5, 2024
0.6.0 Jan 9, 2024
0.5.5 Dec 4, 2023
0.1.0 Mar 1, 2022

#194 in Rust patterns

Download history 253/week @ 2023-12-22 161/week @ 2023-12-29 387/week @ 2024-01-05 431/week @ 2024-01-12 374/week @ 2024-01-19 166/week @ 2024-01-26 260/week @ 2024-02-02 287/week @ 2024-02-09 192/week @ 2024-02-16 326/week @ 2024-02-23 1954/week @ 2024-03-01 529/week @ 2024-03-08 907/week @ 2024-03-15 1803/week @ 2024-03-22 1119/week @ 2024-03-29 1083/week @ 2024-04-05

4,959 downloads per month
Used in 39 crates (29 directly)

MIT/Apache

91KB
1K SLoC

tor-error

Support for error handling in Tor and Arti

Primarily, this crate provides the ErrorKind enum, and associated HasKind trait.

There is also some other miscellany, supporting error handling in crates higher up the dependency stack.

Features

backtrace -- Enable backtraces in internal errors. (On by default.)

Experimental and unstable features

Note that the APIs enabled by these features are NOT covered by semantic versioning[^1] guarantees: we might break them or remove them between patch versions.

  • experimental-api: Add additional non-stable APIs to our public interfaces.

[^1]: Remember, semantic versioning is what makes various cargo features work reliably. To be explicit: if you want cargo update to only make safe changes, then you cannot enable these features.

License: MIT OR Apache-2.0


lib.rs:

Dependencies

~4.5–6MB
~124K SLoC