{"id":33936248,"url":"https://github.com/scru128/rust","last_synced_at":"2026-04-09T05:32:09.141Z","repository":{"id":57666422,"uuid":"411646658","full_name":"scru128/rust","owner":"scru128","description":"SCRU128 Rust Implementation","archived":false,"fork":false,"pushed_at":"2026-03-29T13:35:22.000Z","size":322,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-29T16:39:46.446Z","etag":null,"topics":["guid","identifier","ksuid","ulid","uuid"],"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/scru128.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2021-09-29T11:29:01.000Z","updated_at":"2026-03-29T13:35:25.000Z","dependencies_parsed_at":"2026-02-27T13:03:05.560Z","dependency_job_id":null,"html_url":"https://github.com/scru128/rust","commit_stats":{"total_commits":88,"total_committers":1,"mean_commits":88.0,"dds":0.0,"last_synced_commit":"783e41135d9a286c7095476b1f1c40bb34187556"},"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/scru128/rust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scru128%2Frust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scru128%2Frust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scru128%2Frust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scru128%2Frust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scru128","download_url":"https://codeload.github.com/scru128/rust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scru128%2Frust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31587801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"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":["guid","identifier","ksuid","ulid","uuid"],"created_at":"2025-12-12T14:08:20.037Z","updated_at":"2026-04-09T05:32:09.134Z","avatar_url":"https://github.com/scru128.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SCRU128: Sortable, Clock and Random number-based Unique identifier\n\n[![Crates.io](https://img.shields.io/crates/v/scru128)](https://crates.io/crates/scru128)\n[![License](https://img.shields.io/crates/l/scru128)](https://github.com/scru128/rust/blob/main/LICENSE)\n\nSCRU128 ID is yet another attempt to supersede [UUID] for the users who need\ndecentralized, globally unique time-ordered identifiers. SCRU128 is inspired by\n[ULID] and [KSUID] and has the following features:\n\n- 128-bit unsigned integer type\n- Sortable by generation time (as integer and as text)\n- 25-digit case-insensitive textual representation (Base36)\n- 48-bit millisecond Unix timestamp that ensures useful life until year 10889\n- Up to 281 trillion time-ordered but unpredictable unique IDs per millisecond\n- 80-bit three-layer randomness for global uniqueness\n\n```rust\n// generate a new identifier object\nlet x = scru128::new();\nprintln!(\"{}\", x); // e.g., \"036z951mhjikzik2gsl81gr7l\"\nprintln!(\"{}\", x.to_u128()); // as a 128-bit unsigned integer\n\n// generate a textual representation directly\nprintln!(\"{}\", scru128::new_string()); // e.g., \"036z951mhzx67t63mq9xe6q0j\"\n```\n\nSee [SCRU128 Specification] for details.\n\n[UUID]: https://en.wikipedia.org/wiki/Universally_unique_identifier\n[ULID]: https://github.com/ulid/spec\n[KSUID]: https://github.com/segmentio/ksuid\n[SCRU128 Specification]: https://github.com/scru128/spec\n\n## Crate features\n\nDefault features:\n\n- `std` enables, among others, the default timestamp source for `Generator`\n  using `std::time`. Without `std`, users must provide their own time source\n  implementing the `TimeSource` trait.\n- `global_gen` (implies `std`) provides the process-wide default SCRU128\n  generator and enables the `new()` and `new_string()` functions.\n\nOptional features:\n\n- `serde` enables serialization/deserialization of `Id` via serde.\n- `rand010` enables an adapter for `rand::Rng` to use `rand` (v0.10) and any\n  other conforming random number generators with `Generator`.\n\n## License\n\nLicensed under the Apache License, Version 2.0.\n\n## See also\n\n- [docs.rs/scru128](https://docs.rs/scru128)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscru128%2Frust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscru128%2Frust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscru128%2Frust/lists"}