{"id":23812997,"url":"https://github.com/devashishdxt/nimble","last_synced_at":"2025-09-06T22:30:39.389Z","repository":{"id":42083894,"uuid":"237816777","full_name":"devashishdxt/nimble","owner":"devashishdxt","description":"Async friendly, simple and fast binary encoding and decoding in Rust","archived":false,"fork":false,"pushed_at":"2022-04-13T06:54:27.000Z","size":172,"stargazers_count":23,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-31T09:58:46.044Z","etag":null,"topics":["binary","encoding","rust","serialization"],"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/devashishdxt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-02T18:32:16.000Z","updated_at":"2023-12-20T03:40:40.000Z","dependencies_parsed_at":"2022-08-12T04:50:09.997Z","dependency_job_id":null,"html_url":"https://github.com/devashishdxt/nimble","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/devashishdxt/nimble","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devashishdxt%2Fnimble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devashishdxt%2Fnimble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devashishdxt%2Fnimble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devashishdxt%2Fnimble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devashishdxt","download_url":"https://codeload.github.com/devashishdxt/nimble/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devashishdxt%2Fnimble/sbom","scorecard":{"id":336825,"data":{"date":"2025-08-11","repo":{"name":"github.com/devashishdxt/nimble","commit":"49dc5ba3d955acbd50b3ff56a96a714aed00104c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/continuous-integration.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/continuous-integration.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/devashishdxt/nimble/continuous-integration.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/continuous-integration.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/devashishdxt/nimble/continuous-integration.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/continuous-integration.yml:63: update your workflow using https://app.stepsecurity.io/secureworkflow/devashishdxt/nimble/continuous-integration.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/continuous-integration.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/devashishdxt/nimble/continuous-integration.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/continuous-integration.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/devashishdxt/nimble/continuous-integration.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/continuous-integration.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/devashishdxt/nimble/continuous-integration.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/continuous-integration.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/devashishdxt/nimble/continuous-integration.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/continuous-integration.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/devashishdxt/nimble/continuous-integration.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/continuous-integration.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/devashishdxt/nimble/continuous-integration.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/continuous-integration.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/devashishdxt/nimble/continuous-integration.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/continuous-integration.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/devashishdxt/nimble/continuous-integration.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/continuous-integration.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/devashishdxt/nimble/continuous-integration.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   8 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T04:55:34.390Z","repository_id":42083894,"created_at":"2025-08-18T04:55:34.390Z","updated_at":"2025-08-18T04:55:34.390Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273973320,"owners_count":25200574,"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","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["binary","encoding","rust","serialization"],"created_at":"2025-01-02T02:39:23.582Z","updated_at":"2025-09-06T22:30:39.072Z","avatar_url":"https://github.com/devashishdxt.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nimble\n\n[![Continuous Integration](https://github.com/devashishdxt/nimble/workflows/Continuous%20Integration/badge.svg)](https://github.com/devashishdxt/nimble/actions?query=workflow%3A%22Continuous+Integration%22)\n[![Crates.io](https://img.shields.io/crates/v/nimble)](https://crates.io/crates/nimble)\n[![Documentation](https://docs.rs/nimble/badge.svg)](https://docs.rs/nimble)\n[![License](https://img.shields.io/crates/l/nimble)](https://github.com/devashishdxt/nimble/blob/master/LICENSE-MIT)\n\nAsync friendly, simple and fast binary encoding/decoding in Rust.\n\n## Binary encoding scheme\n\nThis crate uses a minimal binary encoding scheme. For example, consider the following `struct`:\n\n```rust\nstruct MyStruct {\n    a: u8,\n    b: u16,\n}\n```\n\n`encode()` will serialize this into `Vec` of size `3` (which is the sum of sizes of `u8` and `u16`).\n\nSimilarly, for types which can have dynamic size (`Vec`, `String`, etc.), `encode()` prepends the size of encoded value\nas `VarInt`.\n\n## Usage\n\nAdd `nimble` in your `Cargo.toml`'s `dependencies` section:\n\n```toml\n[dependencies]\nnimble = { version = \"0.2\", features = [\"derive\"] }\n```\n\nOr, if you are in an environment based on `tokio`, use:\n\n```toml\n[dependencies]\nnimble = { version = \"0.2\", default-features = false, features = [\"derive\", \"tokio\"] }\n```\n\nFor encoding and decoding, any type must implement two traits provided by this crate, i.e., `Encode` and `Decode`. For\nconvenience, `nimble` provides `derive` macros (only when `\"derive\"` feature is enabled) to implement these traits.\n\n```rust\nuse nimble::{Encode, Decode};\n\n#[derive(Encode, Decode)]\nstruct MyStruct {\n    a: u8,\n    b: u16,\n}\n```\n\nNow you can use `encode()` and `decode()` functions to encode and decode values of `MyStruct`. In addition to this, you\ncan also use `MyStruct::encode_to()` function to encode values directly to a type implementing `AsyncWrite` and\n`MyStruct::decode_from()` function to decode values directly from a type implementing `AsyncRead`.\n\n\u003e Note: Most of the functions exposed by this crate are `async` functions and returns `Future` values. So, you'll need\nan executor to drive the `Future` returned from these functions. `async-std` and `tokio` are two popular options.\n\n### Features\n\n- `futures`: Select this feature when you want to implement `Encode` and `Decode` using `futures`'\n  `AsyncRead`/`AsyncWrite` traits.\n  - **Enabled** by default.\n- `tokio`: Select this feature when you want to implement `Encode` and `Decode` using `tokio`'s `AsyncRead`/`AsyncWrite`\n  traits.\n  - **Disabled** by default.\n- `derive`: Enables derive macros for implementing `Encode` and `Decode` traits.\n  - **Disabled** by default.\n\n\u003e Note: Features `futures` and `tokio` are mutually exclusive, i.e., only one of them can be enabled at a time.\n\u003e Compilation will fail if either both of them are enabled or none of them are enabled.\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE))\n- MIT license ([LICENSE-MIT](LICENSE-MIT))\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as\ndefined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevashishdxt%2Fnimble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevashishdxt%2Fnimble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevashishdxt%2Fnimble/lists"}