{"id":34251995,"url":"https://github.com/lbfalvy/intern-all","last_synced_at":"2026-03-10T23:03:55.012Z","repository":{"id":207928548,"uuid":"720440767","full_name":"lbfalvy/intern-all","owner":"lbfalvy","description":"A safe and leak-free interner for data of mixed and arbitrary type","archived":false,"fork":false,"pushed_at":"2024-02-27T17:13:17.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-19T21:55:03.883Z","etag":null,"topics":["langdev","nounsafe","parsing","strings"],"latest_commit_sha":null,"homepage":"https://docs.rs/intern-all/latest/intern_all/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lbfalvy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"lbfalvy","patreon":"lbfalvy","open_collective":null,"ko_fi":"lbfalvy","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-11-18T13:52:47.000Z","updated_at":"2023-11-18T15:17:49.000Z","dependencies_parsed_at":"2023-11-18T15:20:11.545Z","dependency_job_id":"3dd1124e-489b-41f3-bcdc-b214464288f8","html_url":"https://github.com/lbfalvy/intern-all","commit_stats":null,"previous_names":["lbfalvy/intern-all"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/lbfalvy/intern-all","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbfalvy%2Fintern-all","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbfalvy%2Fintern-all/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbfalvy%2Fintern-all/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbfalvy%2Fintern-all/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lbfalvy","download_url":"https://codeload.github.com/lbfalvy/intern-all/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lbfalvy%2Fintern-all/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30360644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"ssl_error","status_checked_at":"2026-03-10T21:40:59.357Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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"}},"keywords":["langdev","nounsafe","parsing","strings"],"created_at":"2025-12-16T10:56:18.233Z","updated_at":"2026-03-10T23:03:54.993Z","avatar_url":"https://github.com/lbfalvy.png","language":"Rust","readme":"An interner for data of mixed / arbitrary type. It uses weak references and the default allocator so it can be used in long-running processes.\n\n```rust\nuse std::env;\nuse std::path::PathBuf;\n\nuse intern_all::{i, Tok};\n\n// Intern a value\nlet a: Tok\u003cString\u003e = i(\"foo\");\n// Intern a path\nlet b: Tok\u003cPathBuf\u003e = i(\u0026env::current_dir().unwrap());\n```\n\nSome convenience methods are also provided to make working with lists easier\n\n```rust\nuse intern_all::{i, ibv, iv, Tok};\n\n// Intern a list as a slice of tokens\nlet v1: Tok\u003cVec\u003cTok\u003cString\u003e\u003e\u003e = i(\u0026[i(\"bar\"), i(\"quz\"), i(\"quux\")][..]);\n// Intern a list of internable values\nlet v2: Tok\u003cVec\u003cTok\u003cString\u003e\u003e\u003e =\n  iv([\"bar\".to_string(), \"quz\".to_string(), \"quux\".to_string()]);\n// Intern a list of the borrowed form of internable values\nlet v3: Tok\u003cVec\u003cTok\u003cString\u003e\u003e\u003e = ibv([\"bar\", \"quz\", \"quux\"]);\nassert!(v1 == v2 \u0026\u0026 v2 == v3)\n```\n\nThe interner uses weak references but the unreferenced values still take up\nspace in the token table. To avoid a memory leak, you can periodically\nsremove entries referring to unreferenced values from the interner with\n`sweep` or `sweep_t`.\n\n```rust\nuse intern_all::{sweep, sweep_t};\n\n// use this for general housekeeping\nsweep();\n// use this if a lot of temporary values of a particular interned type\n// had been dropped recently\nsweep_t::\u003cString\u003e();\n```","funding_links":["https://github.com/sponsors/lbfalvy","https://patreon.com/lbfalvy","https://ko-fi.com/lbfalvy"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbfalvy%2Fintern-all","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flbfalvy%2Fintern-all","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flbfalvy%2Fintern-all/lists"}