[tor-bugs] #23881 [Core Tor/Tor]: Implement a way to utilise tor's logging system from Rust code
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed Dec 20 05:41:10 UTC 2017
#23881: Implement a way to utilise tor's logging system from Rust code
------------------------------+------------------------------------
Reporter: isis | Owner: chelseakomlo
Type: enhancement | Status: needs_review
Priority: High | Milestone: Tor: 0.3.3.x-final
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: rust, rust-pilot | Actual Points:
Parent ID: | Points: 3
Reviewer: | Sponsor:
------------------------------+------------------------------------
Comment (by manish.earth):
> I don't think we should import this crate just for this test case- I
did see that come up as an option though.
you can use a dev-dependency so it only gets used in testing
Alternatively, have a `static FOO: *const YourType = 0 as *const _;` and
allocate it at the beginning of the test program. That's basically what
lazy_static does, except lazily.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23881#comment:18>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list