Codespawn
Codespawn is a basic C++ and Rust code generator. Desired API can be defined using either JSON or XML and the crate supports both reading from a file or a string. As of 0.1 release, it's possible to generate enums, structs, functions, function pointers and variables with all applicable attributes and properties.
Initially, this crate was created as a helper tool for ProDBG. See example XML for instructions on how to construct the API definition.
Usage
# Cargo.toml
[]
= "0.1"
Example
extern crate codespawn;
Build instructions
cargo build
cargo run --example xml
This will run the example which will generate code and save it to files using sample XML definition.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)