Skip to content

How do I add cargo features? #2182

Answered by Velfi
thomas-k-cameron asked this question in Q&A
Discussion options

You must be logged in to vote

But I can't figure out how to tell kotlin to include Serde defined on CargoDependency on CargoTomlGenerator.
It should just automatically add Serde once you reference it in a writer:

writer.rust("use #T::{Serialize, Deserialize};", CargoDependency.Serde.toType())

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@thomas-k-cameron
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by thomas-k-cameron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants