forked from Dengjianping/Actix-Blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
60 lines (49 loc) · 1.19 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
[package]
name = "actix_blog"
version = "0.2.0"
authors = ["Dengjianping <djptux@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
proc-macro = true
path = "src/lib.rs"
[[bin]]
name = "main"
doc = false
path = "src/main.rs"
[dependencies]
# web framework
actix-web = { version = "1.0", features = ["ssl"] }
actix = "0.8"
actix-session = "0.1"
actix-files = "0.1"
actix-rt = "0.2"
openssl = { version = "0.10", features = ["v110"] }
futures = "0.1"
bcrypt = "0.5"
itertools = "0.8"
# error handler
failure = "0.1"
# database orm
diesel = { version = "1.4", features = ["postgres", "r2d2", "chrono"] }
# for serilize and diserialize
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
num_cpus = "1.10"
chrono = { version = "0.4", features = ["serde", "rustc-serialize"] }
toml = "0.5"
regex = "1.1"
lazy_static = "1.3"
env_logger = "0.6"
dotenv = "0.14"
# template engine
# tera = "1.0.0-beta.12"
tera = "0.11"
# for code genration, proc macro
syn = { version = "0.15", features = ["full", "extra-traits"] }
quote = "0.6"
proc-macro2 = "0.4"
[profile.release]
opt-level = 3
lto = true # optimization for Link-Time Optimizations