refactor(core/models): transitively apply feature flags
This commit is contained in:
@@ -9,8 +9,8 @@ description = "Revolt Backend: API Models"
|
|||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
serde = [ "dep:serde" ]
|
serde = [ "dep:serde", "dep:revolt-permissions/serde" ]
|
||||||
schemas = [ "dep:schemars" ]
|
schemas = [ "dep:schemars", "dep:revolt-permissions/schemas" ]
|
||||||
validator = [ "dep:validator" ]
|
validator = [ "dep:validator" ]
|
||||||
partials = [ "dep:revolt_optional_struct", "serde", "schemas" ]
|
partials = [ "dep:revolt_optional_struct", "serde", "schemas" ]
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ default = [ "serde", "partials" ]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
# Core
|
# Core
|
||||||
revolt-permissions = { version = "0.6.0-rc.2", path = "../permissions", features = [ "serde" ] }
|
revolt-permissions = { version = "0.6.0-rc.2", path = "../permissions" }
|
||||||
|
|
||||||
# Serialisation
|
# Serialisation
|
||||||
revolt_optional_struct = { version = "0.2.0", optional = true }
|
revolt_optional_struct = { version = "0.2.0", optional = true }
|
||||||
|
|||||||
Reference in New Issue
Block a user