{"id":20522993,"url":"https://github.com/openbytedev/u16cstr","last_synced_at":"2025-04-14T03:03:31.324Z","repository":{"id":37485168,"uuid":"391067752","full_name":"OpenByteDev/u16cstr","owner":"OpenByteDev","description":"A macro for creating c-style u16 wide strings at compile time.","archived":false,"fork":false,"pushed_at":"2022-07-19T15:18:15.000Z","size":26,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T03:15:24.519Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/OpenByteDev.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":"2021-07-30T13:05:54.000Z","updated_at":"2022-09-09T21:08:31.000Z","dependencies_parsed_at":"2022-09-26T20:41:21.302Z","dependency_job_id":null,"html_url":"https://github.com/OpenByteDev/u16cstr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenByteDev%2Fu16cstr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenByteDev%2Fu16cstr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenByteDev%2Fu16cstr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenByteDev%2Fu16cstr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenByteDev","download_url":"https://codeload.github.com/OpenByteDev/u16cstr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813786,"owners_count":21165633,"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":[],"created_at":"2024-11-15T22:37:32.589Z","updated_at":"2025-04-14T03:03:31.290Z","avatar_url":"https://github.com/OpenByteDev.png","language":"Rust","readme":"# u16cstr\n\n[![Build](https://github.com/OpenByteDev/u16cstr/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/OpenByteDev/u16cstr/actions/workflows/build-and-test.yml)\n[![crates.io](https://img.shields.io/crates/v/u16cstr.svg)](https://crates.io/crates/u16cstr)\n[![Documentation](https://docs.rs/u16cstr/badge.svg)](https://docs.rs/u16cstr)\n[![dependency status](https://deps.rs/repo/github/openbytedev/u16cstr/status.svg)](https://deps.rs/repo/github/openbytedev/u16cstr)\n[![MIT](https://img.shields.io/crates/l/u16cstr.svg)](https://github.com/OpenByteDev/u16cstr/blob/master/LICENSE)\n\nA macro for creating c-style u16 wide strings at compile time.\n\n## Example\n```rust\nuse u16cstr::{u16cstr, u16str};\nuse widestring::{U16CString, U16String, U16CStr, U16Str};\n\n// c-style terminated wide string\nconst wide_c_string: \u0026U16CStr = u16cstr!(\"Test\");\nassert_eq!(wide_c_string, U16CString::from_str(\"Test\").unwrap().as_ucstr());\n\n// non-terminated wide string\nconst wide_string: \u0026U16Str = u16str!(\"Test\");\nassert_eq!(wide_string, U16String::from_str(\"Test\").as_ustr());\n```\n\n## License\nLicensed under MIT license ([LICENSE](https://github.com/OpenByteDev/u16cstr/blob/master/LICENSE) or http://opensource.org/licenses/MIT)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenbytedev%2Fu16cstr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenbytedev%2Fu16cstr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenbytedev%2Fu16cstr/lists"}