hippofish/packages/backend/native-utils/Cargo.toml

47 lines
1.1 KiB
TOML
Raw Normal View History

[package]
edition = "2021"
name = "native-utils"
version = "0.0.0"
2023-05-25 08:34:48 +02:00
[workspace]
2023-06-03 05:37:36 +02:00
members = ["migration"]
2023-06-02 14:48:12 +02:00
[features]
2023-06-02 18:19:36 +02:00
default = []
napi = ["dep:napi", "dep:napi-derive"]
2023-05-25 08:34:48 +02:00
[lib]
2023-06-02 14:48:12 +02:00
crate-type = ["cdylib", "lib"]
[dependencies]
async-trait = "0.1.75"
2023-06-02 14:48:12 +02:00
cfg-if = "1.0.0"
chrono = "0.4.31"
cuid2 = "0.1.2"
2023-06-02 14:48:12 +02:00
derive_more = "0.99.17"
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"
schemars = { version = "0.8.16", features = ["chrono"] }
sea-orm = { version = "0.12.10", features = ["sqlx-postgres", "runtime-tokio-rustls"] }
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108"
thiserror = "1.0.52"
tokio = { version = "1.35.1", features = ["full"] }
utoipa = "4.1.0"
2023-06-02 14:48:12 +02:00
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
napi = { version = "2.14.1", default-features = false, features = ["napi6", "tokio_rt"], optional = true }
napi-derive = { version = "2.14.5", optional = true }
2023-08-06 08:34:44 +02:00
basen = "0.1.0"
2023-06-02 14:48:12 +02:00
[dev-dependencies]
pretty_assertions = "1.4.0"
[build-dependencies]
napi-build = "2.1.0"
[profile.release]
lto = true