pyrs
pyrs copied to clipboard
Generate derive statements on transpiled Rust code
I want to generate something like this:
#[derive(BorshSerialize, BorshDeserialize, Debug)]
pub struct GreetingAccount {
/// number of greetings
pub counter: u32,
}
Is there a way to generate the derive statements automatically from Python code? Thanks!