-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
89 lines (80 loc) · 2.97 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
[package]
# We use underscores instead of hyphens since Cargo will internally replace hyphens with underscores anyway (hyphens are disallowed as Cargo only support underscore identifiers)
name = "overdue_backend"
description = "Backend Database Server Code of the Overdue Game."
version = "0.2.0"
authors = ["James Raphael Tiovalen <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/jamestiotio/overdue_backend"
edition = "2021"
keywords = ["backend", "server", "api", "endpoint", "endpoints", "database", "postgres", "postgresql", "sql", "actix", "actix-web", "http", "web", "app", "webapp", "async"]
categories = ["api-bindings", "network-programming", "asynchronous", "web-programming::http-server", "database", "database-implementations", "concurrency"]
[[bin]]
name = "overdue_backend"
path = "src/main.rs"
[features]
default = []
# Integration tests
integration = []
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# Avoid specifying non-essential extra unused dependencies so as to avoid potential version incompatibility conflicts (multiple transitive dependencies can cause some serious grief)
actix-web = { version = "3.3.2", features = ["openssl"] }
actix-rt = "1.1.1"
actix-cors = "0.5.4"
actix-ratelimit = "0.3.1"
actix-files = "0.5.0"
validator = { version = "0.14", features = ["derive"] }
futures = "0.3"
env_logger = "0.9"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
json = "0.12"
tokio-pg-mapper = "0.1.4"
tokio-pg-mapper-derive = "0.1.4"
deadpool-postgres = "0.5.0"
tokio-postgres = { version = "0.5.5", features = ["with-serde_json-1"] }
postgres-types = { version = "0.1.2", features = ["derive"] }
openssl = { version = "0.10.48", features = ["vendored"] }
native-tls = "0.2.7"
postgres-native-tls = "0.5.0"
dotenv = "0.15.0"
config = "0.12.0"
thiserror = "1.0.24"
regex = "1.4.3"
lazy_static = "1.4.0"
paperclip = { version = "0.6", features = ["actix"] }
slog = "2.7.0"
slog-term = "2.8.0"
slog-async = "2.6.0"
chrono = "0.4.19"
actix-web-static-files = "4.0"
actix-web-middleware-redirect-https = "3.0.1"
[build-dependencies]
actix-web-static-files = "4.0"
[dev-dependencies]
cargo-watch = "8.1.1"
cargo-deb = "1.36.0"
cargo-tarpaulin = "0.19.1"
cargo-audit = "0.16.0"
dotenv-linter = "3.2.0"
tokio-test = "0.4.2"
[profile.release]
lto = true
opt-level = 3
codegen-units = 2 # We use 2 instead of 1 since no LTO is performed if codegen-units is 1
[package.metadata.deb]
maintainer = "James Raphael Tiovalen <[email protected]>"
copyright = "2021, James Raphael Tiovalen"
depends = "$auto, systemd"
conf-files = ["/etc/systemd/system/overdue_backend.service"]
extended-description = """\
Backend Database Server of the Overdue Game.\
"""
section="httpd"
priority="optional"
assets= [
["target/x86_64-unknown-linux-gnu/release/overdue_backend", "/usr/local/bin/", "755"],
["assets/overdue_backend.service", "/etc/systemd/system/", "644"],
]