From fa302f313087b6557aca260e36cd02f1f41f2edf Mon Sep 17 00:00:00 2001 From: Dnomd343 Date: Sat, 28 Dec 2024 15:07:18 +0800 Subject: [PATCH] build: perf exclusion of cargo package --- src/core_ffi/rust_ffi/CMakeLists.txt | 4 ---- src/core_ffi/rust_ffi/Cargo.toml | 12 ++++++------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/core_ffi/rust_ffi/CMakeLists.txt b/src/core_ffi/rust_ffi/CMakeLists.txt index 01c0a94..cb7c543 100644 --- a/src/core_ffi/rust_ffi/CMakeLists.txt +++ b/src/core_ffi/rust_ffi/CMakeLists.txt @@ -17,7 +17,3 @@ if (KLSK_DEV_MODE) set_target_properties(klotski_rs PROPERTIES OUTPUT_NAME klotski) add_library(klotski::rs_ffi ALIAS klotski_rs) endif() - -if (CARGO_BUILD) - install(TARGETS klotski_core DESTINATION .) -endif() diff --git a/src/core_ffi/rust_ffi/Cargo.toml b/src/core_ffi/rust_ffi/Cargo.toml index b18c3f6..2f23da7 100644 --- a/src/core_ffi/rust_ffi/Cargo.toml +++ b/src/core_ffi/rust_ffi/Cargo.toml @@ -12,16 +12,16 @@ readme = "README.md" # TODO: add `homepage` and `documentation` exclude = [ + "/CMakeLists.txt", "/klotski/src/core/main.cc", "/klotski/src/core/benchmark/", #"/klotski/src/core/utils/metadata.h", # TODO: code generated in crate dir is not allowed in cargo. - # TODO: this is not a robust solution, we may link them manually. - "!/klotski/third_party/parallel-hashmap/LICENSE", - "!/klotski/third_party/parallel-hashmap/cmake/*.cmake", - "!/klotski/third_party/parallel-hashmap/CMakeLists.txt", - "!/klotski/third_party/parallel-hashmap/parallel_hashmap/*.h", - "/klotski/third_party/parallel-hashmap/", + "klotski/third_party/parallel-hashmap/*", + "!klotski/third_party/parallel-hashmap/cmake/", + "!klotski/third_party/parallel-hashmap/LICENSE", + "!klotski/third_party/parallel-hashmap/CMakeLists.txt", + "!klotski/third_party/parallel-hashmap/parallel_hashmap/", ] [profile.release]