diff --git a/web/Rust/axum/Cargo.toml b/web/Rust/axum/Cargo.toml index 0ce985d..3ad6036 100644 --- a/web/Rust/axum/Cargo.toml +++ b/web/Rust/axum/Cargo.toml @@ -3,6 +3,9 @@ name = "phthonus" version = "0.1.0" edition = "2021" +[build] +rustflags = ["-C", "target-cpu=native"] + [dependencies] # server axum = "0.7.5" diff --git a/web/Rust/axum/Makefile b/web/Rust/axum/Makefile index 2371f9a..fc6ba34 100644 --- a/web/Rust/axum/Makefile +++ b/web/Rust/axum/Makefile @@ -38,19 +38,19 @@ lint: fix: $(CARGO) fix --allow-dirty --all-features && $(CARGO) fmt -build-linux-musl: clean-release +linux-musl: clean-release $(CROSS) build --release --target x86_64-unknown-linux-musl -build-linux-gnu: clean-release +linux-gnu: clean-release $(CROSS) build --release --target x86_64-unknown-linux-gnu -build-windows-gnu: clean-release +windows-gnu: clean-release $(CROSS) build --release --target x86_64-pc-windows-gnu -build-freebsd: clean-release +freebsd: clean-release $(CROSS) build --release --target x86_64-unknown-freebsd -build-loongarch: clean-release +loongarch: clean-release $(CROSS) build --release --target loongarch64-unknown-linux-gnu deps: