{"id":16681467,"url":"https://github.com/amodm/birdc-rs","last_synced_at":"2025-05-14T15:30:33.940Z","repository":{"id":62444403,"uuid":"487349459","full_name":"amodm/birdc-rs","owner":"amodm","description":"Library to talk to the bird BGP server for administrative and instrumentation purposes","archived":false,"fork":false,"pushed_at":"2023-06-12T18:31:39.000Z","size":88,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T16:17:56.505Z","etag":null,"topics":["bgp","bird","bird-bgp","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amodm.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-04-30T18:13:25.000Z","updated_at":"2022-09-17T06:24:08.000Z","dependencies_parsed_at":"2022-11-01T22:30:41.211Z","dependency_job_id":null,"html_url":"https://github.com/amodm/birdc-rs","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.09523809523809523,"last_synced_commit":"d70443b5e188b9a40797590d68ee4b3a3d065bbf"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amodm%2Fbirdc-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amodm%2Fbirdc-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amodm%2Fbirdc-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amodm%2Fbirdc-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amodm","download_url":"https://codeload.github.com/amodm/birdc-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254171518,"owners_count":22026456,"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":["bgp","bird","bird-bgp","rust"],"created_at":"2024-10-12T14:04:18.351Z","updated_at":"2025-05-14T15:30:31.291Z","avatar_url":"https://github.com/amodm.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# birdc\n\n[![Current Crates.io Version](https://img.shields.io/crates/v/birdc.svg)](https://crates.io/crates/birdc)\n[![Build](https://github.com/amodm/birdc-rs/actions/workflows/main.yaml/badge.svg?branch=main)](https://github.com/amodm/birdc-rs/actions/workflows/main.yaml)\n[![License](https://img.shields.io/crates/l/birdc.svg)](LICENSE-MIT)\n\nRust library to talk to the [Bird BGP server](https://bird.network.cz/) for administrative\nand instrumentation purposes.\n\n## Documentation\n\n- [API Reference](https://docs.rs/birdc)\n- [Changelog](CHANGELOG.md)\n\n## Examples\n\n```rust\nuse birdc::*;\n\n// create the client\nlet client = Client::for_unix_socket(\"/run/bird/bird.ctl\");\n\n// we can either use raw protocol\nasync fn show_interfaces_raw(client: \u0026Client) -\u003e Result\u003c()\u003e {\n    let mut connection = client.connect().await?;\n\n    // we can either use raw protocol\n    let messages = connection.send_request(\"show interfaces\").await?;\n    for message in \u0026messages {\n        println!(\"received message: {:?}\", message);\n    }\n    Ok(())\n}\n\n// or we can use structured exchange\nasync fn show_interfaces(client: \u0026Client) -\u003e Result\u003c()\u003e {\n    let mut connection = client.connect().await?;\n\n    // let's make a semantic call now\n    match connection.show_interfaces().await {\n        Ok(entries) =\u003e {\n            for e in \u0026entries {\n                println!(\"received entry: {:?}\", e);\n            }\n        }\n        Err(Error::ParseError(messages)) =\u003e {\n            // we can still go through the raw response\n            // even though semantic parsing failed\n            for msg in \u0026messages {\n                println!(\"raw message: {:?}\", msg);\n            }\n        }\n        Err(e) =\u003e {\n            return Err(e);\n        }\n    }\n    Ok(())\n}\n```\n\n## License\n\nLicensed under either of\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any\nadditional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famodm%2Fbirdc-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famodm%2Fbirdc-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famodm%2Fbirdc-rs/lists"}