feat: basic api & model for post

This commit is contained in:
2022-03-15 12:31:46 +08:00
parent 0895bf62fe
commit a9d7576ed4
13 changed files with 423 additions and 0 deletions

14
Cargo.toml Normal file
View File

@@ -0,0 +1,14 @@
[package]
name = "hole-thu"
version = "0.1.0"
edition = "2021"
license = "AGPL-3.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rocket = { version = "0.5.0-rc.1", features = ["json"] }
diesel = { version = "1.4.8", features= ["sqlite", "chrono"] }
chrono = { version="0.4", features=["serde"] }
rand = "0.8.5"
dotenv = "0.15.0"