[tor-bugs] #25156 [Core Tor/Tor]: Stop duplicating static strings between Rust and C
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Jun 1 00:30:23 UTC 2018
#25156: Stop duplicating static strings between Rust and C
-------------------------------------------------+-------------------------
Reporter: teor | Owner: (none)
Type: defect | Status: new
Priority: Medium | Milestone: Tor:
| unspecified
Component: Core Tor/Tor | Version: Tor:
| 0.3.2.1-alpha
Severity: Normal | Resolution:
Keywords: rust, memory-leaks, technical-debt, | Actual Points:
034-triage-20180328, 034-removed-20180328 |
Parent ID: | Points: 1
Reviewer: | Sponsor:
-------------------------------------------------+-------------------------
Comment (by teor):
We think that the fastest way to resolve this issue is to create unit
tests in C that check that the Rust and C string, enum, and integer
constants are equal.
In the longer term, we should think about generating C and Rust constant
source files from a single source of truth.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25156#comment:10>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list