{"id":20305547,"url":"https://github.com/dervexdev/pathsub","last_synced_at":"2026-06-04T02:31:19.640Z","repository":{"id":211913124,"uuid":"730269478","full_name":"DervexDev/pathsub","owner":"DervexDev","description":"Subtract one path from another, yielding the subtraction difference rather than relative path","archived":false,"fork":false,"pushed_at":"2024-02-01T12:29:16.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T07:24:03.800Z","etag":null,"topics":["diff","os","path","rust","sub"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/pathsub","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/DervexDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2023-12-11T15:03:14.000Z","updated_at":"2023-12-11T21:38:08.000Z","dependencies_parsed_at":"2024-02-01T14:15:56.540Z","dependency_job_id":null,"html_url":"https://github.com/DervexDev/pathsub","commit_stats":null,"previous_names":["dervexhero/pathsub","dervexdev/pathsub"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DervexDev/pathsub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DervexDev%2Fpathsub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DervexDev%2Fpathsub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DervexDev%2Fpathsub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DervexDev%2Fpathsub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DervexDev","download_url":"https://codeload.github.com/DervexDev/pathsub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DervexDev%2Fpathsub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27467189,"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-12-03T02:00:06.367Z","response_time":57,"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":["diff","os","path","rust","sub"],"created_at":"2024-11-14T17:08:54.919Z","updated_at":"2025-12-03T02:02:10.106Z","avatar_url":"https://github.com/DervexDev.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pathsub\n\nSubtract one path from another, yielding the subtraction difference rather than relative path, unlike [pathdiff](https://crates.io/crates/pathdiff)\n\n\u003cdiv\u003e\n  \u003ca href=\"https://crates.io/crates/pathsub\"\u003e\u003cimg alt='Version badge' src='https://img.shields.io/crates/v/pathsub.svg'\u003e\u003c/a\u003e\n  \u003ca href=\"https://crates.io/crates/pathsub\"\u003e\u003cimg alt='Downloads badge' src='https://img.shields.io/crates/d/pathsub.svg'\u003e\u003c/a\u003e\n  \u003ca href=\"https://crates.io/crates/pathsub\"\u003e\u003cimg alt='License badge' src='https://img.shields.io/crates/l/pathsub.svg'\u003e\u003c/a\u003e\n  \u003ca href=\"https://docs.rs/pathsub\"\u003e\u003cimg alt=\"Docs badge\" src=\"https://img.shields.io/docsrs/pathsub\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n## Example:\n\n```rust\nuse pathsub::sub_paths;\nuse std::path::Path;\n\nlet a = Path::new(\"foo/bar\");\nlet b = Path::new(\"foo\");\n\nsub_paths(a, b); // Some(\"bar\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdervexdev%2Fpathsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdervexdev%2Fpathsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdervexdev%2Fpathsub/lists"}