{"id":18727885,"url":"https://github.com/knightpp/serde_bencoded","last_synced_at":"2025-04-12T16:32:39.478Z","repository":{"id":55329669,"uuid":"318153134","full_name":"knightpp/serde_bencoded","owner":"knightpp","description":"Yet another encoding/decoding library for bencode","archived":false,"fork":false,"pushed_at":"2024-10-13T13:19:39.000Z","size":124,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T11:04:02.500Z","etag":null,"topics":["bencode","rust","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/knightpp.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},"funding":{"ko_fi":"knightpp"}},"created_at":"2020-12-03T10:16:45.000Z","updated_at":"2024-10-13T13:19:42.000Z","dependencies_parsed_at":"2022-08-16T07:50:36.051Z","dependency_job_id":null,"html_url":"https://github.com/knightpp/serde_bencoded","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knightpp%2Fserde_bencoded","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knightpp%2Fserde_bencoded/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knightpp%2Fserde_bencoded/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knightpp%2Fserde_bencoded/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knightpp","download_url":"https://codeload.github.com/knightpp/serde_bencoded/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248596645,"owners_count":21130741,"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","rust","torrent"],"created_at":"2024-11-07T14:19:08.147Z","updated_at":"2025-04-12T16:32:39.125Z","avatar_url":"https://github.com/knightpp.png","language":"Rust","readme":"[![crates.io](https://img.shields.io/crates/v/serde_bencoded.svg)](https://crates.io/crates/serde_bencoded)\n[![Docs](https://docs.rs/serde_bencoded/badge.svg)](https://docs.rs/serde_bencoded/)\n[![dependency status](https://deps.rs/crate/serde_bencoded/latest/status.svg)](https://deps.rs/crate/serde_bencoded/)\n\n# Crate for encoding/decoding bencode\n\nWhat is bencode? It's the encoding mostly used in `.torrent` files and BitTorrent protocol.\nFor more info see [bep_0003](https://www.bittorrent.org/beps/bep_0003.html).\n\n# Quick example\n\nSee `examples` directory\n\n```rust\n#[derive(Debug, Serialize, Deserialize)]\nstruct MetaInfo {\n    info: Info,\n    announce: String,\n    #[serde(rename = \"announce-list\")]\n    announce_list: Option\u003cVec\u003cVec\u003cString\u003e\u003e\u003e,\n    #[serde(rename = \"creation date\")]\n    creation_date: Option\u003cu64\u003e,\n    comment: Option\u003cString\u003e,\n    #[serde(rename = \"created by\")]\n    created_by: Option\u003cString\u003e,\n    encoding: Option\u003cString\u003e,\n}\n\nfn main(){\n    let string = serde_bencoded::to_string(\u0026MetaInfo{...}).unwrap;\n    let mi: MetaInfo = serde_bencoded::from_str(\u0026string).unwrap();\n}\n```\n","funding_links":["https://ko-fi.com/knightpp"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknightpp%2Fserde_bencoded","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknightpp%2Fserde_bencoded","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknightpp%2Fserde_bencoded/lists"}