{"id":23705687,"url":"https://github.com/ccakes/bmp-protocol-rs","last_synced_at":"2026-02-03T02:30:18.998Z","repository":{"id":57520419,"uuid":"200838997","full_name":"ccakes/bmp-protocol-rs","owner":"ccakes","description":"Rust decoder for a stream of BMP (BGP Monitoring Protocol) packets","archived":false,"fork":false,"pushed_at":"2020-06-29T16:09:31.000Z","size":35,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T15:47:54.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ccakes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-06T11:36:17.000Z","updated_at":"2020-06-29T15:52:59.000Z","dependencies_parsed_at":"2022-09-26T18:00:44.694Z","dependency_job_id":null,"html_url":"https://github.com/ccakes/bmp-protocol-rs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fbmp-protocol-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fbmp-protocol-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fbmp-protocol-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ccakes%2Fbmp-protocol-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ccakes","download_url":"https://codeload.github.com/ccakes/bmp-protocol-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239786254,"owners_count":19696772,"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":[],"created_at":"2024-12-30T14:56:36.942Z","updated_at":"2026-02-03T02:30:18.940Z","avatar_url":"https://github.com/ccakes.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bmp-protocol\n\nThis crate implements a simple BMP packet decoder. It can decode BMP v3 packets and will use [`bgp-rs`](https://github.com/DevQps/bgp-rs)\nto decode any BGP messages contained within the BMP data.\n\nWe provide a `Decoder` ready to be used with a `tokio_util::codec::FramedRead` instance to provide decoded BMP messages to a consumer. See [`bmp-client`](https://github.com/ccakes/bmp-client-rs) for a working example of this.\n\n## Usage\n\n```toml\n# Cargo.toml\nbmp-protocol = \"^0.1\"\n```\n\n```rust\nuse bmp_protocol::BmpDecoder;\nuse tokio::fs::File;\nuse tokio_util::codec::FramedRead;\n\n// Read a file created using bmp_play (https://github.com/paololucente/bmp_play)\n// A more likely real-world use case would be reading from a TcpStream\n#[tokio::main]\nasync fn main() -\u003e std::io::Result\u003c()\u003e {\n    let fh = File::open(\u0026entry.path()).await?;\n    let mut reader = FramedRead::new(fh, BmpDecoder::new());\n\n    while let Some(message) = reader.next().await {\n        assert!(message.is_ok());\n    }\n}\n```\n\n## Contributing\n\nContributions are welcome, the library is currently incomplete and there are still BMP message types to\nimplement.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccakes%2Fbmp-protocol-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fccakes%2Fbmp-protocol-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fccakes%2Fbmp-protocol-rs/lists"}