Skip to content

Conversation

@mayfieldiv
Copy link

Resolves #372

See https://doc.rust-lang.org/nightly/edition-guide/rust-2024/match-ergonomics.html for the Rust edition 2024 breaking change this PR addresses

edition 2024 doesn't allow specifying `ref` redundantly, so instead of
specifying `ref`, use `as_ref()` or `&` to ensure the thing being
matched is a shared reference type
2015 doesn't work because the old `extern crate` syntax is required to
be generated for that, so I assume it's never worked with bebop
@andrewmd5
Copy link
Contributor

Thanks for the fix!

I'm happy to merge this as-is if it's blocking you, but wanted to mention we're in the middle of the 2026 edition rewrite over at https://github.com/6over3/bebop-next — new compiler backend, grammar, the works.

If you're up for it, you contribute a Rust plugin and runtime for the new compiler. The benefit of the new architecture is you can write the code generator and runtime in Rust, rather than C#. We're offering small bounties and would really appreciate the feedback from someone actively working with Rust. No pressure though — just let me know which direction works best for you.

@mayfieldiv
Copy link
Author

Short term, I'd like to have this fix since having MSBuild generate C#/Rust/TypeScript actually fits into my existing workflow well. I'd be happy to follow along with your progress and give feedback/contributions where I can! Do you have some place that development discussion happens?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generated rust code is incompatible with the rust 2024 edition

2 participants