Our great sponsors
-
albert
Albert: Rust Transpiler that converts a Data Mode like JSON/YAML to source code like Go, C++, but also graphql (by vincenzopalazzo)
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I'm implementing a transpiler to learn the Rust (monkey-scheme), basically, I would like to take a description of the model from a description file like JSON schema, YAML, or any other to build an Intermediary language like LLVM and after that generate the source code of the target language like C++, Go, Rust, etc.
I see that are packages like https://github.com/dtolnay/serde-yaml and the parser where serde is built on that give a Yaml representation, but I don't see any way to walk through it in a generic way with a Visitor.
Related posts
- Serde-YAML for Rust has been archived
- YAML decoder for rust discontinued do to maintainer "not using YAML anymore"
- Why do we need configuration? Creating and handling configuration files in Rust
- Introduction to Rust generics [1/2]: Traits
- Weird error only on android: "this struct takes 3 generic arguments but 2 generic arguments were supplied" for serde_json