From 2695b1e1163eca00cb6179ccf0cd1f82f1db31f5 Mon Sep 17 00:00:00 2001 From: Cyrix126 Date: Tue, 19 Nov 2024 15:16:15 +0100 Subject: [PATCH] feat: optimize build time for dev --- .github/workflows/lockbud.yml | 2 +- Cargo.toml | 13 ++++--------- rust-toolchain.toml | 5 +++-- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/lockbud.yml b/.github/workflows/lockbud.yml index dc338c4..3fea7de 100644 --- a/.github/workflows/lockbud.yml +++ b/.github/workflows/lockbud.yml @@ -17,7 +17,7 @@ jobs: run: | git clone https://github.com/BurtonQin/lockbud.git cd lockbud - sed -i 's/2024-10-05/2024-10-11/g' rust-toolchain.toml + sed -i 's/-2024-10-05//g' rust-toolchain.toml cargo install --path . cd .. cargo clean diff --git a/Cargo.toml b/Cargo.toml index 2ae6859..a121ea6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,4 @@ -cargo-features = ["profile-rustflags"] +cargo-features = ["profile-rustflags", "codegen-backend"] [package] name = "gupaxx" version = "1.5.3" @@ -8,20 +8,15 @@ documentation = "https://github.com/cyrix126/gupaxx" edition = "2021" [profile.release] -# panic = "abort" +panic = "abort" lto = "fat" codegen-units = 1 incremental = false -# strip = "symbols" +strip = "symbols" rustflags = ["-Zlocation-detail=none"] [profile.dev] -opt-level = 1 -debug = true -strip = "none" -debug-assertions = true -overflow-checks = true -incremental = true +codegen-backend = "cranelift" [features] default = [] diff --git a/rust-toolchain.toml b/rust-toolchain.toml index c0a30f8..017f65a 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,5 @@ [toolchain] -channel = "nightly-2024-10-11" -components = [ "rustfmt", "rustc-dev", "cargo", "clippy", "rust-analyzer", "rust-src", "llvm-tools-preview"] +# channel = "nightly-2024-10-11" +channel = "nightly" +components = [ "rustfmt", "rustc-dev", "cargo", "clippy", "rust-analyzer", "rust-src", "llvm-tools-preview", "rustc-codegen-cranelift-preview"] target = ["x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin","x86_64-pc-windows-gnu"]