Bladeren bron

Add hound as default wav feature for loading Sample and Map types from wav files.

mitchmindtree 8 jaren geleden
bovenliggende
commit
9f533ad16b
1 gewijzigde bestanden met toevoegingen van 8 en 1 verwijderingen
  1. 8 1
      Cargo.toml

+ 8 - 1
Cargo.toml

@@ -3,12 +3,19 @@ name = "sampler"
 version = "0.1.0"
 authors = ["mitchmindtree <mitchell.nordine@gmail.com>"]
 
+[features]
+default = ["wav"]
+wav = ["hound"]
+
 [dependencies]
+instrument = { path = "../instrument" }
 pitch_calc = "0.10.0"
 sample = "0.3.0"
 time_calc = "0.10.1"
 
+# optional dependencies
+hound = { optional = true, version = "1.1.0" }
+
 [dev-dependencies]
 find_folder = "0.3.0"
-hound = "1.1.0"
 portaudio = "0.6.2"