{"id":16162346,"url":"https://github.com/sunsided/merge-whitespace-rs","last_synced_at":"2026-04-01T18:23:56.183Z","repository":{"id":239747086,"uuid":"800461420","full_name":"sunsided/merge-whitespace-rs","owner":"sunsided","description":"Procedural macros for merging whitespace in const contexts","archived":false,"fork":false,"pushed_at":"2025-06-24T08:58:11.000Z","size":103,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-06T00:09:14.858Z","etag":null,"topics":["graphql","macros","procedural-macro","rust","text-processing"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/merge-whitespace","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunsided.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2024-05-14T11:33:13.000Z","updated_at":"2025-07-23T08:23:41.000Z","dependencies_parsed_at":"2025-07-20T05:39:00.778Z","dependency_job_id":null,"html_url":"https://github.com/sunsided/merge-whitespace-rs","commit_stats":null,"previous_names":["sunsided/merge-whitespace-rs"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/sunsided/merge-whitespace-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fmerge-whitespace-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fmerge-whitespace-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fmerge-whitespace-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fmerge-whitespace-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunsided","download_url":"https://codeload.github.com/sunsided/merge-whitespace-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunsided%2Fmerge-whitespace-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31018543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T03:51:26.850Z","status":"ssl_error","status_checked_at":"2026-03-27T03:51:09.693Z","response_time":164,"last_error":"SSL_read: 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":["graphql","macros","procedural-macro","rust","text-processing"],"created_at":"2024-10-10T02:29:49.919Z","updated_at":"2026-03-27T04:02:11.151Z","avatar_url":"https://github.com/sunsided.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# merge_whitespace\n\n[![Crates.io](https://img.shields.io/crates/v/merge-whitespace)](https://crates.io/crates/merge-whitespace)\n[![Crates.io](https://img.shields.io/crates/l/merge-whitespace)](https://crates.io/crates/merge-whitespace)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/sunsided/merge-whitespace-rs/rust.yml)\n[![Safety Dance][safety-image]][safety-link]\n[![docs.rs](https://img.shields.io/docsrs/merge-whitespace)](https://docs.rs/merge-whitespace/)\n[![codecov](https://codecov.io/gh/sunsided/merge-whitespace-rs/graph/badge.svg?token=U6viefmywe)](https://codecov.io/gh/sunsided/merge-whitespace-rs)\n\n\nThis crate contains procedural macros for removing multiple consecutive whitespaces from a\ngiven string literal, replacing them with a single space.\n\n## Example\n\nThe example below uses an optional quotation character to keep quoted text ranges un-merged, as well as\nan optional escape character to ensure that quotation character literals are kept as-is.\n\n```rust\nuse merge_whitespace::merge_whitespace;\n\nconst QUERY: \u0026str = merge_whitespace!(r#\"\n     query {\n       users (limit: 1, filter: \"bought a 12\\\" vinyl\n                                 named \\\"spaces  in  space \\\"\") {\n         id\n         name\n         todos(order_by: {created_at: desc}, limit: 5) {\n           id\n           title\n         }\n       }\n     }\n     \"#,\n     quote_char = '\"',\n     escape_char = '\\\\');\n\n#[test]\nfn test() {\n    assert_eq!(QUERY, r#\"query { users (limit: 1, filter: \"bought a 12\\\" vinyl\n                                 named \\\"spaces  in  space \\\"\") { id name todos(order_by: {created_at: desc}, limit: 5) { id title } } }\"#);\n}\n```\n\nAlternatively, the `merge_whitespace_utils::merge_whitespace` function can be used to process variable input. \n\n[safety-image]: https://img.shields.io/badge/unsafe-forbidden-success.svg\n\n[safety-link]: https://github.com/rust-secure-code/safety-dance/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Fmerge-whitespace-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunsided%2Fmerge-whitespace-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunsided%2Fmerge-whitespace-rs/lists"}