The Rust library references schema files using filepaths. This only really works if ~/.cargo/cache sticks around. On the other hand, it is quite neat for local development because it means schemas can be edited without having to recompile the Rust part.
It's also been brought up in the past that it would be cool if sentry-kafka-schemas would cache compiled schemas in memory. Maybe both problems can be fixed at once.
The tricky bit with this bug is that IMO the most straightforward solution would involve proc-macros, but those are compile-time heavy. Perhaps it is time to reconsider generating code before cargo publish?
The Rust library references schema files using filepaths. This only really works if
~/.cargo/cachesticks around. On the other hand, it is quite neat for local development because it means schemas can be edited without having to recompile the Rust part.It's also been brought up in the past that it would be cool if sentry-kafka-schemas would cache compiled schemas in memory. Maybe both problems can be fixed at once.
The tricky bit with this bug is that IMO the most straightforward solution would involve proc-macros, but those are compile-time heavy. Perhaps it is time to reconsider generating code before
cargo publish?