Added new configuration for cross-platform compilation.
This commit is contained in:
+25
-2
@@ -1,3 +1,26 @@
|
||||
[build]
|
||||
#rustflags = ["-Ctarget-cpu=native"]
|
||||
# or this: "-Ctarget-feature=+aes,+sha,+sse,+sse2,+avx,+avx2"
|
||||
#rustflags = ["-Ctarget-cpu=native", "-Clink-arg=-s"]
|
||||
# or this: "-Ctarget-feature=+aes,+sha,+sse,+sse2,+avx,+avx2"
|
||||
|
||||
# Build these targets like this:
|
||||
# Install docker
|
||||
# cargo install cross
|
||||
# cross build --release --no-default-features --target x86_64-unknown-linux-musl
|
||||
|
||||
[target.x86_64-unknown-linux-musl]
|
||||
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||
|
||||
[target.i686-unknown-linux-musl]
|
||||
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||
|
||||
[target.arm64-unknown-linux-musl]
|
||||
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||
|
||||
[target.armhf-unknown-linux-musl]
|
||||
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||
|
||||
[target.mips-unknown-linux-musl]
|
||||
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||
|
||||
[target.mipsel-unknown-linux-musl]
|
||||
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=-s"]
|
||||
+5
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "alfis"
|
||||
version = "0.4.5"
|
||||
version = "0.4.6"
|
||||
authors = ["Revertron <alfis@revertron.com>"]
|
||||
edition = "2018"
|
||||
build = "build.rs"
|
||||
@@ -56,6 +56,10 @@ winres = "0.1"
|
||||
serde_bytes = "0.11.5"
|
||||
serde_derive = "1.0.124"
|
||||
|
||||
[profile.release]
|
||||
opt-level = 3
|
||||
lto = true
|
||||
|
||||
[profile.dev]
|
||||
opt-level = 2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user