diwic / alsa-rs

Thin but safe ALSA wrappers for Rust
Apache License 2.0
139 stars 66 forks source link

Update Cargo.toml to match root package version #66

Closed damirka closed 3 years ago

damirka commented 3 years ago

I've tried to run synth example locally, and it failed to resolve dependency.

pi@raspberrypi:~/projects/alsa-rs/synth-example $ cargo run 
    Updating crates.io index
error: failed to select a version for the requirement `alsa = "^0.4"`
candidate versions found which didn't match: 0.5.0
location searched: /home/pi/projects/alsa-rs
required by package `synth-example v0.1.0 (~/projects/alsa-rs/synth-example)`

Fixing it to 0.5 solves the problem (and introduces new one 😆)

diwic commented 3 years ago

Fixing it to 0.5 solves the problem (and introduces new one)

Merged now, thanks. What new problem is introduced?

damirka commented 3 years ago

Hey, @diwic. Thanks for merging. Next one is that sample library can not be compiled (when I run cargo run over synth example). I can't give more information rn because I've switched to using portmidi-rs.

And there's a lot happened to this library: https://github.com/RustAudio/dasp/pull/120, so it might be a good idea to rewrite this synth example.

diwic commented 3 years ago

@damirka Right. Last time I checked both dasp and sample were broken, they stopped compiling due to a regression in the Rust compiler, but apparently dasp is fixed now and sample isn't, so I switched over now.