-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
151 lines (133 loc) · 3.49 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[package]
name = "asciii"
version = "3.10.0"
authors = ["Hendrik Sollich <[email protected]>"]
license = "MIT/Apache-2.0"
readme = "README.md"
description = """The advanced but simple commandline interface for invoice invocation.
This is an internal tool of the Studentencafe ascii in Dresden and therefore specialized for our use cases."""
homepage = "https://github.com/ascii-dresden/asciii/"
repository = "https://github.com/ascii-dresden/asciii/"
documentation = "https://docs.rs/asciii/"
edition = "2021"
build = true
autobins = false
include = [
"Cargo.toml",
".gitignore",
".travis.yml",
"./Cargo.toml",
"./History.md",
"./README.md",
"build.rs",
"lang/*",
"src/default_config.yml",
"src/**/*.rs",
"tests/**/*.rs",
"webapp/public/*",
]
exclude = ["*.pdf", "webapp/**/*", "pkg"]
[dependencies]
log = "0.4"
env_logger = "0.10"
yaml-rust = "0.4"
chrono = "0.4"
regex = "1.10"
lazy_static = "1.4"
maplit = "1.0"
clap = { version = "3", features = ["cargo"] }
clap_complete = "3"
enum_derive = "0.1"
custom_derive = "0.1"
open = "5"
crowbook-intl-runtime = "0.1"
rayon = { version = "1.8", optional = true }
itertools = "0.11"
rustyline = { version = "12", optional = true, features = ["derive"] }
linked-hash-map = { version = "0.5", features = ["serde_impl"] }
dirs = "5"
term = "0.7"
thiserror = "1.0"
anyhow = "1.0"
actix = { version = "0.13", optional = true }
actix-web = { version = "4", optional = true }
actix-files = { version = "0.6", optional = true }
bill = { version = "0.4", features = ["serialization"] }
icalendar = "0.15"
slug = "0.1"
tempdir = "0.3"
semver = "1.0"
term_size = "0.3"
prettytable-rs = { default-features = false, version = "0.10" }
# feature: document_export
# TODO: update to 4.x is trivial but requires testing with current content
handlebars = { version = "3.0", optional = true }
serde = { version = "1.0", optional = true }
serde_json = { version = "1.0", optional = true }
serde_yaml = { version = "0.9", optional = true }
serde_derive = { version = "1.0", optional = true }
ordered-float = { version = "4", optional = true }
num-traits = { version = "0.2", optional = true }
toml = "0.8"
# feature: git_statuses
git2 = { version = "0.18", default-features = false, optional = true }
color-backtrace = "0.6"
[dev-dependencies]
pretty_assertions = "1.4"
[features]
default = [
"cli",
"document_export",
"git_statuses",
"serialization",
"deserialization",
"server",
"shell",
"localize",
]
travis_compatible = [
"cli",
"document_export",
"git_statuses",
"serialization",
"deserialization",
"shell",
"meta",
"version_string",
"par_open",
]
mini_tool = ["cli", "document_export"]
full_tool = ["travis_compatible", "localize"]
server = ["actix", "actix-files", "actix-web"]
webapp = ["server"]
document_export = ["handlebars", "serialization"]
serde_base = ["serde", "serde_derive"]
serialization = ["serde_base", "serde_json"]
deserialization = ["serde_base", "serde_yaml", "ordered-float", "num-traits"]
meta = ["serialization", "deserialization"]
git_statuses = ["git2"]
shell = ["rustyline"]
version_string = []
localize = []
cli = []
nightly = []
par_open = ["rayon"]
manual = []
[profile.release]
opt-level = 'z' # Optimize for size.
lto = true
codegen-units = 1
panic = 'abort'
[[bin]]
test = false
doc = false
name = "asciii"
required-features = ["cli"]
[[bin]]
test = false
doc = false
name = "asciii-web"
required-features = ["server"]
[build-dependencies]
chrono = "0.4"
crowbook-intl = "0.2"