{"id":20872445,"url":"https://github.com/romnn/par-dfs","last_synced_at":"2025-10-26T07:10:21.775Z","repository":{"id":59467800,"uuid":"536033141","full_name":"romnn/par-dfs","owner":"romnn","description":"Parallel, serial, sync, and async DFS and BFS traversal for Rust","archived":false,"fork":false,"pushed_at":"2025-01-01T21:16:03.000Z","size":8504,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T20:13:38.307Z","etag":null,"topics":["async","bfs","dfs","graph","parallel","rayon","rust","stream","sync","tokio"],"latest_commit_sha":null,"homepage":"https://romnn.github.io/par-dfs","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/romnn.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2022-09-13T08:37:10.000Z","updated_at":"2025-01-01T21:02:52.000Z","dependencies_parsed_at":"2022-09-17T01:31:08.144Z","dependency_job_id":null,"html_url":"https://github.com/romnn/par-dfs","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romnn%2Fpar-dfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romnn%2Fpar-dfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romnn%2Fpar-dfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romnn%2Fpar-dfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romnn","download_url":"https://codeload.github.com/romnn/par-dfs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248315926,"owners_count":21083345,"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":["async","bfs","dfs","graph","parallel","rayon","rust","stream","sync","tokio"],"created_at":"2024-11-18T06:19:04.684Z","updated_at":"2025-10-26T07:10:16.713Z","avatar_url":"https://github.com/romnn.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## par-dfs\n\n[\u003cimg alt=\"build status\" src=\"https://img.shields.io/github/actions/workflow/status/romnn/par-dfs/build.yml?branch=main\u0026label=build\"\u003e](https://github.com/romnn/par-dfs/actions/workflows/build.yml)\n[\u003cimg alt=\"test status\" src=\"https://img.shields.io/github/actions/workflow/status/romnn/par-dfs/test.yml?branch=main\u0026label=test\"\u003e](https://github.com/romnn/par-dfs/actions/workflows/test.yml)\n[\u003cimg alt=\"benchmarks\" src=\"https://img.shields.io/github/actions/workflow/status/romnn/par-dfs/bench.yml?branch=main\u0026label=bench\"\u003e](https://romnn.github.io/par-dfs/)\n[\u003cimg alt=\"crates.io\" src=\"https://img.shields.io/crates/v/par-dfs\"\u003e](https://crates.io/crates/par-dfs)\n[\u003cimg alt=\"docs.rs\" src=\"https://img.shields.io/docsrs/par-dfs/latest?label=docs.rs\"\u003e](https://docs.rs/par-dfs)\n\nParallel, serial, and async DFS and BFS traversal iterators in Rust.\n\n```toml\n[dependencies]\npar-dfs = \"0\"\n```\n\n#### Usage\n\nFor usage examples, check the [examples](https://github.com/romnn/par-dfs/tree/main/examples) and [documentation](https://docs.rs/par-dfs).\n\n#### Examples\n\n```bash\ncargo run --example async_fs --features async -- --path ./\ncargo run --example sync_fs --features sync,rayon -- --path ./\n```\n\n#### Benchmarking\n\n```bash\ncargo install cargo-criterion\n# full benchmark suite\ncargo criterion --features full\n# sync benchmarks only\ncargo criterion --features sync -- sync\n# dfs benchmarks only\ncargo criterion --features full -- dfs\n```\n\nBenchmark reports are available [here](https://romnn.github.io/par-dfs/).\n\n#### Acknowledgements\n\nThe [`rayon::iter::ParallelIterator`](https://docs.rs/rayon/latest/rayon/iter/trait.ParallelIterator.html) implementation for the dynamically growing graph traversal is based on the amazing work in [tavianator's blog post](https://tavianator.com/2022/parallel_graph_search.html).\n\nThe implementation of [`futures_util::stream::Buffered`](https://docs.rs/futures-util/latest/src/futures_util/stream/stream/buffered.rs.html#12-25) also greatly helped in the design of the async streams.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromnn%2Fpar-dfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromnn%2Fpar-dfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromnn%2Fpar-dfs/lists"}