-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
37 lines (32 loc) · 993 Bytes
/
Cargo.toml
File metadata and controls
37 lines (32 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[package]
name = "echo-rust"
version = "0.1.0"
edition = "2018"
[env]
LD_LIBRARY_PATH = "$NIX_LD_LIBRARY_PATH"
[dependencies]
async-ringbuf = "0.2.1"
hound = "3.5.1"
i24 = "1.0.1"
libc = "0.2.155"
mio = "1.0.1"
openssl = { version="0.10.42", features = ["vendored"] }
ringbuf = "0.4.1"
rustpotter = "3.0.2"
tokio = { version="1.39.2", features = ["full"] }
wave_stream = "0.5.0"
# tinyalsa = { git = "https://github.com/dgreid/rust_tinyalsa", version = "0.1.0" }
[workspace.metadata.cross.target.armv7-linux-androideabi]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
# "find / -name '*.so' && exit 1",
"apt-get update && apt-get --assume-yes install git pkg-config pkg-config:$CROSS_DEB_ARCH",
"git clone https://github.com/duslabo/tinyalsa-ndk",
"cd tinyalsa-ndk && cp libs/armeabi/* /system/lib && cp -r include/tinyalsa /android-ndk/include/",
]
rustflags = [
"-L", "/home/isaac/git/tinyalsa-ndk/libs/armeabi/",
]
passthrough = [
"LD_PRELOAD",
]