[package] name = "bilingual" version = "0.1.3" edition = "2021" license = "MIT" build = "build.rs" exclude = ["assets", "examples", "benches", "tests", "CHANGELOG.md", "bilingual.*", ".github"] authors = ["zjp "] repository = "https://github.com/zjp-CN/bilingual" categories = ["command-line-utilities", "text-processing"] description = "A cmdline tool used for markdown translation via calling Chinese translation api cloud services." [dependencies] pulldown-cmark-to-cmark = "10" arrayvec = "0.7" log = {version = "0.4"} reqwest = {version = "0.11", features = ["json", "blocking"], optional=true} serde_json = {version = "1", optional = true} anyhow = {version = "1.0", optional = true} argh = {version = "0.1", optional = true} translation-api-cn = {version="0.1.3", path="./translation-api-cn", optional = true} serde = {version = "1", features = ["derive"], optional = true} toml = {version = "0.7", optional = true} simplelog = {version = "0.12", optional = true} dirs = {version = "4", optional = true} [dependencies.pulldown-cmark] version = "0.9" default-features = false [features] default = ["bin"] bin = ["argh", "reqwest", "serde_json", "anyhow", "translation-api-cn", "serde", "toml", "simplelog", "dirs"] [[bin]] name = "bilingual" required-features = ["bin"] [dev-dependencies] insta = "1.8" tl = "0.7" comment = "0.1" [profile.release] lto = true opt-level = 3 [workspace] members = ["translation-api-cn"]