File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ edition = "2018"
14
14
[dependencies ]
15
15
libc = " 0.2"
16
16
liblbfgs-sys = " 0.1.0"
17
- cqdb-sys = " 0.1.0"
17
+ libcqdb = " 0.1.0"
18
18
19
19
[build-dependencies ]
20
20
cc = " 1.0"
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ fn fail_on_empty_directory(name: &str) {
13
13
14
14
fn build_crfsuite ( ) {
15
15
let mut cfg = cmake:: Config :: new ( "" ) ;
16
- cfg. register_dep ( "cqdb " ) . register_dep ( "lbfgs" ) ;
16
+ cfg. register_dep ( "libcqdb " ) . register_dep ( "lbfgs" ) ;
17
17
if cfg ! ( target_os = "macos" ) {
18
18
let target_arch = std:: env:: var ( "CARGO_CFG_TARGET_ARCH" ) . unwrap ( ) ;
19
19
if target_arch == "x86_64" {
@@ -22,7 +22,7 @@ fn build_crfsuite() {
22
22
}
23
23
let dst = cfg. build ( ) ;
24
24
println ! ( "cargo:rustc-link-search=native={}/lib" , dst. display( ) ) ;
25
- println ! ( "cargo:rustc-link-lib=static=cqdb " ) ;
25
+ // println!("cargo:rustc-link-lib=static=libcqdb ");
26
26
println ! ( "cargo:rustc-link-lib=static=lbfgs" ) ;
27
27
println ! ( "cargo:rustc-link-lib=static=crfsuite" ) ;
28
28
println ! ( "cargo:root={}" , dst. to_str( ) . unwrap( ) ) ;
Original file line number Diff line number Diff line change 2
2
#![ allow( non_snake_case) ]
3
3
#![ allow( non_upper_case_globals) ]
4
4
5
+ /// Force linking with libcqdb
6
+ #[ doc( hidden) ]
7
+ pub use libcqdb:: * ;
8
+
5
9
mod bindings;
6
10
7
11
pub use self :: bindings:: * ;
You can’t perform that action at this time.
0 commit comments