{"id":34599155,"url":"https://github.com/flyingrobots/rmg-ident","last_synced_at":"2026-05-27T17:32:01.122Z","repository":{"id":324627577,"uuid":"1097871539","full_name":"flyingrobots/rmg-ident","owner":"flyingrobots","description":"RMG Identifier Types","archived":false,"fork":false,"pushed_at":"2025-11-17T00:53:31.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-25T23:43:31.908Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/flyingrobots.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-17T00:39:44.000Z","updated_at":"2025-11-17T02:10:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/flyingrobots/rmg-ident","commit_stats":null,"previous_names":["flyingrobots/rmg-ident"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flyingrobots/rmg-ident","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingrobots%2Frmg-ident","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingrobots%2Frmg-ident/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingrobots%2Frmg-ident/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingrobots%2Frmg-ident/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flyingrobots","download_url":"https://codeload.github.com/flyingrobots/rmg-ident/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyingrobots%2Frmg-ident/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33577633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"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":[],"created_at":"2025-12-24T12:07:33.703Z","updated_at":"2026-05-27T17:32:01.102Z","avatar_url":"https://github.com/flyingrobots.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RMG Identifier (`rmg-ident`)\n\n**TL;DR**: This crate provides core, domain-separated identifier types (NodeId, TypeId, EdgeId) for the Recursive Meta-Graph (RMG) engine, ensuring deterministic hashing and collision prevention.\n\n## Getting Started\n\nTo get a local copy of `rmg-ident` up and running, follow these steps:\n\n1.  **Clone the repository**:\n    ```bash\n    git clone https://github.com/flyingrobots/rmg-ident.git\n    cd rmg-ident\n    ```\n\n2.  **Run tests**:\n    ```bash\n    cargo test\n    ```\n\n3.  **Build the library**:\n    ```bash\n    cargo build\n    ```\n\n## Overview\n\nAll identifiers in RMG are derived from a BLAKE3 hash of a string label. To\nprevent collisions between different types of identifiers (e.g., a node and a\ntype with the same label), each identifier is created with a domain-separation\nprefix.\n\nThis crate provides:\n- The core `Hash` type (a `[u8; 32]` array).\n- Strongly-typed identifiers: `NodeId`, `TypeId`, `EdgeId`.\n- A compact, in-process `CompactRuleId` for hot paths.\n- Functions to create these identifiers from string labels.\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n```toml\n[dependencies]\nrmg-ident = \"0.1.0\"\n```\n\nThen, you can use the functions to create identifiers:\n\n```rust\nuse rmg_ident::{make_node_id, make_type_id, make_edge_id};\n\n// Create a new NodeId\nlet node_id = make_node_id(\"my-node\");\n\n// Create a new TypeId\nlet type_id = make_type_id(\"my-type\");\n\n// Create a new EdgeId\nlet edge_id = make_edge_id(\"my-edge\");\n```\n\n## API\n\n### Structs\n- `pub struct NodeId(pub Hash)`: A strongly-typed identifier for a node.\n- `pub struct TypeId(pub Hash)`: A strongly-typed identifier for a type.\n- `pub struct EdgeId(pub Hash)`: A strongly-typed identifier for an edge.\n- `pub struct CompactRuleId(pub u32)`: A compact, process-local rule identifier.\n\n### Functions\n- `pub fn make_node_id(label: \u0026str) -\u003e NodeId`: Creates a new `NodeId` from a string label.\n- `pub fn make_type_id(label: \u0026str) -\u003e TypeId`: Creates a new `TypeId` from a string label.\n- `pub fn make_edge_id(label: \u0026str) -\u003e EdgeId`: Creates a new `EdgeId` from a string label.\n\n## License\n\nLicensed under the Apache License, Version 2.0. See [LICENSE](./LICENSE) and [NOTICE](./NOTICE) for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyingrobots%2Frmg-ident","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflyingrobots%2Frmg-ident","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyingrobots%2Frmg-ident/lists"}