66 lines
1.7 KiB
TOML
66 lines
1.7 KiB
TOML
[package]
|
|
name = "rb-gw"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
|
|
[lib]
|
|
name = "rb_gw"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "rb-gw"
|
|
path = "src/main.rs"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
rb = { git = "https://git.hackbever.be/rusty-bever/common-rs.git" }
|
|
# 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
|
|
serde = { version = "1.0.127", features = [ "derive" ] }
|
|
# ORM
|
|
diesel = { version = "1.4.7", features = ["postgres", "uuidv07", "chrono"] }
|
|
diesel_migrations = "1.4.0"
|
|
# For password hashing & verification
|
|
rust-argon2 = "0.8.3"
|
|
rand = "0.8.4"
|
|
uuid = { version = "0.8.2", features = ["serde"] }
|
|
# Authentification
|
|
jwt = "0.14.0"
|
|
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" ] }
|
|
mimalloc = { version = "0.1.26", default_features = false }
|
|
reqwest = { version = "0.11.6", features = [ "stream" ] }
|
|
tokio-util = {version="*", features=[ "compat" ] }
|
|
bytes = "*"
|
|
futures = "0.3.18"
|
|
|
|
[profile.dev]
|
|
lto = "off"
|
|
incremental = true
|
|
|
|
[profile.test]
|
|
lto = "off"
|
|
incremental = true
|
|
|
|
[profile.release]
|
|
lto = "fat"
|
|
incremental = true
|
|
codegen-units = 1
|
|
panic = "abort"
|
|
|
|
# For releases also try to max optimizations for dependencies:
|
|
[profile.release.build-override]
|
|
opt-level = 3
|
|
[profile.release.package."*"]
|
|
opt-level = 3
|