opencc 0.3.0

OpenCC binding for Rust


Build Status Coverage Status

OpenCC binding for Rust.

Read the documentation.


You should install OpenCC 1.0.x library first.

Add it to your Cargo.toml:

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("開放中文轉換"));


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