7 releases

Uses old Rust 2015

0.3.0 Jan 31, 2018
0.2.3 Jan 30, 2018
0.2.2 Aug 15, 2016
0.2.1 May 28, 2015
0.1.1 May 27, 2015

#1619 in Text processing

Download history 18/week @ 2023-10-26 6/week @ 2023-11-02 7/week @ 2023-11-09 6/week @ 2023-11-16 17/week @ 2023-11-23 35/week @ 2023-11-30 13/week @ 2023-12-07 13/week @ 2023-12-14 19/week @ 2023-12-21 18/week @ 2023-12-28 8/week @ 2024-01-04 13/week @ 2024-01-11 20/week @ 2024-01-18 10/week @ 2024-01-25 9/week @ 2024-02-01 16/week @ 2024-02-08

56 downloads per month

MIT license

7KB
79 lines

opencc-rs

Build Status Coverage Status Crates.io

OpenCC binding for Rust.

Read the documentation.

Installation

You should install OpenCC 1.0.x library first.

Add it to your Cargo.toml:

[dependencies]
opencc = "*"

Add extern crate opencc to your crate root and your're good to go! For example:

extern crate opencc;

use opencc::OpenCC;

fn main() {
    let cc = OpenCC::new("t2s.json");
    println!("{}", cc.convert("乾坤一擲"));
    println!("{}", cc.convert("開放中文轉換"));
}

License

This work is released under the MIT license. A copy of the license is provided in the LICENSE file.

Dependencies

~42KB