{"id":15399178,"url":"https://github.com/edg-l/nom-bencode","last_synced_at":"2025-07-12T08:03:03.922Z","repository":{"id":42329144,"uuid":"510666255","full_name":"edg-l/nom-bencode","owner":"edg-l","description":"A bencode parser written with nom.","archived":false,"fork":false,"pushed_at":"2023-04-18T09:17:28.000Z","size":374,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-23T04:43:49.174Z","etag":null,"topics":["bencode-parser","rust","rust-crate","torrent"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edg-l.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["edg-l"]}},"created_at":"2022-07-05T09:18:18.000Z","updated_at":"2025-04-04T08:12:26.000Z","dependencies_parsed_at":"2024-10-21T12:06:57.250Z","dependency_job_id":null,"html_url":"https://github.com/edg-l/nom-bencode","commit_stats":{"total_commits":17,"total_committers":1,"mean_commits":17.0,"dds":0.0,"last_synced_commit":"8042c4e5f115dc390ebe117b799a8f4b113e368f"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/edg-l/nom-bencode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edg-l%2Fnom-bencode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edg-l%2Fnom-bencode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edg-l%2Fnom-bencode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edg-l%2Fnom-bencode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edg-l","download_url":"https://codeload.github.com/edg-l/nom-bencode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edg-l%2Fnom-bencode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264958575,"owners_count":23689030,"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":["bencode-parser","rust","rust-crate","torrent"],"created_at":"2024-10-01T15:47:13.368Z","updated_at":"2025-07-12T08:03:03.881Z","avatar_url":"https://github.com/edg-l.png","language":"Rust","readme":"# nom_bencode\n\n[![Version](https://img.shields.io/crates/v/nom_bencode)](https://crates.io/crates/nom_bencode)\n[![Downloads](https://img.shields.io/crates/d/nom_bencode)](https://crates.io/crates/nom_bencode)\n[![License](https://img.shields.io/crates/l/nom_bencode)](https://crates.io/crates/nom_bencode)\n![Rust](https://github.com/edg-l/nom-bencode/workflows/Rust/badge.svg)\n[![Docs](https://docs.rs/nom_bencode/badge.svg)](https://docs.rs/nom_bencode)\n\nA bencode parser written with nom.\n```rust\nuse nom_bencode::Value;\n\nlet data = nom_bencode::parse(b\"d3:cow3:moo4:spam4:eggse\").unwrap();\nlet v = data.first().unwrap();\n\nif let Value::Dictionary(dict) = v {\n    let v = dict.get(\"cow\".as_bytes()).unwrap();\n\n    if let Value::Bytes(data) = v {\n        assert_eq!(data, b\"moo\");\n    }\n\n    let v = dict.get(\"spam\".as_bytes()).unwrap();\n    if let Value::Bytes(data) = v {\n        assert_eq!(data, b\"eggs\");\n    }\n}\n```\n\nLicense: MIT OR Apache-2.0\n","funding_links":["https://github.com/sponsors/edg-l"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedg-l%2Fnom-bencode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedg-l%2Fnom-bencode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedg-l%2Fnom-bencode/lists"}