kurtlawrence / papyrus

(Rust) repl
MIT License
439 stars 14 forks source link

Derive `ToKserd` internally #26

Open kurtlawrence opened 5 years ago

kurtlawrence commented 5 years ago

It was originally intended to add #[derive(ToKserd)] to a defined struct or enum. Testing has shown this to increase compilation times as it has to expand the macro. Instead, it is proposed to derive the impl internally in code. This has the benefit of being compiled once inside papyrus but comes at the cost of maintainability.

Considerations: