Cargo.toml
1.14 KB
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
# This is from the webpage:
# https://www.developer.com/languages/creating-an-api-with-rust-and-sqlite/
# I have fixed some things manually as the code on that page did not compile
# without.
# Additional informations at https://actix.rs/docs/databases/ assume one
# should use web::block to access the database...
# TODO check what is the difference to this approach.
# - well, we use web::block already for write actions.
# Introduction to rust async:
# https://gruberbastian.com/posts/rust_async/
# https://blog.logrocket.com/a-practical-guide-to-async-in-rust/
# https://os.phil-opp.com/async-await/
# Simple explanation on technical terms synchronous, asynchronous, concurrent
# and parallel.
# https://medium.com/plain-and-simple/synchronous-vs-asynchronous-vs-concurrent-vs-parallel-4342bfb8b9f2
[package]
name = "artshop-server"
version = "0.1.0"
workspace = ".."
edition = "2018"
[dependencies]
actix-files = "0.2"
actix-web = "2.0"
actix-rt = "1.1.1"
diesel = { version = "1.4.7", features = ["sqlite", "r2d2"]}
r2d2 = "0.8.9"
dotenv = "0.15.0"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
anyhow = "1.0"
chrono = "0.4.15"
listenfd = "0.3"