Skip to content
Discussion options

You must be logged in to vote

In case someone else has the same challenge:

The serde feature of Slint can be activated with the following dependency entry in the Cargo.toml file:
i-slint-core = { version = "1.1", features = ["serde"] }

Afterwards the serde derive macros can be used in Slint files, as described in the documentation:
@rust-attr(derive(serde::Serialize, serde::Deserialize))

The activation of the serde feature will enable Serialization / Deserialization of the SharedString data type.

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ogoffart
Comment options

Answer selected by SKittan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3313 on August 21, 2023 14:42.