Browse Source

build: perf exclusion of cargo package

master
Dnomd343 4 weeks ago
parent
commit
fa302f3130
  1. 4
      src/core_ffi/rust_ffi/CMakeLists.txt
  2. 12
      src/core_ffi/rust_ffi/Cargo.toml

4
src/core_ffi/rust_ffi/CMakeLists.txt

@ -17,7 +17,3 @@ if (KLSK_DEV_MODE)
set_target_properties(klotski_rs PROPERTIES OUTPUT_NAME klotski) set_target_properties(klotski_rs PROPERTIES OUTPUT_NAME klotski)
add_library(klotski::rs_ffi ALIAS klotski_rs) add_library(klotski::rs_ffi ALIAS klotski_rs)
endif() endif()
if (CARGO_BUILD)
install(TARGETS klotski_core DESTINATION .)
endif()

12
src/core_ffi/rust_ffi/Cargo.toml

@ -12,16 +12,16 @@ readme = "README.md"
# TODO: add `homepage` and `documentation` # TODO: add `homepage` and `documentation`
exclude = [ exclude = [
"/CMakeLists.txt",
"/klotski/src/core/main.cc", "/klotski/src/core/main.cc",
"/klotski/src/core/benchmark/", "/klotski/src/core/benchmark/",
#"/klotski/src/core/utils/metadata.h", # TODO: code generated in crate dir is not allowed in cargo. #"/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/*",
"!/klotski/third_party/parallel-hashmap/LICENSE", "!klotski/third_party/parallel-hashmap/cmake/",
"!/klotski/third_party/parallel-hashmap/cmake/*.cmake", "!klotski/third_party/parallel-hashmap/LICENSE",
"!/klotski/third_party/parallel-hashmap/CMakeLists.txt", "!klotski/third_party/parallel-hashmap/CMakeLists.txt",
"!/klotski/third_party/parallel-hashmap/parallel_hashmap/*.h", "!klotski/third_party/parallel-hashmap/parallel_hashmap/",
"/klotski/third_party/parallel-hashmap/",
] ]
[profile.release] [profile.release]

Loading…
Cancel
Save