Skip to content

Commit

Permalink
Rename block-aligner-c to block_aligner_c to fix rust 1.79 breaking f…
Browse files Browse the repository at this point in the history
…oldseek
  • Loading branch information
milot-mirdita committed Jun 16, 2024
1 parent 7cd8939 commit ca58f9b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ corrosion_import_crate(
)
include_directories(lib/block-aligner/c)
if(EMSCRIPTEN)
corrosion_add_target_local_rustflags(block-aligner-c "-Clink-args=--no-entry -sRELOCATABLE=1")
corrosion_add_target_local_rustflags(block_aligner_c "-Clink-args=--no-entry -sRELOCATABLE=1")
endif()

set(CANDLE_FEATURE "")
Expand Down
2 changes: 1 addition & 1 deletion lib/block-aligner/c/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Minimal Cargo.toml to avoid downloading dependencies.

[package]
name = "block-aligner-c"
name = "block_aligner_c"
version = "0.4.0"
authors = ["c0deb0t <[email protected]>"]
edition = "2018"
Expand Down
2 changes: 1 addition & 1 deletion lib/block-aligner/c/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ all: example align_prefix align_local

block_aligner:
cargo build --release --features simd_avx2 --offline
cbindgen --config cbindgen.toml --crate block-aligner-c --output block_aligner.h --quiet .
cbindgen --config cbindgen.toml --crate block_aligner_c --output block_aligner.h --quiet .

example: block_aligner example.c
$(CC) $(CFLAGS) -o example example.c
Expand Down
2 changes: 1 addition & 1 deletion lib/block-aligner/c/cbindgen.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ after_includes = "#define ALIGNED(n) __attribute__ ((aligned(n)))"
aligned_n = "ALIGNED"

[parse]
expand = ["block-aligner-c"]
expand = ["block_aligner_c"]
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ add_library(foldseek-framework
FoldseekBase.cpp
)
mmseqs_setup_derived_target(foldseek-framework)
target_link_libraries(foldseek-framework gemmiwrapper 3di pulchra kerasify tmalign block-aligner-c)
target_link_libraries(foldseek-framework gemmiwrapper 3di pulchra kerasify tmalign block_aligner_c)
if(ENABLE_PROSTT5)
target_link_libraries(foldseek-framework cprostt5)
target_compile_definitions(foldseek-framework PUBLIC -DHAVE_PROSTT5=1)
Expand Down

0 comments on commit ca58f9b

Please sign in to comment.