Find a file
2025-09-08 19:43:28 +03:00
.config Remove sleeps from tests. (#213) 2024-09-14 19:55:11 -07:00
.github Remove no features test. 2024-09-14 16:00:52 -07:00
docs Refactor testing (#210) 2024-09-14 16:07:52 -07:00
examples Refactor testing (#210) 2024-09-14 16:07:52 -07:00
jack-sys enable collecting test coverage 2025-05-09 02:21:14 +03:00
src fix warning 2025-09-08 19:43:28 +03:00
.gitignore enable collecting test coverage 2025-05-09 02:21:14 +03:00
build.rs document new dlopen feature and packaging (#165) 2022-03-01 08:25:54 -08:00
Cargo.toml Refactor testing (#210) 2024-09-14 16:07:52 -07:00
CHANGELOG Dynamically load JACK. (#162) 2022-02-06 09:42:24 -08:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2017-12-02 15:57:44 -08:00
dummy_jack_server.sh Implement additiona Midi iterator utilities (#85) 2017-12-29 12:11:49 -08:00
LICENSE handling time 2016-06-13 22:52:24 -07:00
README.md Remove sleeps from tests. (#213) 2024-09-14 19:55:11 -07:00

JACK (for Rust)

Rust bindings for JACK Audio Connection Kit.

Crates.io License
Docs.rs Test
📚 Documentation ❤️ Sponsor

Using JACK

The JACK server is usually started by the user or system. Clients can request that the JACK server is started on demand when they connect, but this can be disabled by creating a client with the NO_START_SERVER option or ClientOptions::default().

  • Linux and BSD users may install JACK1, JACK2 (preferred for low latency), or Pipewire JACK (preferred for ease of use) from their system package manager.
  • Windows users may install JACK from the official website or Chocolatey.
  • MacOS users may install JACK from the official website or Homebrew.

Refer to the docs.rs documentation for details about the API. For more general documentation, visit https://rustaudio.github.io/rust-jack.

Testing

Testing requires setting up a dummy server and running the tests using a single thread. rust-jack automatically configures cargo nextest to use a single thread.

# Set up a dummy server for tests. The script is included in this repository.
./dummy_jack_server.sh &
# Run tests
cargo nextest run

Note: If cargo nextest is not available, use RUST_TEST_THREADS=1 cargo test to run in single threaded mode.

Possible Issues

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

  1. If using cargo test, try cargo nextest. The cargo nextest configuration is set up to run single threaded and to retry flaky tests.

Another case is that libjack may be broken on your setup. Try using libjack2 or pipewire-jack.