19 releases

0.6.1 Sep 4, 2019
0.6.0 Feb 2, 2018
0.5.7 Dec 29, 2017
0.5.5 Nov 29, 2017
0.1.2 Oct 26, 2016

#3 in Audio

Download history 55/week @ 2019-05-22 98/week @ 2019-05-29 59/week @ 2019-06-05 37/week @ 2019-06-12 83/week @ 2019-06-19 173/week @ 2019-06-26 73/week @ 2019-07-03 79/week @ 2019-07-10 101/week @ 2019-07-17 25/week @ 2019-07-24 30/week @ 2019-07-31 32/week @ 2019-08-07 11/week @ 2019-08-14 185/week @ 2019-08-21 65/week @ 2019-08-28

318 downloads per month
Used in 1 crate

MIT license



License: MIT

crates.io docs.rs

Build Status

Nice Rust bindings for JACK Audio Connection Kit

Documentation for Master

Check out the examples directory for usage.



jack = "0.6"


jack = { git = "https://github.com/RustAudio/rust-jack.git" }


For details on which functions from the JACK headers have been implemented, see ffi_completeness.md.

More high-level, creating clients, creating/reading/writing/connecting ports, audio, and midi are supported.

Missing categories include, JACK threading, synchronous processing, transport and control functionality.


  • libjack is required. Consult your package manager or the official website.

  • The general workflow for a JACK application is to start up a JACK daemon and connect the client to it. qjackctl is a convinient way to configure and bring up a JACK server through a GUI.



Testing is a little awkward to setup since it relies on a JACK server.

Setting Up JACK Dummy Server

$ ./dummy_jack_server.sh

which runs the command

$ jackd -r -ddummy -r44100 -p1024 & # Start the dummy JACK server

Testing expects there to be an available JACK server running at a sample rate of 44.1kHz and a buffer size of 1024 samples.

Running the tests

$ cargo test

Possible Issues

If the tests are failing, a possible gotcha may be timing issues.

  1. Rust runs tests in parallel, it may be possible that the JACK server is not keeping up. Set the environment variable RUST_TEST_THREADS to 1.
  2. Increase the value used by sleep_on_test in client/common.rs.

Another case is that libjack may be broken on your setup. Try switching between libjack and libjack2 (they have the same API and libjack2 isn't necessarily newer than libjack), or using a different version.

"C" & Rust API differences

  • String lengths in the "C" API include the NULL character while these Rust bindings do not. generally rust_size(x) = c_size(x) - 1.
  • "C" bindings require functions to be registered while Rust bindings register an object with a trait.
  • jack_on_shutdown has been removed, uses only jack_on_info_shutdown.
  • Rust enums vs C enums
  • Rust bitflags vs C integers used as flags
  • deprecated JACK functions are not used/implemented in Rust bindings


Main Page