-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
53 lines (42 loc) · 1.43 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[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 <jiping_zhou@foxmail.com>"]
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"]