[tor-bugs] #23878 [Core Tor/Tor]: Attempt rewriting buffers.c in Rust

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Oct 16 04:02:38 UTC 2017


#23878: Attempt rewriting buffers.c in Rust
-----------------------------------------+---------------------------------
 Reporter:  isis                         |          Owner:  (none)
     Type:  enhancement                  |         Status:  new
 Priority:  Medium                       |      Milestone:  Tor:
                                         |  0.3.4.x-final
Component:  Core Tor/Tor                 |        Version:
 Severity:  Normal                       |     Resolution:
 Keywords:  rust-pilot, rust, datatypes  |  Actual Points:
Parent ID:                               |         Points:  3
 Reviewer:                               |        Sponsor:  Sponsor8-can
-----------------------------------------+---------------------------------

Comment (by manish.earth):

 Probably a thin wrapper around VecDeque<u8> would work better; Bytes seems
 to itself be a growable buffer (which also does stuff like reference
 counting).

 Looking at the C API in buffers.h there doesn't seem to be any reason why
 we can't expose the same API.

 (I don't mind taking a crack at this if I get the time, but I also don't
 want to take the place of someone who wants to learn Rust/Rust FFI through
 this exercise)

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


More information about the tor-bugs mailing list