{"id":13580468,"url":"https://github.com/tokio-rs/bytes","last_synced_at":"2025-05-14T07:07:37.564Z","repository":{"id":26607447,"uuid":"30062547","full_name":"tokio-rs/bytes","owner":"tokio-rs","description":"Utilities for working with bytes","archived":false,"fork":false,"pushed_at":"2025-03-07T14:14:21.000Z","size":2428,"stargazers_count":2038,"open_issues_count":87,"forks_count":308,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-04-30T12:07:12.687Z","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/tokio-rs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-01-30T08:05:46.000Z","updated_at":"2025-04-30T03:12:36.000Z","dependencies_parsed_at":"2023-07-14T08:53:15.044Z","dependency_job_id":"aa799835-8191-469e-840b-72e7aa33fa73","html_url":"https://github.com/tokio-rs/bytes","commit_stats":{"total_commits":509,"total_committers":120,"mean_commits":4.241666666666666,"dds":0.6227897838899803,"last_synced_commit":"4cd8969e850d0a66b181c388ead281c37d360621"},"previous_names":["carllerche/bytes"],"tags_count":40,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokio-rs%2Fbytes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokio-rs%2Fbytes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokio-rs%2Fbytes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokio-rs%2Fbytes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tokio-rs","download_url":"https://codeload.github.com/tokio-rs/bytes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251739653,"owners_count":21635892,"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-08-01T15:01:51.962Z","updated_at":"2025-05-06T16:21:29.416Z","avatar_url":"https://github.com/tokio-rs.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Bytes\n\nA utility library for working with bytes.\n\n[![Crates.io][crates-badge]][crates-url]\n[![Build Status][ci-badge]][ci-url]\n\n[crates-badge]: https://img.shields.io/crates/v/bytes.svg\n[crates-url]: https://crates.io/crates/bytes\n[ci-badge]: https://github.com/tokio-rs/bytes/workflows/CI/badge.svg\n[ci-url]: https://github.com/tokio-rs/bytes/actions\n\n[Documentation](https://docs.rs/bytes)\n\n## Usage\n\nTo use `bytes`, first add this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nbytes = \"1\"\n```\n\nNext, add this to your crate:\n\n```rust\nuse bytes::{Bytes, BytesMut, Buf, BufMut};\n```\n\n## no_std support\n\nTo use `bytes` with no_std environment, disable the (enabled by default) `std` feature.\n\n```toml\n[dependencies]\nbytes = { version = \"1\", default-features = false }\n```\n\nTo use `bytes` with no_std environment without atomic CAS, such as thumbv6m, you also need to enable\nthe `extra-platforms` feature. See the [documentation for the `portable-atomic`\ncrate](https://docs.rs/portable-atomic) for more information.\n\nThe MSRV when `extra-platforms` feature is enabled depends on the MSRV of `portable-atomic`.\n\n## Serde support\n\nSerde support is optional and disabled by default. To enable use the feature `serde`.\n\n```toml\n[dependencies]\nbytes = { version = \"1\", features = [\"serde\"] }\n```\n\nThe MSRV when `serde` feature is enabled depends on the MSRV of `serde`.\n\n## Building documentation\n\nWhen building the `bytes` documentation the `docsrs` option should be used, otherwise\nfeature gates will not be shown. This requires a nightly toolchain:\n\n```\nRUSTDOCFLAGS=\"--cfg docsrs\" cargo +nightly doc\n```\n\n## License\n\nThis project is licensed under the [MIT license](LICENSE).\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in `bytes` by you, shall be licensed as MIT, without any additional\nterms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokio-rs%2Fbytes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftokio-rs%2Fbytes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokio-rs%2Fbytes/lists"}