{"id":21500264,"url":"https://github.com/clucompany/include_tt","last_synced_at":"2026-01-12T06:42:34.455Z","repository":{"id":183256534,"uuid":"669842059","full_name":"clucompany/include_tt","owner":"clucompany","description":"[stable] Macro for embedding (trees, strings, arrays) into macro trees directly from files.","archived":false,"fork":false,"pushed_at":"2024-05-19T12:01:56.000Z","size":71,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T09:02:02.213Z","etag":null,"topics":["clucompany","code-generation","code-transformation","file-io","macro","procedural-macros"],"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/clucompany.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_APACHE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2023-07-23T15:53:02.000Z","updated_at":"2024-12-30T22:28:20.000Z","dependencies_parsed_at":"2024-05-19T13:26:08.475Z","dependency_job_id":"9c0a0d00-236c-476f-ab85-03c527d1e37e","html_url":"https://github.com/clucompany/include_tt","commit_stats":null,"previous_names":["clucompany/include_tt"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clucompany%2Finclude_tt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clucompany%2Finclude_tt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clucompany%2Finclude_tt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clucompany%2Finclude_tt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clucompany","download_url":"https://codeload.github.com/clucompany/include_tt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246899668,"owners_count":20851898,"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":["clucompany","code-generation","code-transformation","file-io","macro","procedural-macros"],"created_at":"2024-11-23T17:23:09.487Z","updated_at":"2026-01-12T06:42:34.449Z","avatar_url":"https://github.com/clucompany.png","language":"Rust","readme":"\u003cdiv id=\"header\" align=\"center\"\u003e\n\n  \u003cb\u003e[include_tt]\u003c/b\u003e\n  \n  (Macros for ultra-flexible injection of compiler trees, literals, or binary data into Rust syntax trees from external sources.)\n  \u003c/br\u003e\u003c/br\u003e\n\n\u003cdiv id=\"badges\"\u003e\n  \u003ca href=\"./LICENSE_MIT\"\u003e\n    \u003cimg src=\"https://github.com/UlinProject/img/blob/main/short_32/mit.png?raw=true\" alt=\"mit\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"./LICENSE_APACHE\"\u003e\n    \u003cimg src=\"https://github.com/UlinProject/img/blob/main/short_32/apache2.png?raw=true\" alt=\"apache2\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://crates.io/crates/include_tt\"\u003e\n    \u003cimg src=\"https://github.com/UlinProject/img/blob/main/short_32/cratesio.png?raw=true\" alt=\"cratesio\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://docs.rs/include_tt\"\u003e\n    \u003cimg src=\"https://github.com/UlinProject/img/blob/main/short_32/docrs.png?raw=true\" alt=\"docrs\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/denisandroid\"\u003e\n    \u003cimg src=\"https://github.com/UlinProject/img/blob/main/short_32/uproject.png?raw=true\" alt=\"uproject\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/clucompany\"\u003e\n    \u003cimg src=\"https://github.com/UlinProject/img/blob/main/short_32/clulab.png?raw=true\" alt=\"clulab\"/\u003e\n  \u003c/a\u003e\n\t\n  [![CI](https://github.com/clucompany/include_tt/actions/workflows/CI.yml/badge.svg?event=push)](https://github.com/clucompany/include_tt/actions/workflows/CI.yml) \n\n\n\u003c/div\u003e\n\u003c/div\u003e\n\n## Usage\n\nAdd this to your Cargo.toml:\n\n```toml\n[dependencies]\ninclude_tt = \"1.1.0\"\n```\n\nand this to your source code:\n\n```rust\nuse include_tt::inject;\n```\n\n## Example\n\n```rust\nuse include_tt::inject;\nuse std::fmt::Write;\nfn main() {\n\tlet mut buf = String::new();\n\n\tinject! {\n\t\twrite!(\n\t\t\t\u0026mut buf,\n\t\t\t\"Welcome, {}. Your score is {}.\",\n\t\t\t#tt(\"examples/name.tt\"),\t\t\t// `\"Ferris\"`\n\t\t\t#tt(\"examples/\" \"score\" \".tt\")\t// `100500`\n\t\t).unwrap();\n\t}\n\n\tassert_eq!(buf, \"Welcome, Ferris. Your score is 100500.\");\n}\n```\n\n\u003ca href=\"./examples\"\u003e\n  See all\n\u003c/a\u003e\n\n## License\n\nThis project has a dual license according to (LICENSE-MIT) and (LICENSE-APACHE-2-0).\n\n\u003cdiv align=\"left\"\u003e\n  \u003ca href=\"https://github.com/denisandroid\"\u003e\n    \u003cimg align=\"left\" src=\"https://github.com/UlinProject/img/blob/main/block_220_100/uproject.png?raw=true\" alt=\"uproject\"/\u003e\n  \u003c/a\u003e\n  \u003cb\u003e\u0026nbsp;Copyright (c) 2023-2025 #UlinProject\u003c/b\u003e\n\t\n  \u003cb\u003e\u0026nbsp;(Denis Kotlyarov).\u003c/b\u003e\n  \u003c/br\u003e\u003c/br\u003e\u003c/br\u003e\n\u003c/div\u003e\n\n### Apache License\n\u003cdiv align=\"left\"\u003e\n  \u003ca href=\"./LICENSE_APACHE\"\u003e\n    \u003cimg align=\"left\" src=\"https://github.com/UlinProject/img/blob/main/block_220_100/apache2.png?raw=true\" alt=\"apache2\"/\u003e\n    \n  \u003c/a\u003e\n  \u003cb\u003e\u0026nbsp;Licensed under the Apache License, Version 2.0.\u003c/b\u003e\n  \u003c/br\u003e\u003c/br\u003e\u003c/br\u003e\u003c/br\u003e\n\u003c/div\u003e\n\n### MIT License\n\u003cdiv align=\"left\"\u003e\n  \u003ca href=\"./LICENSE_MIT\"\u003e\n    \u003cimg align=\"left\" src=\"https://github.com/UlinProject/img/blob/main/block_220_100/mit.png?raw=true\" alt=\"mit\"/\u003e\n  \u003c/a\u003e\n  \u003cb\u003e\u0026nbsp;Licensed under the MIT License.\u003c/b\u003e\n  \u003c/br\u003e\u003c/br\u003e\u003c/br\u003e\u003c/br\u003e\n\u003c/div\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclucompany%2Finclude_tt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclucompany%2Finclude_tt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclucompany%2Finclude_tt/lists"}