[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs