49 lines
1.3 KiB
TOML
49 lines
1.3 KiB
TOML
[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]
|
|
rb = { git = "https://git.rustybever.be/rusty-bever/common-rs.git", tag = "0.1.0" }
|
|
# 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.132", features = [ "derive" ] }
|
|
# ORM
|
|
diesel = { version = "1.4.8", features = ["postgres", "uuidv07", "chrono"] }
|
|
diesel_migrations = "1.4.0"
|
|
uuid = { version = "0.8.2", features = ["serde"] }
|
|
chrono = { version = "*", features = [ "serde" ] }
|
|
# Reading in configuration files
|
|
figment = { version = "*", features = [ "yaml" ] }
|
|
|
|
[profile.dev]
|
|
lto = "off"
|
|
incremental = true
|
|
|
|
[profile.test]
|
|
lto = "off"
|
|
incremental = true
|
|
|
|
[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
|