{"id":19786604,"url":"https://github.com/mdrokz/auto_generate_cdp","last_synced_at":"2025-04-30T23:32:33.021Z","repository":{"id":36997691,"uuid":"362168741","full_name":"mdrokz/auto_generate_cdp","owner":"mdrokz","description":"experimental crate to generate the Chrome Devtools Protocol.","archived":false,"fork":false,"pushed_at":"2023-11-26T12:25:01.000Z","size":230,"stargazers_count":14,"open_issues_count":1,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T16:29:03.564Z","etag":null,"topics":["build-tool","cdp","chrome","devtools-protocol","generation","json","json-schema","macros","rust","specification"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mdrokz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-04-27T15:51:17.000Z","updated_at":"2023-12-14T08:45:08.000Z","dependencies_parsed_at":"2023-11-22T11:26:53.630Z","dependency_job_id":"61deaf57-9ba2-45ab-940d-d8f232643165","html_url":"https://github.com/mdrokz/auto_generate_cdp","commit_stats":{"total_commits":79,"total_committers":8,"mean_commits":9.875,"dds":"0.36708860759493667","last_synced_commit":"9bb3a9872b9634a1fdf99809a0a8df5dc6174725"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdrokz%2Fauto_generate_cdp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdrokz%2Fauto_generate_cdp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdrokz%2Fauto_generate_cdp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdrokz%2Fauto_generate_cdp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdrokz","download_url":"https://codeload.github.com/mdrokz/auto_generate_cdp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224225908,"owners_count":17276571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build-tool","cdp","chrome","devtools-protocol","generation","json","json-schema","macros","rust","specification"],"created_at":"2024-11-12T06:18:48.165Z","updated_at":"2024-11-12T06:18:48.816Z","avatar_url":"https://github.com/mdrokz.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# auto_generate_cdp\n[![Docs](https://docs.rs/auto_generate_cdp/badge.svg)](https://docs.rs/auto_generate_cdp)\n[![Crates.io](https://img.shields.io/crates/v/auto_generate_cdp.svg?maxAge=2592000)](https://crates.io/crates/auto_generate_cdp)\n\nAn experimental crate to generate the Chrome Devtools Protocol.\n\n[![Contributors](https://img.shields.io/github/contributors/mdrokz/auto_generate_cdp.svg)](https://github.com/mdrokz/auto_generate_cdp/graphs/contributors)\n\n# Usage\n\nAdd the following to your `Cargo.toml`:\n\n```toml\n[dependencies]\nserde = {version = \"1\", features = [\"derive\"]}\nserde_json = '1'\n\n[build-dependencies]\nauto_generate_cdp = {version = \"0.4.4\",default-features = false}\n```\n\nTo generate the protocol, add the following to your `build/build.rs` script.\n\n```rust\nuse auto_generate_cdp::init;\n\nfn main() {\n  init();\n}\n```\n\nThis will generate `protocol.rs` in your `$OUT_DIR` folder when you run `$ cargo check` or `$ cargo build`. Use like:\n\n\n```rust\n// src/protocol.rs\n\ninclude!(concat!(env!(\"OUT_DIR\"), \"/protocol.rs\"));\n\n```\n\n```rust\n// src/main.rs\n\nmod protocol;\n\nfn main() {\n  // protocol module contains the definitions now\n}\n```\n\n## Compiling behind a firewall\n\nauto_generate_cdp needs to fetch files from `raw.githubusercontent.com` during compilation.\n\nIf for whatever reason you cannot access `raw.githubusercontent.com` directly\n(e.g. corporate firewall and/or internet censorship), you can try using a proxy server\nby setting any one of the following environment variables: `https_proxy`, `http_proxy`,\n`ALL_PROXY`. For example:\n\n```sh\n# proxy server uses curl format\nhttps_proxy=http://localhost:8080 cargo build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdrokz%2Fauto_generate_cdp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdrokz%2Fauto_generate_cdp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdrokz%2Fauto_generate_cdp/lists"}