{"id":25054906,"url":"https://github.com/jafagervik/zdsa","last_synced_at":"2025-03-31T07:44:33.568Z","repository":{"id":274867868,"uuid":"924311651","full_name":"Jafagervik/zdsa","owner":"Jafagervik","description":"Data structures in zig","archived":false,"fork":false,"pushed_at":"2025-02-02T15:48:47.000Z","size":26,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T12:19:16.709Z","etag":null,"topics":["dsa","zig","zig-package"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/Jafagervik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-29T19:25:21.000Z","updated_at":"2025-02-02T15:48:50.000Z","dependencies_parsed_at":"2025-01-29T21:19:19.555Z","dependency_job_id":"e8f9b49f-90b9-480d-a591-ed0ea5350e37","html_url":"https://github.com/Jafagervik/zdsa","commit_stats":null,"previous_names":["jafagervik/zdsa"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jafagervik%2Fzdsa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jafagervik%2Fzdsa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jafagervik%2Fzdsa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jafagervik%2Fzdsa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jafagervik","download_url":"https://codeload.github.com/Jafagervik/zdsa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246436091,"owners_count":20776964,"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":["dsa","zig","zig-package"],"created_at":"2025-02-06T12:19:17.960Z","updated_at":"2025-03-31T07:44:33.547Z","avatar_url":"https://github.com/Jafagervik.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ZDSA - Zig Data structures and algorithms\n\n## Goal\n\nTo create a simple collection of DSAs for further use\nAll should be generic\n\n## Usage\n\n```zig\nconst std = @import(\"std\");\nconst zdsa =  @import(\"zdsa\");\nconst Stack = zdsa.Stack;\n\npub fn main() !void {\n    var gpa = std.heap.GeneralPurposeAllocator(.{}){};\n    defer _ = gpa.deinit();\n    const allocator = gpa.allocator();\n\n    var stack = Stack(i32).init(allocator);\n    defer stack.deinit();\n\n    try stack.push(1);\n    try stack.push(2);\n    try stack.push(3);\n\n    const popped = try stack.pop();\n\n    stack.clear();\n}\n```\n\nFor more, see tests or example folders\n\n## Road to 1.0\n\n- [x] Stack\n- [x] Queue\n- [ ] Priority Queue\n- [x] Dequeue\n- [x] Singly Linked List\n- [x] LRU Cache\n- [x] Doubly Linked List\n- [ ] Binary Tree\n\n## Install (Per 0.14 beta)\n\nRun this command in the parent directory of your project\n\n```sh\nzig fetch --save https://github.com/Jafagervik/zdsa/tarball/v0.6.0\n```\n\nOr alternatively use master or another version\n\nThen add these lines to build.zig before b.installArtifact(exe)\n\n```zig\nconst zdsa = b.dependency(\"zdsa\", .{});\n\nexe.root_module.addImport(\"zdsa\", zdsa.module(\"zdsa\"));\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjafagervik%2Fzdsa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjafagervik%2Fzdsa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjafagervik%2Fzdsa/lists"}