I would like to generate constants (and ideally enums) from a single source into multiple languages so that I don't need to maintain multiple definitions.<p>I'd like to support at least: C, C++, C#, Rust, Javascript<p>So far the closest thing I've found is reconstant[0], which looks simple enough to add C# to but curious what other options are available.
Have you looked into protobufs: <a href="https://developers.google.com/protocol-buffers/docs/proto3#enum" rel="nofollow">https://developers.google.com/protocol-buffers/docs/proto3#e...</a>