Sfoglia il codice sorgente

Move hound crate to map::wav module and add cfg decorator.

mitchmindtree 8 anni fa
parent
commit
66ba74b54e
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 0 1
      src/lib.rs
  2. 3 1
      src/map.rs

+ 0 - 1
src/lib.rs

@@ -1,4 +1,3 @@
-extern crate hound;
 extern crate instrument;
 extern crate pitch_calc as pitch;
 extern crate sample;

+ 3 - 1
src/map.rs

@@ -151,8 +151,10 @@ impl<F> Map<F>
 }
 
 
+#[cfg(feature="wav")]
 mod wav {
-    use hound;
+    extern crate hound;
+
     use map;
     use pitch;
     use sample;