{"id":15529140,"url":"https://github.com/kazk/xid-rs","last_synced_at":"2025-07-26T09:02:59.603Z","repository":{"id":38893806,"uuid":"320801324","full_name":"kazk/xid-rs","owner":"kazk","description":"Globally unique sortable id generator. A Rust port of https://github.com/rs/xid.","archived":false,"fork":false,"pushed_at":"2024-08-14T09:21:39.000Z","size":32,"stargazers_count":37,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-17T03:49:40.618Z","etag":null,"topics":["id","rust"],"latest_commit_sha":null,"homepage":"https://docs.rs/xid","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/kazk.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,"publiccode":null,"codemeta":null}},"created_at":"2020-12-12T10:13:13.000Z","updated_at":"2025-02-09T02:26:44.000Z","dependencies_parsed_at":"2024-04-23T19:53:27.437Z","dependency_job_id":null,"html_url":"https://github.com/kazk/xid-rs","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.050000000000000044","last_synced_commit":"76b8ca8144b3dbdcac0ad0e1f711589e107bebe6"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/kazk/xid-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazk%2Fxid-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazk%2Fxid-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazk%2Fxid-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazk%2Fxid-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kazk","download_url":"https://codeload.github.com/kazk/xid-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kazk%2Fxid-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267143962,"owners_count":24042530,"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-07-26T02:00:08.937Z","response_time":62,"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":["id","rust"],"created_at":"2024-10-02T11:16:37.625Z","updated_at":"2025-07-26T09:02:59.473Z","avatar_url":"https://github.com/kazk.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xid\n\n[![CI](https://github.com/kazk/xid-rs/workflows/CI/badge.svg)](https://github.com/kazk/xid-rs/actions?query=workflow%3ACI)\n[![Crates.io](https://img.shields.io/crates/v/xid.svg)](https://crates.io/crates/xid)\n[![API reference](https://docs.rs/xid/badge.svg)](https://docs.rs/xid/)\n\nGlobally unique sortable id generator. A Rust port of https://github.com/rs/xid.\n\nThe binary representation is compatible with the Mongo DB 12-byte [ObjectId][object-id].\nThe value consists of:\n\n- a 4-byte timestamp value in seconds since the Unix epoch\n- a 3-byte value based on the machine identifier\n- a 2-byte value based on the process id\n- a 3-byte incrementing counter, initialized to a random value\n\nThe string representation is 20 bytes, using a base32 hex variant with characters `[0-9a-v]`\nto retain the sortable property of the id.\n\nSee the original [`xid`] project for more details.\n\n## Usage\n\n```rust\nprintln!(\"{}\", xid::new()); //=\u003e bva9lbqn1bt68k8mj62g\n```\n\n## Examples\n\n- [`cargo run --example gen`](./examples/gen.rs): Generate xid\n\n[`xid`]:  https://github.com/rs/xid\n[object-id]: https://docs.mongodb.org/manual/reference/object-id/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazk%2Fxid-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkazk%2Fxid-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkazk%2Fxid-rs/lists"}