pyrs icon indicating copy to clipboard operation
pyrs copied to clipboard

Generate derive statements on transpiled Rust code

Open gabrielfior opened this issue 2 years ago • 0 comments

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!

gabrielfior avatar Jul 15 '22 15:07 gabrielfior