title: How to use a macro from one crate in another?
body: <p>I'm struggling to make macros from my rust lib available to other rust projects.</p>
  
  <p>Here's an example of how I'm trying to get this work at the moment.</p>
  
  <p><strong><code>lib.rs</code></strong>:</p>
  
  <pre><code>#![crate_name = "dsp"]
  #![feature(macro_rules, phase)]
  #![phase(syntax)]
  
  pub mod macros;
  </code></pre>
  
  <p><strong><code>macros.rs</code></strong>:</p>
  
  <pre><code>#![macro_escape]
  
  #[macro_export]
  macro_rules! macro(...)
  </code></pre>
  
  <p><strong><code>other_project.rs</code></strong>:</p>
  
  <pre><code>#![feature(phase, macro_rules)]
  #![phase(syntax, plugin, link)] extern crate dsp;
  
  macro!(...) // error: macro undefined: 'macro!'
  </code></pre>
  
  <p>Am I on the right track? I've been trying to use std::macros as a reference, but I don't seem to be having much luck. Is there anything obvious that I'm missing?</p>