[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
Mon Dec 18 09:55:20 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):
> However, I ran into issues due to the limitation of creating non-struct
static types in stable Rust.
The `lazy_static` crate helps here, `static mut` is something you rarely
use.
> I am unable to run cargo test with a specific flag. For example, I
wanted to be able to run cargo test --feature "testing",
You'll want to make the feature depend on features from other crates.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/23881#comment:16>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list