auto_generate_cdp 0.3.4

experimental crate to generate the Chrome Devtools Protocol.
Documentation

auto_generate_cdp

Docs Crates.io

An experimental crate to generate the Chrome Devtools Protocol.

Contributors

Usage

Add the following to your Cargo.toml:

[dependencies]
serde = {version = "1", features = ["derive"]}
serde_json = '1'

[build-dependencies]
auto_generate_cdp = "0.2.9"

To generate the protocol, add the following to your build/build.rs script.

use auto_generate_cdp::init;

fn main() {
  init();
}

This will generate protocol.rs in your src/ folder when you run $ cargo check or $ cargo build.