Skip to content

Rust library may not actually be usable in standalone binaries #106

@untitaker

Description

@untitaker

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions