Cargo.toml 1.33 KB
# 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-rt = "1.1.1"
actix-web = "2.0"
anyhow = "1.0"
artshop-common = { path = "../common" }
async-std = "^1.10"
chrono = "0.4.15"
diesel = { version = "1.4.7", features = ["sqlite", "r2d2"]}
diffy = "0.2"
dotenv = "0.15.0"
flate2 = "^1.0"
futures = "^0.3"
listenfd = "0.3"
r2d2 = "0.8.9"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
#tokio = { version = "1", features = ["full"] }
uuid = { version = "^0.8", features = ["v4"] }