{"id":4262098,"name":"replace_with","ecosystem":"cargo","description":"Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.\n","homepage":"https://github.com/alecmocatta/replace_with","licenses":"MIT OR Apache-2.0","normalized_licenses":["MIT","Apache-2.0"],"repository_url":"https://github.com/alecmocatta/replace_with","keywords_array":["mutability"],"namespace":null,"versions_count":9,"first_release_published_at":"2018-11-08T20:55:34.665Z","latest_release_published_at":"2025-05-20T16:43:43.608Z","latest_release_number":"0.1.8","last_synced_at":"2026-05-06T15:17:11.433Z","created_at":"2022-04-13T00:56:28.250Z","updated_at":"2026-05-06T15:17:11.433Z","registry_url":"https://crates.io/crates/replace_with/","install_command":"cargo install replace_with","documentation_url":"https://docs.rs/replace_with/","metadata":{"categories":["rust-patterns"]},"repo_metadata":{"id":52417294,"uuid":"156761503","full_name":"alecmocatta/replace_with","owner":"alecmocatta","description":"Temporarily take ownership of a value at a mutable location, and replace it with a new value based on the old one.","archived":false,"fork":false,"pushed_at":"2025-05-20T16:46:45.000Z","size":62,"stargazers_count":114,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-19T04:33:29.988Z","etag":null,"topics":["mutability","rust","rust-patterns"],"latest_commit_sha":null,"homepage":"","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/alecmocatta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-08T19:57:55.000Z","updated_at":"2025-10-15T07:43:13.000Z","dependencies_parsed_at":"2022-09-06T23:20:46.638Z","dependency_job_id":null,"html_url":"https://github.com/alecmocatta/replace_with","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/alecmocatta/replace_with","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alecmocatta","download_url":"https://codeload.github.com/alecmocatta/replace_with/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/sbom","scorecard":{"id":178721,"data":{"date":"2025-08-11","repo":{"name":"github.com/alecmocatta/replace_with","commit":"c64bd3f054ed999f032b364ec8c427bbe04c1d3f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.7,"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":5,"reason":"Found 4/8 approved changesets -- score normalized to 5","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":"Maintained","score":3,"reason":"3 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 30 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-16T18:22:31.258Z","repository_id":52417294,"created_at":"2025-08-16T18:22:31.259Z","updated_at":"2025-08-16T18:22:31.259Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29965419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T06:55:38.174Z","status":"ssl_error","status_checked_at":"2026-03-01T06:53:04.810Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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"},"owner_record":{"login":"alecmocatta","name":"Alec Mocatta","uuid":"1136246","kind":"user","description":"","email":"","website":"https://mocatta.net","location":"London","twitter":"alecmocatta","company":"@tablyinc ","icon_url":"https://avatars.githubusercontent.com/u/1136246?v=4","repositories_count":72,"last_synced_at":"2024-12-06T20:10:15.680Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/alecmocatta","funding_links":[],"total_stars":569,"followers":89,"following":127,"created_at":"2022-11-12T21:23:21.210Z","updated_at":"2024-12-06T20:10:15.680Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alecmocatta","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alecmocatta/repositories"},"tags":[{"name":"v0.1.7","sha":"1e86e4a3633c133cd3a8f797dc06ac92401bff1e","kind":"commit","published_at":"2020-08-14T09:13:30.000Z","download_url":"https://codeload.github.com/alecmocatta/replace_with/tar.gz/v0.1.7","html_url":"https://github.com/alecmocatta/replace_with/releases/tag/v0.1.7","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/alecmocatta/replace_with@v0.1.7","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.7","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.7/manifests"},{"name":"v0.1.6","sha":"c3730ae18b67a1648c38e346b42f59f0ed995a3c","kind":"commit","published_at":"2020-07-18T10:22:00.000Z","download_url":"https://codeload.github.com/alecmocatta/replace_with/tar.gz/v0.1.6","html_url":"https://github.com/alecmocatta/replace_with/releases/tag/v0.1.6","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/alecmocatta/replace_with@v0.1.6","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.6","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.6/manifests"},{"name":"v0.1.5","sha":"840b826f4d9596709c914aba9c18ce470928b00c","kind":"commit","published_at":"2019-10-17T20:27:37.000Z","download_url":"https://codeload.github.com/alecmocatta/replace_with/tar.gz/v0.1.5","html_url":"https://github.com/alecmocatta/replace_with/releases/tag/v0.1.5","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/alecmocatta/replace_with@v0.1.5","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.5","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.5/manifests"},{"name":"v0.1.4","sha":"3c6cdd4d84e90cac504d697c8a3a9770e9d5b3f4","kind":"commit","published_at":"2019-09-01T23:35:45.000Z","download_url":"https://codeload.github.com/alecmocatta/replace_with/tar.gz/v0.1.4","html_url":"https://github.com/alecmocatta/replace_with/releases/tag/v0.1.4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/alecmocatta/replace_with@v0.1.4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.4/manifests"},{"name":"v0.1.3","sha":"29c490b1067c5ac3147e7a4be63282473ca87045","kind":"commit","published_at":"2019-03-27T16:53:46.000Z","download_url":"https://codeload.github.com/alecmocatta/replace_with/tar.gz/v0.1.3","html_url":"https://github.com/alecmocatta/replace_with/releases/tag/v0.1.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/alecmocatta/replace_with@v0.1.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.3/manifests"},{"name":"v0.1.2","sha":"fe90de6e768875ab8069d990f5b8c8cc722acfad","kind":"commit","published_at":"2018-11-27T17:51:42.000Z","download_url":"https://codeload.github.com/alecmocatta/replace_with/tar.gz/v0.1.2","html_url":"https://github.com/alecmocatta/replace_with/releases/tag/v0.1.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/alecmocatta/replace_with@v0.1.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.2/manifests"},{"name":"v0.1.1","sha":"d5da55f71230a8b4d8e865e397e85096a58dac72","kind":"commit","published_at":"2018-11-08T22:49:26.000Z","download_url":"https://codeload.github.com/alecmocatta/replace_with/tar.gz/v0.1.1","html_url":"https://github.com/alecmocatta/replace_with/releases/tag/v0.1.1","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/alecmocatta/replace_with@v0.1.1","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.1/manifests"},{"name":"v0.1.0","sha":"0a93730a2172e97b84b70b775a7661d500a027df","kind":"commit","published_at":"2018-11-08T20:59:55.000Z","download_url":"https://codeload.github.com/alecmocatta/replace_with/tar.gz/v0.1.0","html_url":"https://github.com/alecmocatta/replace_with/releases/tag/v0.1.0","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/alecmocatta/replace_with@v0.1.0","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/tags/v0.1.0/manifests"}]},"repo_metadata_updated_at":"2026-04-01T10:13:40.279Z","dependent_packages_count":45,"downloads":14747938,"downloads_period":"total","dependent_repos_count":349,"rankings":{"downloads":2.159506824399371,"dependent_repos_count":2.2034871152656335,"dependent_packages_count":1.1222131086421594,"stargazers_count":13.979336255479021,"forks_count":16.191292679290296,"docker_downloads_count":null,"average":7.131167196615296},"purl":"pkg:cargo/replace_with","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/cargo/replace_with","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/cargo/replace_with","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/cargo/replace_with/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-07-30T00:44:33.176Z","issues_count":10,"pull_requests_count":12,"avg_time_to_close_issue":34508266.625,"avg_time_to_close_pull_request":8498318.090909092,"issues_closed_count":8,"pull_requests_closed_count":11,"pull_request_authors_count":6,"issue_authors_count":10,"avg_comments_per_issue":2.0,"avg_comments_per_pull_request":0.75,"merged_pull_requests_count":10,"bot_issues_count":0,"bot_pull_requests_count":1,"past_year_issues_count":2,"past_year_pull_requests_count":1,"past_year_avg_time_to_close_issue":865991.5,"past_year_avg_time_to_close_pull_request":223.0,"past_year_issues_closed_count":2,"past_year_pull_requests_closed_count":1,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":2,"past_year_avg_comments_per_issue":0.5,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":1,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/alecmocatta%2Freplace_with/issues","maintainers":[{"login":"alecmocatta","count":8,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/alecmocatta"}],"active_maintainers":[{"login":"alecmocatta","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/alecmocatta"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/replace_with/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/replace_with/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/replace_with/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/replace_with/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/replace_with/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/packages/replace_with/codemeta","maintainers":[{"uuid":"3893","login":"alecmocatta","name":"Alec Mocatta","email":null,"url":"https://github.com/alecmocatta","packages_count":50,"html_url":"https://crates.io/users/alecmocatta","role":null,"created_at":"2022-11-07T23:49:58.131Z","updated_at":"2022-11-07T23:49:58.131Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/crates.io/maintainers/alecmocatta/packages"}]}