Cargo Features

astarte-interfaces has no features set by default.

[dependencies]
astarte-interfaces = { version = "0.1.0-alpha.1", features = ["preserve_order", "doc-fields", "server-fileds", "strict"] }
preserve_order

Keeps the order of the mappings

Enables serde_json

doc-fields

Add description and doc fields to the interfaces

Affects interface::Schema.description, interface::Schema.doc, mapping::InterfaceMapping.description, mapping::InterfaceMapping.doc

server-fileds

TODO: add the server fields

strict

TODO: improve the strictness