{"id":33933015,"url":"https://github.com/stack-rs/bandwidth","last_synced_at":"2026-03-27T04:06:18.139Z","repository":{"id":65758877,"uuid":"599081781","full_name":"stack-rs/bandwidth","owner":"stack-rs","description":"A library for representing bandwidth speed in a variety of units, analogous to the `core::time::Duration` type.","archived":false,"fork":false,"pushed_at":"2024-06-07T13:50:48.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-10T23:19:51.595Z","etag":null,"topics":["rust"],"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/stack-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2023-02-08T12:18:28.000Z","updated_at":"2024-06-07T13:50:51.000Z","dependencies_parsed_at":"2023-02-22T16:00:16.081Z","dependency_job_id":null,"html_url":"https://github.com/stack-rs/bandwidth","commit_stats":{"total_commits":14,"total_committers":2,"mean_commits":7.0,"dds":0.4285714285714286,"last_synced_commit":"8563baf73be50cdf7c1e3e01092d504531802118"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/stack-rs/bandwidth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-rs%2Fbandwidth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-rs%2Fbandwidth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-rs%2Fbandwidth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-rs%2Fbandwidth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stack-rs","download_url":"https://codeload.github.com/stack-rs/bandwidth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stack-rs%2Fbandwidth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31018547,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T03:51:26.850Z","status":"ssl_error","status_checked_at":"2026-03-27T03:51:09.693Z","response_time":164,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["rust"],"created_at":"2025-12-12T13:01:26.691Z","updated_at":"2026-03-27T04:06:18.132Z","avatar_url":"https://github.com/stack-rs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bandwidth\n\n[![github-repo](https://img.shields.io/badge/github-stack--rs/bandwidth-f5dc23?logo=github)](https://github.com/stack-rs/bandwidth)\n[![crates.io](https://img.shields.io/crates/v/bandwidth.svg?logo=rust)](https://crates.io/crates/bandwidth)\n[![docs.rs](https://img.shields.io/badge/docs.rs-bandwidth-blue?logo=data:image/svg+xml;base64,PHN2ZyByb2xlPSJpbWciIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDUxMiA1MTIiPjxwYXRoIGZpbGw9IiNmNWY1ZjUiIGQ9Ik00ODguNiAyNTAuMkwzOTIgMjE0VjEwNS41YzAtMTUtOS4zLTI4LjQtMjMuNC0zMy43bC0xMDAtMzcuNWMtOC4xLTMuMS0xNy4xLTMuMS0yNS4zIDBsLTEwMCAzNy41Yy0xNC4xIDUuMy0yMy40IDE4LjctMjMuNCAzMy43VjIxNGwtOTYuNiAzNi4yQzkuMyAyNTUuNSAwIDI2OC45IDAgMjgzLjlWMzk0YzAgMTMuNiA3LjcgMjYuMSAxOS45IDMyLjJsMTAwIDUwYzEwLjEgNS4xIDIyLjEgNS4xIDMyLjIgMGwxMDMuOS01MiAxMDMuOSA1MmMxMC4xIDUuMSAyMi4xIDUuMSAzMi4yIDBsMTAwLTUwYzEyLjItNi4xIDE5LjktMTguNiAxOS45LTMyLjJWMjgzLjljMC0xNS05LjMtMjguNC0yMy40LTMzLjd6TTM1OCAyMTQuOGwtODUgMzEuOXYtNjguMmw4NS0zN3Y3My4zek0xNTQgMTA0LjFsMTAyLTM4LjIgMTAyIDM4LjJ2LjZsLTEwMiA0MS40LTEwMi00MS40di0uNnptODQgMjkxLjFsLTg1IDQyLjV2LTc5LjFsODUtMzguOHY3NS40em0wLTExMmwtMTAyIDQxLjQtMTAyLTQxLjR2LS42bDEwMi0zOC4yIDEwMiAzOC4ydi42em0yNDAgMTEybC04NSA0Mi41di03OS4xbDg1LTM4Ljh2NzUuNHptMC0xMTJsLTEwMiA0MS40LTEwMi00MS40di0uNmwxMDItMzguMiAxMDIgMzguMnYuNnoiPjwvcGF0aD48L3N2Zz4K)](https://docs.rs/bandwidth)\n[![LICENSE Apache-2.0](https://img.shields.io/github/license/stack-rs/bandwidth?logo=Apache)](https://github.com/stack-rs/bandwidth/blob/main/LICENSE)\n\nA library for representing bandwidth speed in a variety of units, mimicking the `core::time::Duration` struct.\n\n**MSRV**: 1.60\n\nThis library supports `no_std` and `serde`. `std` are enabled by default.\n\n## Usage\n\nMore detailed usage can be found on [documentation](https://docs.rs/bandwidth).\n\n```rust\nuse bandwidth::Bandwidth;\n\nlet five_gbps = Bandwidth::from_gbps(5);\nassert_eq!(five_gbps, Bandwidth::from_mbps(5_000));\nassert_eq!(five_gbps, Bandwidth::from_kbps(5_000_000));\nassert_eq!(five_gbps, Bandwidth::from_bps(5_000_000_000));\n\nlet ten_gbps = Bandwidth::from_gbps(10);\nlet seven_bps = Bandwidth::from_bps(7);\nlet total = ten_gbps + seven_bps;\nassert_eq!(total, Bandwidth::new(10, 7));\n```\n\n## Maintainer\n\n[@BobAnkh](https://github.com/BobAnkh)\n\n## How to contribute\n\nYou should follow our [Code of Conduct](/CODE_OF_CONDUCT.md).\n\nSee [CONTRIBUTING GUIDELINES](/CONTRIBUTING.md) for contributing conventions.\n\nMake sure to pass all the tests before submitting your code.\n\n### Contributors\n\n\u003ctable\u003e\n\u003ctr\u003e\n    \u003ctd align=\"center\" style=\"word-wrap: break-word; width: 150.0; height: 150.0\"\u003e\n        \u003ca href=https://github.com/BobAnkh\u003e\n            \u003cimg src=https://avatars.githubusercontent.com/u/44333669?v=4 width=\"100;\"  style=\"border-radius:50%;align-items:center;justify-content:center;overflow:hidden;padding-top:10px\" alt=Yixin Shen/\u003e\n            \u003cbr /\u003e\n            \u003csub style=\"font-size:14px\"\u003e\u003cb\u003eYixin Shen\u003c/b\u003e\u003c/sub\u003e\n        \u003c/a\u003e\n    \u003c/td\u003e\n\u003c/tr\u003e\n\u003c/table\u003e\n\n## LICENSE\n\n[Apache-2.0](LICENSE) © stack-rs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstack-rs%2Fbandwidth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstack-rs%2Fbandwidth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstack-rs%2Fbandwidth/lists"}