autogeneratecdp

Docs Crates.io

An experimental crate to generate the Chrome Devtools Protocol.

Contributors

Usage

Add the following to your Cargo.toml:

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

[build-dependencies] autogeneratecdp = "0.2.9" ```

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

```rust use autogeneratecdp::init;

fn main() { init(); } ```

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