{"id":23740034,"url":"https://github.com/jharrilim/dedent-macro-rs","last_synced_at":"2026-03-02T17:30:17.050Z","repository":{"id":220058479,"uuid":"750646482","full_name":"jharrilim/dedent-macro-rs","owner":"jharrilim","description":"Proc macro for dedenting string literals","archived":false,"fork":false,"pushed_at":"2024-01-31T04:41:36.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T09:42:09.167Z","etag":null,"topics":["dedent","macro","rust","strings"],"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/jharrilim.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-31T03:11:31.000Z","updated_at":"2024-01-31T06:22:26.000Z","dependencies_parsed_at":"2024-02-06T05:46:10.009Z","dependency_job_id":null,"html_url":"https://github.com/jharrilim/dedent-macro-rs","commit_stats":null,"previous_names":["jharrilim/dedent-macro-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jharrilim%2Fdedent-macro-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jharrilim%2Fdedent-macro-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jharrilim%2Fdedent-macro-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jharrilim%2Fdedent-macro-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jharrilim","download_url":"https://codeload.github.com/jharrilim/dedent-macro-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239881044,"owners_count":19712514,"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":["dedent","macro","rust","strings"],"created_at":"2024-12-31T09:41:41.142Z","updated_at":"2026-03-02T17:30:16.994Z","avatar_url":"https://github.com/jharrilim.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dedent-macro\n\nThis crate provides a simple compile-time macro to dedent strings.\nUseful for keeping consistent indentation within code.\n\nBefore:\n\n```rust\nfn write_win_status(x: bool) {\n    let s = if x {\n      \"\nCongratulations!\nYou won!\n      \"\n    } else {\n      \"\nUh oh,\ntry again!\n      \"\n    }\n    println!(\"{s}\");\n}\n```\n\nafter:\n\n```rust\nfn write_win_status(x: bool) {\n    let s = if x {\n      dedent!(\"\n        Congratulations!\n        You won!\n      \")\n    } else {\n      dedent!(\"\n        Uh oh,\n        try again!\n      \")\n    }\n    println!(\"{s}\");\n}\n\nlet s = \nassert_eq!(s, \"foo\\nbar\");\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjharrilim%2Fdedent-macro-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjharrilim%2Fdedent-macro-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjharrilim%2Fdedent-macro-rs/lists"}