{"id":26794606,"url":"https://github.com/rusticata/rusticata-macros","last_synced_at":"2025-08-29T02:38:27.851Z","repository":{"id":47697793,"uuid":"82595436","full_name":"rusticata/rusticata-macros","owner":"rusticata","description":"Helper macros for Rusticata","archived":false,"fork":false,"pushed_at":"2025-03-17T13:30:23.000Z","size":98,"stargazers_count":5,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-21T13:39:44.240Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rusticata.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null}},"created_at":"2017-02-20T19:42:23.000Z","updated_at":"2025-03-17T13:10:10.000Z","dependencies_parsed_at":"2024-06-21T17:54:09.678Z","dependency_job_id":"4bdad91c-366c-4480-a3dc-b06bc879f4da","html_url":"https://github.com/rusticata/rusticata-macros","commit_stats":{"total_commits":103,"total_committers":6,"mean_commits":"17.166666666666668","dds":0.2621359223300971,"last_synced_commit":"5dfd97b17c59908391c4699120a730551a5e050c"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/rusticata/rusticata-macros","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusticata%2Frusticata-macros","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusticata%2Frusticata-macros/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusticata%2Frusticata-macros/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusticata%2Frusticata-macros/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rusticata","download_url":"https://codeload.github.com/rusticata/rusticata-macros/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rusticata%2Frusticata-macros/sbom","scorecard":{"id":790734,"data":{"date":"2025-08-11","repo":{"name":"github.com/rusticata/rusticata-macros","commit":"635b7c9aaa7f0041bda67883dc210eb6ad8bf1ac"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Code-Review","score":2,"reason":"Found 3/14 approved changesets -- score normalized to 2","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":"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":"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":"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/rust.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:83: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:91: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:93: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/rust.yml:100: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/rust.yml:102: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/rust.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/security-audit.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/security-audit.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/security-audit.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/rusticata/rusticata-macros/security-audit.yml/master?enable=pin","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   9 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/rust.yml:1","Warn: no topLevel permission defined: .github/workflows/security-audit.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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 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-23T07:27:38.078Z","repository_id":47697793,"created_at":"2025-08-23T07:27:38.078Z","updated_at":"2025-08-23T07:27:38.078Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272612207,"owners_count":24964388,"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-08-29T02:00:10.610Z","response_time":87,"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":[],"created_at":"2025-03-29T17:28:16.016Z","updated_at":"2025-08-29T02:38:27.816Z","avatar_url":"https://github.com/rusticata.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rusticata-macros\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE-MIT)\n[![Apache License 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](./LICENSE-APACHE)\n[![Github CI](https://github.com/rusticata/rusticata-macros/actions/workflows/rust.yml/badge.svg)](https://github.com/rusticata/rusticata-macros/actions/workflows/rust.yml)\n[![Crates.io Version](https://img.shields.io/crates/v/rusticata-macros.svg)](https://crates.io/crates/rusticata-macros)\n\n\u003c!-- cargo-sync-readme start --\u003e\n\n# Rusticata-macros\n\nHelper macros for the [rusticata](https://github.com/rusticata) project.\n\nThis crate contains some additions to [nom](https://github.com/Geal/nom).\n\nFor example, the [`combinator::cond_else`] function allows to apply the first parser if the\ncondition is true, and the second if the condition is false:\n\n```rust\nuse rusticata_macros::combinator::cond_else;\nlet r: IResult\u003c_, _, ()\u003e = cond_else(\n        || s.len() \u003e 1,\n        be_u16,\n        map(be_u8, u16::from)\n    )(s);\n```\n\nSee the documentation for more details and examples.\n\n\u003c!-- cargo-sync-readme end --\u003e\n\n## Nom versions\n\nDifferent versions of this crate are available, depending on nom version.\n\n- `rusticata-macros` 5.x depends on nom 8\n- `rusticata-macros` 4.x depends on nom 7\n- `rusticata-macros` 3.x depends on nom 6\n- `rusticata-macros` 2.x depends on nom 5\n\n## Documentation\n\nCrate is documented, do running `cargo doc` will crate the offline documentation.\n\nReference documentation can be found [here](https://docs.rs/rusticata-macros/)\n\n## Changes\n\n### 5.0.0\n\n- Upgrade to nom 8\n\n### 4.1.0\n\n- Remove macro `slice_fixed`\n\n### 4.0.0\n\n- Upgrade to nom 7\n  - Remove macros\n\n### 3.0.1\n\n- Add `be_var_u64` and `le_var_u64`\n\n### 3.0.0\n\n- Upgrade to nom 6\n\n### 2.1.0\n\n- Add common trait `Serialize` for structures serialization\n\n### 2.0.4\n\n- Add function version of most combinators\n\n### 2.0.3\n\n- Add macros `q` (quote) and `align32`\n\n### 2.0.2\n\n- Add `upgrade_error` and `upgrade_error_to`\n\n### 2.0.1\n\n- Add macro `custom_check`\n- Add macro `flat_take`\n\n### 2.0.0\n\n- Upgrade to nom 5\n- Debug types: use newtypes\n\n### 1.1.0\n\n- Add macro `newtype_enum`\n\n### 1.0.0\n\n- Upgrade to nom 4.0\n  - Warning: this is a breaking change!\n- Mark `parse_uint24` as deprecated\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n## Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusticata%2Frusticata-macros","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frusticata%2Frusticata-macros","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frusticata%2Frusticata-macros/lists"}