auto_generate_cdp
An experimental crate to generate the Chrome Devtools Protocol.
Usage
Add the following to your Cargo.toml
:
[]
= { = "1", = ["derive"]}
= '1'
[]
= { = "0.3.4", = false}
To generate the protocol, add the following to your build/build.rs
script.
use init;
This will generate protocol.rs
in your $OUT_DIR
folder when you run $ cargo check
or $ cargo build
. Use like:
// src/protocol.rs
include!;
// src/main.rs