2023-03-31 03:58:28 +02:00
|
|
|
[package]
|
|
|
|
edition = "2021"
|
2024-02-12 15:14:23 +01:00
|
|
|
name = "backend-rs"
|
2023-03-31 03:58:28 +02:00
|
|
|
version = "0.0.0"
|
2024-02-13 14:22:25 +01:00
|
|
|
rust-version = "1.74"
|
2023-03-31 03:58:28 +02:00
|
|
|
|
2023-06-02 14:48:12 +02:00
|
|
|
[features]
|
2023-06-02 18:19:36 +02:00
|
|
|
default = []
|
2023-07-10 07:39:33 +02:00
|
|
|
napi = ["dep:napi", "dep:napi-derive"]
|
2023-05-25 08:34:48 +02:00
|
|
|
|
2023-03-31 03:58:28 +02:00
|
|
|
[lib]
|
2023-06-02 14:48:12 +02:00
|
|
|
crate-type = ["cdylib", "lib"]
|
2023-03-31 03:58:28 +02:00
|
|
|
|
|
|
|
[dependencies]
|
2024-03-26 12:46:44 +01:00
|
|
|
async-trait = "0.1.79"
|
2023-06-02 14:48:12 +02:00
|
|
|
cfg-if = "1.0.0"
|
2024-03-15 17:18:16 +01:00
|
|
|
chrono = "0.4.35"
|
2024-01-11 02:21:46 +01:00
|
|
|
cuid2 = "0.1.2"
|
|
|
|
jsonschema = "0.17.1"
|
|
|
|
once_cell = "1.19.0"
|
|
|
|
parse-display = "0.8.2"
|
2023-06-02 14:48:12 +02:00
|
|
|
rand = "0.8.5"
|
2024-01-11 02:21:46 +01:00
|
|
|
schemars = { version = "0.8.16", features = ["chrono"] }
|
2024-03-23 13:39:11 +01:00
|
|
|
sea-orm = { version = "0.12.15", features = ["sqlx-postgres", "runtime-tokio-rustls"] }
|
2024-03-15 17:18:16 +01:00
|
|
|
serde = { version = "1.0.197", features = ["derive"] }
|
2024-03-26 12:46:44 +01:00
|
|
|
serde_json = "1.0.115"
|
2024-03-15 17:18:16 +01:00
|
|
|
thiserror = "1.0.58"
|
|
|
|
tokio = { version = "1.36.0", features = ["full"] }
|
2023-06-02 14:48:12 +02:00
|
|
|
|
2023-03-31 03:58:28 +02:00
|
|
|
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
|
2024-04-06 21:58:43 +02:00
|
|
|
napi = { version = "2.16.1", default-features = false, features = ["napi9", "tokio_rt", "chrono_date", "serde-json"], optional = true }
|
2024-03-26 12:46:44 +01:00
|
|
|
napi-derive = { version = "2.16.1", optional = true }
|
2023-08-06 08:34:44 +02:00
|
|
|
basen = "0.1.0"
|
2023-06-02 14:48:12 +02:00
|
|
|
|
|
|
|
[dev-dependencies]
|
2024-01-11 02:21:46 +01:00
|
|
|
pretty_assertions = "1.4.0"
|
2023-03-31 03:58:28 +02:00
|
|
|
|
|
|
|
[build-dependencies]
|
2024-03-15 17:18:16 +01:00
|
|
|
napi-build = "2.1.2"
|
2023-03-31 03:58:28 +02:00
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
lto = true
|