Skip to content

Commit

Permalink
feat: 添加trim-paths功能以优化构建
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow3aaa committed Nov 17, 2024
1 parent 15cacfc commit ea203e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cargo-features = ["trim-paths"]

[package]
name = "fas-rs"
version = "3.8.0"
Expand Down Expand Up @@ -50,10 +52,12 @@ serde_json = "1.0.132"
overflow-checks = false
opt-level = 3
strip = true
trim-paths = true

[profile.release]
overflow-checks = false
codegen-units = 1
lto = "fat"
opt-level = 3
strip = true
trim-paths = true
3 changes: 1 addition & 2 deletions maketools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,10 @@ def task(args):
cargo.arg("build --target aarch64-linux-android")
if nightly:
cargo.arg("-Z build-std")
cargo.arg("-Z trim-paths")

if release:
cargo.arg("--release")
if nightly:
cargo.arg("-Z trim-paths")
if verbose:
cargo.arg("--verbose")

Expand Down

0 comments on commit ea203e6

Please sign in to comment.