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