Skip to content

Commit f237ff0

Browse files
Update the Rust regex crate and get it building
Remove references to the simd-accel feature, which is no longer supported. Update to the latest version, which is 1.3.7. Remove the space from the wrapper-crate name, as cargo no longer permits the space.
1 parent 7d6be8a commit f237ff0

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/rust/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ if(CMAKE_BUILD_TYPE MATCHES "^Release")
1515
list(APPEND CARGO_BUILD_OPT "--release")
1616
endif()
1717

18-
if(${RUST_C_VERSION} MATCHES "nightly")
19-
message("-- Found nightly. Use feature 'simd-accel': ON")
20-
21-
list(APPEND CARGO_BUILD_OPT "--features" "simd-accel")
22-
else()
23-
message("-- Found stable. Use feature 'simd-accel': OFF")
24-
endif()
25-
2618
add_custom_target(librregex ALL
2719
# create rust regex library
2820
COMMAND cargo build -v ${CARGO_BUILD_OPT}

src/rust/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "rust regex"
2+
name = "rust-regex"
33
version = "0.1.0"
44
authors = ["Daniel Schmidt"]
55

@@ -8,9 +8,8 @@ name = "rregex"
88
crate-type = ["staticlib"]
99

1010
[dependencies]
11-
regex = { version = "0.2.1"}
11+
regex = "1.3.7"
1212
libc = "0.2.19"
1313

1414
[features]
15-
simd-accel = ["regex/simd-accel"]
1615

0 commit comments

Comments
 (0)