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

48 lines
1.2 KiB
TOML
Raw Normal View History

[package]
edition = "2021"
name = "native-utils"
version = "0.0.0"
2023-05-25 06:34:48 +00:00
[workspace]
2023-06-02 12:48:12 +00:00
members = ["migration/Cargo.toml"]
[features]
2023-06-02 16:19:36 +00:00
default = []
2023-06-02 12:48:12 +00:00
noarray = []
2023-06-02 15:55:14 +00:00
napi = ["dep:napi", "dep:napi-derive", "dep:radix_fmt"]
2023-05-25 06:34:48 +00:00
[lib]
2023-06-02 12:48:12 +00:00
crate-type = ["cdylib", "lib"]
[dependencies]
2023-06-02 12:48:12 +00:00
async-trait = "0.1.68"
cfg-if = "1.0.0"
chrono = "0.4.24"
cuid2 = "0.1.0"
derive_more = "0.99.17"
jsonschema = "0.17.0"
once_cell = "1.17.1"
parse-display = "0.8.0"
rand = "0.8.5"
schemars = { version = "0.8.12", features = ["chrono"] }
sea-orm = { version = "0.11.3", features = ["sqlx-postgres", "postgres-array", "sqlx-sqlite", "runtime-tokio-rustls"] }
serde = { version = "1.0.163", features = ["derive"] }
serde_json = "1.0.96"
thiserror = "1.0.40"
tokio = { version = "1.28.1", features = ["full"] }
utoipa = "3.3.0"
# Default enable napi4 feature, see https://nodejs.org/api/n-api.html#node-api-version-matrix
2023-06-02 15:55:14 +00:00
napi = { version = "2.12.0", default-features = false, features = ["napi6", "tokio_rt"], optional = true }
2023-06-02 12:48:12 +00:00
napi-derive = { version = "2.12.0", optional = true }
2023-06-02 15:55:14 +00:00
radix_fmt = { version = "1.0.0", optional = true }
2023-06-02 12:48:12 +00:00
[dev-dependencies]
pretty_assertions = "1.3.0"
[build-dependencies]
napi-build = "2.0.1"
[profile.release]
lto = true