[package]
name = "shared_entity"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0.75"
serde = "1.0.188"
serde_json.workspace = true
serde_repr = "0.1.16"
thiserror = "1.0.47"
reqwest = "0.11.18"
uuid = { version = "1.3.3", features = ["v4"] }
gotrue-entity = { path = "../gotrue-entity" }
database-entity.workspace = true
collab-entity = { version = "0.1.0" }
app-error = { workspace = true }

actix-web = { version = "4.4.0", default-features = false, features = ["http2"], optional = true }
sqlx = { version = "0.7", default-features = false, features = ["postgres", "json"], optional = true }
validator = { version = "0.16", features = ["validator_derive", "derive"], optional = true }
opener = "0.6.1"
url = "2.4.1"
rust-s3 = "0.33.0"

[features]
cloud = ["actix-web", "sqlx", "validator"]
