Skip to content

Commit 981cdd1

Browse files
authored
Add dlib support for jack-sys. (#161)
Compiling with feature `dlopen` will allow dynamically loading the library.
1 parent a3fa9c6 commit 981cdd1

File tree

7 files changed

+615
-602
lines changed

7 files changed

+615
-602
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ jobs:
2424
run: cargo clippy --all-targets --all-features -- -D clippy::all
2525
- name: Build
2626
run: cargo build --verbose
27-
- name: Run tests
27+
- name: Run Tests
2828
run: RUST_TEST_THREADS=1 cargo test --verbose

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ version = "0.8.4"
1212

1313
[dependencies]
1414
bitflags = "1"
15-
jack-sys = {path = "./jack-sys", version = "0.2.3"}
15+
dlib = "0.5"
16+
jack-sys = {path = "./jack-sys"}
1617
lazy_static = "1.4"
1718
libc = "0.2"
1819
log = "0.4"

jack-sys/Cargo.toml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
[package]
2-
name = "jack-sys"
3-
version = "0.2.3"
4-
edition = "2018"
52
authors = ["Patrick Reisert"]
63
description = "Low-level binding to the JACK audio API."
7-
repository = "https://github.com/RustAudio/rust-jack/tree/main/jack-sys"
4+
edition = "2018"
85
license = "MIT OR Apache-2.0"
96
links = "jack"
7+
name = "jack-sys"
8+
repository = "https://github.com/RustAudio/rust-jack/tree/main/jack-sys"
9+
version = "0.3.0"
1010

1111
[dependencies]
12-
libc = "0.2"
13-
libloading = "0.6"
12+
dlib = "0.5"
13+
dlopen = {version = "0.1", optional = true}
1414
lazy_static = "1.4"
15+
libc = "0.2"
16+
libloading = "0.7"
1517

1618
[build-dependencies]
1719
pkg-config = "0.3"
20+
21+
[features]
22+
# If dlopen is set, then dlib must be used to call jack-sys functions. See
23+
# https://github.com/vberger/dlib.
24+
default = []

0 commit comments

Comments
 (0)