From f5ff93b65ead2838e7477a7945d5d0bdcb9df721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=AD=A3=E8=B6=85?= Date: Tue, 15 Jul 2025 02:24:13 +0800 Subject: [PATCH] fix: restore working build configuration by removing cargo.config.toml (#206) - Remove cargo.config.toml file that was causing build issues - Restore .github/workflows/build.yml to working state from commit 2e9792577fd55cfa61745bf477dff22d356797b2 - These changes ensure the build system works correctly again --- .github/workflows/build.yml | 1 - cargo.config.toml | 55 ------------------------------------- 2 files changed, 56 deletions(-) delete mode 100644 cargo.config.toml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3e98f2f..231fbe63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -283,7 +283,6 @@ jobs: fi fi - # Native/cross compilation outputs to target/${target}/release/rustfs cd target/${{ matrix.target }}/release zip "../../../${PACKAGE_NAME}.zip" rustfs cd ../../.. diff --git a/cargo.config.toml b/cargo.config.toml deleted file mode 100644 index 87ffdf83..00000000 --- a/cargo.config.toml +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 2024 RustFS Team -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# Build optimization settings -[build] -# Use all available CPU cores for parallel compilation -jobs = 0 # 0 = use all cores - -[target.x86_64-unknown-linux-musl] -# Use lld linker for faster linking -linker = "lld" - -[target.x86_64-unknown-linux-gnu] -# Use lld linker for faster linking -linker = "lld" - -[target.aarch64-unknown-linux-gnu] -# Use lld linker for faster linking -linker = "lld" - -[profile.release] -# Optimize for size and speed -codegen-units = 1 -lto = true -panic = "abort" -strip = true -debug = false - -[profile.dev] -# Faster incremental builds during development -incremental = true -debug = true - -[registry] -# Use sparse registry protocol for faster dependency resolution -default = "sparse+https://index.crates.io/" - -[source.crates-io] -# Use sparse registry protocol -replace-with = "sparse+https://index.crates.io/" - -[net] -# Use git CLI for better performance with private repos -git-fetch-with-cli = true