{"id":25339915,"url":"https://github.com/volight/pstr","last_synced_at":"2025-10-25T09:42:02.297Z","repository":{"id":56558873,"uuid":"305453006","full_name":"volight/pstr","owner":"volight","description":"Global String Intern Pool","archived":false,"fork":false,"pushed_at":"2020-11-02T07:16:39.000Z","size":86,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T01:22:32.408Z","etag":null,"topics":["intern","interned","interning","interning-string","pool","string","string-pool"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/pstr","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/volight.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":"2020-10-19T16:53:11.000Z","updated_at":"2023-02-17T07:26:36.000Z","dependencies_parsed_at":"2022-08-15T21:00:16.557Z","dependency_job_id":null,"html_url":"https://github.com/volight/pstr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/volight/pstr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volight%2Fpstr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volight%2Fpstr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volight%2Fpstr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volight%2Fpstr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/volight","download_url":"https://codeload.github.com/volight/pstr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/volight%2Fpstr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259634348,"owners_count":22887697,"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":["intern","interned","interning","interning-string","pool","string","string-pool"],"created_at":"2025-02-14T07:51:04.117Z","updated_at":"2025-10-25T09:41:57.257Z","avatar_url":"https://github.com/volight.png","language":"Rust","readme":"***Global string intern pool***  \n\n![Rust](https://github.com/volight/pstr/workflows/Rust/badge.svg)\n[![version](https://img.shields.io/crates/v/pstr)](https://crates.io/crates/pstr)\n[![documentation](https://docs.rs/pstr/badge.svg)](https://docs.rs/pstr)\n![LICENSE](https://img.shields.io/crates/l/pstr)\n\nInternal use of [DashMap](https://crates.io/crates/dashmap) for concurrent support\n\n# Examples\n- [`IStr`](https://docs.rs/pstr/0.7.0/pstr/struct.IStr.html)\n```rust\nuse pstr::IStr;\nlet s = IStr::new(\"hello world\");\n```\n- [`MowStr`](https://docs.rs/pstr/0.7.0/pstr/struct.MowStr.html)\n```rust\nuse pstr::MowStr;\nlet mut s = MowStr::new(\"hello\");\nassert!(s.is_interned());\n\ns.push_str(\" \");\nassert!(s.is_mutable());\n\ns.mutdown().push_str(\"world\");\nassert_eq!(s, \"hello world\");\n\ns.intern();\nassert!(s.is_interned());\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolight%2Fpstr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvolight%2Fpstr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvolight%2Fpstr/lists"}