2021-11-23 09:32:08 +01:00
|
|
|
[package]
|
|
|
|
name = "rb-blog"
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
name = "rb_blog"
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "rb-blog"
|
|
|
|
path = "src/main.rs"
|
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
2021-12-25 10:42:36 +01:00
|
|
|
rb = { git = "https://git.rustybever.be/rusty-bever/common-rs.git" }
|
2021-11-23 09:32:08 +01:00
|
|
|
# Backend web framework
|
|
|
|
rocket = { version = "0.5.0-rc.1", features = [ "json", "uuid" ] }
|
|
|
|
# Used to provide Rocket routes with database connections
|
|
|
|
rocket_sync_db_pools = { version = "0.1.0-rc.1", default_features = false, features = [ "diesel_postgres_pool" ] }
|
|
|
|
# Used to (de)serialize JSON
|
2021-12-26 13:01:10 +01:00
|
|
|
serde = { version = "1.0.132", features = [ "derive" ] }
|
2021-11-23 09:32:08 +01:00
|
|
|
# ORM
|
2021-12-26 18:01:07 +01:00
|
|
|
diesel = { version = "1.4.8", features = ["postgres", "uuidv07", "chrono"] }
|
2021-11-23 09:32:08 +01:00
|
|
|
diesel_migrations = "1.4.0"
|
|
|
|
# To properly compile libpq statically
|
|
|
|
openssl = "0.10.36"
|
|
|
|
# For password hashing & verification
|
|
|
|
rust-argon2 = "0.8.3"
|
|
|
|
rand = "0.8.4"
|
|
|
|
uuid = { version = "0.8.2", features = ["serde"] }
|
|
|
|
# Authentification
|
2021-12-26 10:01:12 +01:00
|
|
|
jwt = "0.15.0"
|
2021-11-23 09:32:08 +01:00
|
|
|
hmac = "*"
|
|
|
|
sha2 = "*"
|
|
|
|
# Timestamps for JWT tokens
|
|
|
|
chrono = { version = "*", features = [ "serde" ] }
|
|
|
|
# Encoding of refresh tokens
|
|
|
|
base64 = "0.13.0"
|
|
|
|
# Reading in configuration files
|
|
|
|
figment = { version = "*", features = [ "yaml" ] }
|
2021-11-24 20:59:03 +01:00
|
|
|
|
|
|
|
[profile.dev]
|
|
|
|
lto = "off"
|
|
|
|
incremental = true
|
|
|
|
|
2021-11-25 00:46:53 +01:00
|
|
|
[profile.test]
|
|
|
|
lto = "off"
|
|
|
|
incremental = true
|
|
|
|
|
2021-11-24 20:59:03 +01:00
|
|
|
[profile.release]
|
|
|
|
lto = "fat"
|
|
|
|
codegen-units = 1
|
|
|
|
|
|
|
|
# For releases also try to max optimizations for dependencies:
|
|
|
|
[profile.release.build-override]
|
|
|
|
opt-level = 3
|
|
|
|
[profile.release.package."*"]
|
|
|
|
opt-level = 3
|