2023-05-11 08:56:26 +02:00
|
|
|
[workspace]
|
|
|
|
|
|
|
|
members = [
|
|
|
|
"affluences-api",
|
2023-05-13 13:08:03 +02:00
|
|
|
"affluences-cli",
|
2023-05-11 08:56:26 +02:00
|
|
|
]
|
2023-05-14 11:45:50 +02:00
|
|
|
# Don't build the CLI tool by default
|
|
|
|
default-members = [
|
2023-05-14 22:42:57 +02:00
|
|
|
".",
|
2023-05-14 11:45:50 +02:00
|
|
|
"affluences-api",
|
|
|
|
]
|
2023-05-14 11:43:04 +02:00
|
|
|
|
|
|
|
[package]
|
|
|
|
name = "affy"
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
affluences-api = { path = "./affluences-api" }
|
|
|
|
tokio = { version = "1.28.1", features = ["full"] }
|
|
|
|
chrono = "*"
|
|
|
|
uuid = "*"
|
|
|
|
poise = "0.5.5"
|
2023-05-15 13:52:30 +02:00
|
|
|
async-minecraft-ping = "0.8.0"
|
2023-05-16 09:00:12 +02:00
|
|
|
diesel = { version = "2.0.4", features = ["sqlite", "returning_clauses_for_sqlite_3_35", "r2d2"] }
|
2023-05-16 16:25:33 +02:00
|
|
|
diesel_migrations = { version = "2.0.0", features = [ "sqlite" ] }
|
2023-05-17 23:03:28 +02:00
|
|
|
# Force sqlite3 to be bundled, allowing for a fully static binary
|
|
|
|
libsqlite3-sys = { version = "*", features = ["bundled"] }
|
2023-05-20 21:13:59 +02:00
|
|
|
|
|
|
|
# https://stackoverflow.com/a/54842093
|
|
|
|
[profile.release]
|
|
|
|
lto = true # Enable link-time optimization
|
|
|
|
codegen-units = 1 # Reduce number of codegen units to increase optimizations
|
|
|
|
panic = 'abort' # Abort on panic
|
|
|
|
strip = true # Strip symbols from binary*
|