<p dir="auto">Rust's configure script contains 4 years of accumulated knowledge, mostly around command line parsing and platform detection. We've copied parts of this script to Cargo's configure script, install.sh and rustup.sh. It would be nice to not duplicate this logic since the implementation of each drifts over time.</p>
<p dir="auto">cc <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40088155" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16456" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16456/hovercard" href="https://github.com/rust-lang/rust/issues/16456">#16456</a></p>
<p dir="auto">I have to</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::fmt::Writer;"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>fmt<span class="pl-kos">::</span><span class="pl-v">Writer</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">outside the macro invocation.</p>