commit | b15c6354e9235178a2996f2ae2090bfbd9ddf3cb | [log] [tgz] |
---|---|---|
author | Alex Crichton <alex@alexcrichton.com> | Fri May 19 19:36:36 2017 -0700 |
committer | Alex Crichton <alex@alexcrichton.com> | Fri May 19 19:36:36 2017 -0700 |
tree | d26cb5cfc4c662992c08867e4876c3c2977f44d2 | |
parent | 852d53db5fb9020cf50b923c523c41e3b4cc4fb9 [diff] [blame] |
Add unstable build ability
diff --git a/src/lib.rs b/src/lib.rs index 67cdbe6..54cebd8 100644 --- a/src/lib.rs +++ b/src/lib.rs
@@ -1,6 +1,7 @@ extern crate proc_macro; #[macro_use] +#[cfg(feature = "stable")] extern crate synom; use std::fmt; @@ -9,6 +10,10 @@ use std::iter::FromIterator; #[path = "stable.rs"] +#[cfg(feature = "stable")] +mod imp; +#[path = "unstable.rs"] +#[cfg(not(feature = "stable"))] mod imp; #[derive(Clone)]