-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: serde support #276
Comments
I'm okay adding it behind a feature gate. If you're willing to send a PR, you would need to modify the generator to emit the derive, but I suppose that would be enough. Be warned though, it's a lot of generated code, and I suspect serde will bloat it even further, which is why I've avoided it so far. And of course appreciate the compliments :) |
Thanks for reply. I didn't notice such structure is generated. Is that done by |
The generator is used by grammers-tl-types' |
How often does So is it possible to simply add #[derive(Serialize, Deserialized)] in generated files? |
Pretty regularly, yes. But grabbing the latest |
I am using this awesome crate in my actual work to gather some useful information from open chats and bots.
I want to save the data to database or just simple json-string, like
grammers_client::types::chat::Chat
grammers_tl_types::types::Message
I found this project seems doesn't support serde, am I right? And if it really not support, why? I noticed that telegram has it's own bytecode ser&de function, but serde is the in-facts standard in rust language. Using serde framework will make this project more flexible.
The text was updated successfully, but these errors were encountered: