Skip to content

Commit

Permalink
add additional derive for types
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteOtter committed Jan 22, 2024
1 parent c017920 commit 4d161d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bindgen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ pub fn gen(input_path: impl AsRef<std::path::Path>) {
// Write description.
types_file.write_all(desc.as_bytes()).unwrap();
// Write name.
types_file.write_all(b"pub struct ").unwrap();
types_file.write_all(b"#[derive(Debug, Serialize, Deserialize, Default)]\npub struct ").unwrap();
types_file.write_all(name.as_bytes()).unwrap();
types_file.write_all(b" {\n").unwrap();
// For every struct field.
Expand Down

0 comments on commit 4d161d8

Please sign in to comment.