[tor-bugs] #26337 [Core Tor/Tor]: Investigate making rust error types use the failure crate (was: make rust error types use the failure crate)

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Aug 10 01:33:25 UTC 2018


#26337: Investigate making rust error types use the failure crate
-------------------------------------------------+-------------------------
 Reporter:  isis                                 |          Owner:  (none)
     Type:  enhancement                          |         Status:
                                                 |  needs_information
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  unspecified
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  rust, technical-debt, tor-           |  Actual Points:
  modularity, 035-removed-20180711               |
Parent ID:                                       |         Points:  1
 Reviewer:                                       |        Sponsor:
                                                 |  Sponsor8-can
-------------------------------------------------+-------------------------
Changes (by chelseakomlo):

 * status:  new => needs_information


Old description:

> As our Rust code increases, we'll eventually want a nicer way to convert
> between error types than we currently have.  We'll probably want to use
> boats's `failure` [https://crates.io/crates/failure crate].  They
> mentioned a while ago that they were going to make a 1.0.0 release soon,
> and afaict there's not really anything about the current release that is
> expected to change, so we can probably start working on this now-ish.

New description:

 As our Rust code increases, we'll eventually want a nicer way to convert
 between error types than we currently have.  We'll probably want to use
 boats's `failure` [https://crates.io/crates/failure crate].  They
 mentioned a while ago that they were going to make a 1.0.0 release soon,
 and afaict there's not really anything about the current release that is
 expected to change, so we can probably start working on this now-ish.

 [update] This ticket is pending stability of the `failure` crate and the
 direction of the error trait in Rust https://github.com/rust-
 lang/rfcs/pull/2504

--

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/26337#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list