pyrs icon indicating copy to clipboard operation
pyrs copied to clipboard

Python to Rust transpiler

Results 17 pyrs issues
Sort by recently updated
recently updated
newest added

It looks like pyrs does not handle strings like new_lines = '\r\n' or "\\" Very well, it seems to interpret them into the escaped character, which rust doesn't appreciate as...

Though I can use rust-fmt, it is still not good.

I just wanted to propose that decorators are resolved like this: ``` @{decorator} def {func_name}({args}): {code} ``` to ``` let {func_name} = {decorator}(|| { {code} }) ``` Unfortunately, I am...

I'm trying to generate a function like the following in Rust: ```rust use my_program::{MyImportedClass, AccountInfo, ProgramResult}; pub fn process_instruction( program_id: &MyImportedClass, accounts: &[AccountInfo] ) -> ProgramResult { /* pass */...

I want to generate something like this: ```rust #[derive(BorshSerialize, BorshDeserialize, Debug)] pub struct GreetingAccount { /// number of greetings pub counter: u32, } ``` Is there a way to generate...

Added pyproject.toml. To build use `python3 -m build -nwx`

Hello, i would like to show the results i obtained using pyrs together with monkeytype and the process i followed. These are the first commands i used: ```shell cd typing...