{"id":15346424,"url":"https://github.com/messense/opencc-rs","last_synced_at":"2025-04-15T04:12:15.704Z","repository":{"id":32718387,"uuid":"36308111","full_name":"messense/opencc-rs","owner":"messense","description":"OpenCC binding for Rust.","archived":false,"fork":false,"pushed_at":"2018-01-31T01:58:56.000Z","size":4447,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T04:12:10.182Z","etag":null,"topics":["binding","opencc","rust"],"latest_commit_sha":null,"homepage":"https://messense.github.io/opencc-rs","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/messense.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-26T16:14:07.000Z","updated_at":"2025-01-08T07:48:09.000Z","dependencies_parsed_at":"2022-07-12T16:09:44.467Z","dependency_job_id":null,"html_url":"https://github.com/messense/opencc-rs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messense%2Fopencc-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messense%2Fopencc-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messense%2Fopencc-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messense%2Fopencc-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/messense","download_url":"https://codeload.github.com/messense/opencc-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249003955,"owners_count":21196793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binding","opencc","rust"],"created_at":"2024-10-01T11:22:21.577Z","updated_at":"2025-04-15T04:12:15.689Z","avatar_url":"https://github.com/messense.png","language":"Rust","readme":"# opencc-rs\n\n[![Build Status](https://travis-ci.org/messense/opencc-rs.svg)](https://travis-ci.org/messense/opencc-rs)\n[![Coverage Status](https://coveralls.io/repos/messense/opencc-rs/badge.svg)](https://coveralls.io/r/messense/opencc-rs)\n[![Crates.io](https://img.shields.io/crates/v/opencc.svg)](https://crates.io/crates/opencc)\n\nOpenCC binding for Rust.\n\n[Read the documentation](https://messense.github.io/opencc-rs).\n\n\n## Installation\n\nYou should install [OpenCC 1.0.x](https://github.com/BYVoid/OpenCC) library first.\n\nAdd it to your ``Cargo.toml``:\n\n```toml\n[dependencies]\nopencc = \"*\"\n```\n\nAdd ``extern crate opencc`` to your crate root and your're good to go!\nFor example:\n\n```rust\nextern crate opencc;\n\nuse opencc::OpenCC;\n\nfn main() {\n    let cc = OpenCC::new(\"t2s.json\");\n    println!(\"{}\", cc.convert(\"乾坤一擲\"));\n    println!(\"{}\", cc.convert(\"開放中文轉換\"));\n}\n```\n\n\n## License\n\nThis work is released under the MIT license. A copy of the license is provided in the [LICENSE](./LICENSE) file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessense%2Fopencc-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmessense%2Fopencc-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmessense%2Fopencc-rs/lists"}