iceshrimp-legacy/packages/backend/native-utils/Cargo.toml

48 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 = []
2023-06-02 14:48:12 +02:00
noarray = []
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]
2023-06-02 14:48:12 +02: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"
radix_fmt = "1.0.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
2023-06-03 09:41:30 +02:00
napi = { version = "2.13.1", default-features = false, features = ["napi6", "tokio_rt"], optional = true }
2023-06-02 14:48:12 +02:00
napi-derive = { version = "2.12.0", optional = true }
[dev-dependencies]
pretty_assertions = "1.3.0"
[build-dependencies]
napi-build = "2.0.1"
[profile.release]
lto = true