{"id":13732337,"url":"https://github.com/archshift/dynstack","last_synced_at":"2025-05-08T06:31:55.863Z","repository":{"id":39838636,"uuid":"156159341","full_name":"archshift/dynstack","owner":"archshift","description":"A stack for rust trait objects that minimizes allocations","archived":false,"fork":false,"pushed_at":"2022-08-10T00:00:16.000Z","size":35,"stargazers_count":128,"open_issues_count":2,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-04T16:49:50.389Z","etag":null,"topics":["collection","rust","trait-object"],"latest_commit_sha":null,"homepage":"","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/archshift.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":null,"support":null}},"created_at":"2018-11-05T04:10:39.000Z","updated_at":"2025-01-27T02:02:37.000Z","dependencies_parsed_at":"2022-09-26T20:10:45.965Z","dependency_job_id":null,"html_url":"https://github.com/archshift/dynstack","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archshift%2Fdynstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archshift%2Fdynstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archshift%2Fdynstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/archshift%2Fdynstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/archshift","download_url":"https://codeload.github.com/archshift/dynstack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252648869,"owners_count":21782465,"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":["collection","rust","trait-object"],"created_at":"2024-08-03T02:01:53.622Z","updated_at":"2025-05-08T06:31:50.854Z","avatar_url":"https://github.com/archshift.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# dynstack\n\n## A stack for trait objects that minimizes allocations\n\n**COMPATIBILITY NOTE:** `dynstack` relies on an underspecified fat pointer representation. Though\nit isn't expected to change in the foreseeable future, this crate expects Rust 1.34's representation.\n\n### Usage\n\n`dynstack` can mostly replace anywhere you'd use a stack, or a vector that doesn't\nrequire removal from its center.\n\n```rust\nlet mut stack = DynStack::\u003cdyn Debug\u003e::new();\ndyn_push!(stack, \"hello, world!\");\ndyn_push!(stack, 0usize);\ndyn_push!(stack, [1, 2, 3, 4, 5, 6]);\n\nfor item in stack.iter() {\n    println!(\"{:?}\", item);\n}\n\n// prints:\n//  \"hello, world!\"\n//  0\n//  [1, 2, 3, 4, 5, 6]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchshift%2Fdynstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farchshift%2Fdynstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farchshift%2Fdynstack/lists"}