-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
38 lines (30 loc) · 910 Bytes
/
Cargo.toml
File metadata and controls
38 lines (30 loc) · 910 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
38
[package]
edition = "2021"
name = "cpvc"
version = "0.0.0"
[lib]
crate-type = ["cdylib"]
[dependencies]
napi = "3.0.0"
napi-derive = "3.0.0"
cpvc = { git = "https://github.com/SomaticIT/cpvc.git" }
[build-dependencies]
napi-build = "2"
[profile.release]
lto = true
codegen-units = 1
strip = "symbols"
[package.metadata.cross.target.x86_64-unknown-linux-musl]
pre-build = [
"apt-get update && apt-get --assume-yes install libasound2-dev libpulse-dev",
]
[package.metadata.cross.target.armv7-unknown-linux-gnueabihf]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get --assume-yes install libasound2-dev:$CROSS_DEB_ARCH libpulse-dev:$CROSS_DEB_ARCH",
]
[package.metadata.cross.target.aarch64-unknown-linux-musl]
pre-build = [
"dpkg --add-architecture arm64",
"apt-get update && apt-get --assume-yes install libasound2-dev:arm64 libpulse-dev:arm64",
]