{"id":15949324,"url":"https://github.com/freyskeyd/stacktools","last_synced_at":"2025-10-20T00:31:54.065Z","repository":{"id":57668497,"uuid":"109313858","full_name":"Freyskeyd/stacktools","owner":"Freyskeyd","description":"Offer structure representation of data structures","archived":false,"fork":false,"pushed_at":"2017-11-06T11:59:08.000Z","size":13,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-06T07:24:45.019Z","etag":null,"topics":["priority-queue","queue","rust","stack"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Freyskeyd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-02T20:11:34.000Z","updated_at":"2017-11-07T20:51:33.000Z","dependencies_parsed_at":"2022-08-27T01:41:03.006Z","dependency_job_id":null,"html_url":"https://github.com/Freyskeyd/stacktools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Freyskeyd/stacktools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fstacktools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fstacktools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fstacktools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fstacktools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Freyskeyd","download_url":"https://codeload.github.com/Freyskeyd/stacktools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Freyskeyd%2Fstacktools/sbom","scorecard":{"id":52974,"data":{"date":"2025-08-11","repo":{"name":"github.com/Freyskeyd/stacktools","commit":"8ed608983ec5e3cc219e506b9ec35ea572a35322"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"Code-Review","score":0,"reason":"Found 0/3 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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":-1,"reason":"no dependencies found","details":null,"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":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 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-15T00:04:35.899Z","repository_id":57668497,"created_at":"2025-08-15T00:04:35.899Z","updated_at":"2025-08-15T00:04:35.899Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279955314,"owners_count":26250464,"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-10-19T02:00:07.647Z","response_time":64,"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":["priority-queue","queue","rust","stack"],"created_at":"2024-10-07T12:13:55.081Z","updated_at":"2025-10-20T00:31:53.826Z","avatar_url":"https://github.com/Freyskeyd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stacktools\n\n\u003e **Offer structure representation of data structures** - This crate helps you to deal with data structures such as\n\u003e Queue (FiFo), Stack (LiFo) and Priority queue.\n\n[![Build Status](https://travis-ci.org/Freyskeyd/stacktools.svg)](https://travis-ci.org/Freyskeyd/stacktools) [![Documentation](https://img.shields.io/badge/docs-master-blue.svg)][Documentation]\n\n## Install\n\nJust add it to your `Cargo.toml`:\n\n```toml\n[dependencies]\nstacktools = \"0.1\"\n```\n\n## Examples\n\n```rust\nextern crate stacktools;\n\nuse stacktools::prelude::*;\nuse stacktools::Queue;\n\nfn main() {\n    let mut queue: Queue\u003ci32\u003e = Queue::new();\n\n    assert!(queue.len() == 0);\n\n    queue.push(1);\n    queue.push(2);\n    queue.push(3);\n\n    assert!(queue.len() == 3);\n\n    assert_eq!(Some(1), queue.next());\n    assert!(queue.len() == 2);\n\n    assert_eq!(Some(2), queue.next());\n    assert!(queue.len() == 1);\n\n    assert_eq!(Some(3), queue.next());\n    assert!(queue.len() == 0);\n\n    assert_eq!(None, queue.next());\n}\n```\n\nWith PriorityQueue:\n```rust\nextern crate stacktools;\n\nuse stacktools::prelude::*;\nuse stacktools::{PriorityQueue, Priority};\n\nuse std::cmp::Ordering;\n\n#[derive(Eq, PartialEq, Debug)]\nstruct PriorityMessage {\n    priority: Priority,\n    value: i32,\n}\n\nimpl Ord for PriorityMessage {\n    fn cmp(\u0026self, other: \u0026PriorityMessage) -\u003e Ordering {\n        self.priority.cmp(\u0026other.priority)\n    }\n}\n\nimpl PartialOrd for PriorityMessage {\n    fn partial_cmp(\u0026self, other: \u0026PriorityMessage) -\u003e Option\u003cOrdering\u003e {\n        Some(self.cmp(other))\n    }\n}\n\nfn main() {\n    let mut queue: PriorityQueue\u003cPriorityMessage\u003e = PriorityQueue::new();\n\n    assert!(queue.len() == 0);\n\n    queue.push(PriorityMessage {\n        priority: Priority::Trivial,\n        value: 1,\n    });\n\n    queue.push(PriorityMessage {\n        priority: Priority::Normal,\n        value: 2,\n    });\n\n    queue.push(PriorityMessage {\n        priority: Priority::Critical,\n        value: 3,\n    });\n\n    queue.push(PriorityMessage {\n        priority: Priority::Critical,\n        value: 4,\n    });\n\n    assert_eq!(\n        Some(PriorityMessage {\n            priority: Priority::Critical,\n            value: 3,\n        }),\n        queue.next()\n    );\n\n    assert!(queue.len() == 3);\n\n    assert_eq!(\n        Some(PriorityMessage {\n            priority: Priority::Critical,\n            value: 4,\n        }),\n        queue.next()\n    );\n\n    assert!(queue.len() == 2);\n\n    assert_eq!(\n        Some(PriorityMessage {\n            priority: Priority::Normal,\n            value: 2,\n        }),\n        queue.next()\n    );\n\n    assert!(queue.len() == 1);\n\n    assert_eq!(\n        Some(PriorityMessage {\n            priority: Priority::Trivial,\n            value: 1,\n        }),\n        queue.next()\n    );\n\n    assert!(queue.len() == 0);\n\n    assert_eq!(None, queue.next());\n}\n```\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([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\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n\n[Documentation]: https://docs.rs/stacktools\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreyskeyd%2Fstacktools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreyskeyd%2Fstacktools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreyskeyd%2Fstacktools/lists"}