kytea-tokenizer 0.10.0

Wrapper of tokenization by KyTea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(feature = "ffi")]
fn main() {
    println!("cargo:rerun-if-changed=lib/ckytea.cpp");
    println!("cargo:rustc-link-lib=kytea");
    cc::Build::new()
        .cpp(true)
        .file("lib/ckytea.cpp")
        .flag("-Wno-deprecated")
        .cpp_link_stdlib("stdc++")
        .compile("libckytea.a");
}

#[cfg(not(feature = "ffi"))]
fn main() {}