Add a serde feature to Slint

CC discussion #3314
This commit is contained in:
Olivier Goffart 2023-08-23 12:30:22 +02:00 committed by Olivier Goffart
parent ec32931985
commit 2acf687cf3

View file

@ -56,6 +56,10 @@ libm = ["i-slint-core/libm"]
## of the [log](https://crates.io/crates/log) crate instead of just `println!()`.
log = ["dep:log"]
## Implement the `serde::Serialize` and `serde::Deserialize` for some of the base types
## such as `SharedString` and `SharedVector`.
serde = ["i-slint-core/serde"]
## This feature enables the software renderer to pick up fonts from the operating system for text rendering.
software-renderer-systemfonts = ["renderer-software", "i-slint-core/software-renderer-systemfonts"]