-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
58 lines (46 loc) · 1.31 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
54
55
56
57
58
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[package]
name = "obs-dict-sync"
description = "A quick and dirty tool to synchronize Obsidian.md user dictionaries."
version = "0.1.1"
edition = "2021"
authors = ["kquinsland"]
homepage = "https://github.com/kquinsland/obsidian-dict-sync"
repository = "https://github.com/kquinsland/obsidian-dict-sync"
license-file = "LICENSE"
categories = ["command-line-utilities"]
# Needed for built crate
build = "build.rs"
[dependencies]
serde = { version = "1.0", features = ["derive"] }
clap = { version = "4.1.11", features = ["derive", "env"] }
toml = "0.8"
log = "0.4"
env_logger = "0.11"
# Needed for relative dict path expansions
shellexpand = "3.0"
# For dictionary file hash
md5 = "0.7"
built = { version = "0.7", features = ["chrono", "semver"] }
const_format = "0.2.32"
[build-dependencies]
built = { version = "0.7", features = [
"cargo-lock",
"dependency-tree",
"git2",
"chrono",
"semver",
] }
# Production release should be ultra compact
[profile.release]
# No symbols
strip = true
# Optimize for size
opt-level = "s"
## Does make compile/link time longer bug gets us smallest possible binary
# Link time optimize.
lto = true
# Don't do parallel codegen
codegen-units = 1
[dev-dependencies]
tempfile = "3.3.0"