[package] name = "onechatsocial-models" version = "0.6.16" edition = "2021" license = "AGPL-3.0-or-later" authors = ["Paul Makles "] description = "Revolt Backend: API Models" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] serde = ["dep:serde", "onechatsocial-permissions/serde", "indexmap/serde"] schemas = ["dep:schemars", "onechatsocial-permissions/schemas"] validator = ["dep:validator"] partials = ["dep:revolt_optional_struct", "serde", "schemas"] default = ["serde", "partials"] [dependencies] # Core onechatsocial-config = { version = "0.6.16", path = "../config" } onechatsocial-permissions = { version = "0.6.16", path = "../permissions" } # Utility regex = "1" indexmap = "1.9.3" once_cell = "1.17.1" # Serialisation revolt_optional_struct = { version = "0.2.0", optional = true } serde = { version = "1", features = ["derive"], optional = true } iso8601-timestamp = { version = "0.2.11", features = ["schema", "bson"] } # Spec Generation schemars = { version = "0.8.8", optional = true, features = ["indexmap1"] } # Validation validator = { version = "0.16.0", optional = true, features = ["derive"] }