{"id":23034015,"url":"https://github.com/olback/include-dir-rs","last_synced_at":"2025-04-02T22:14:49.369Z","repository":{"id":92269847,"uuid":"474511958","full_name":"olback/include-dir-rs","owner":"olback","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-27T02:17:17.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T12:31:25.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olback.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-03-27T02:04:18.000Z","updated_at":"2024-04-07T11:14:20.000Z","dependencies_parsed_at":"2023-06-08T07:00:46.233Z","dependency_job_id":null,"html_url":"https://github.com/olback/include-dir-rs","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/olback%2Finclude-dir-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olback%2Finclude-dir-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olback%2Finclude-dir-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olback%2Finclude-dir-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olback","download_url":"https://codeload.github.com/olback/include-dir-rs/tar.gz/refs/heads/master","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":[],"created_at":"2024-12-15T16:28:43.022Z","updated_at":"2025-04-02T22:14:49.344Z","avatar_url":"https://github.com/olback.png","language":"Rust","readme":"# include-dir-rs\n\n[![CircleCI](https://circleci.com/gh/olback/include-dir-rs/tree/master.svg?style=svg)](https://circleci.com/gh/olback/include-dir-rs/tree/master)\n\nbuild.rs example\n```rust\nfn main() {\n    include_dir::include_dir(\n        \"my_dir\", // Dir to include\n        \"out_file.rs\", // Output file\n        VarKind::Both, // What data should be included?\n        \"VAR_NAME\",\n        true, // Recursive?\n    )\n    .unwrap();\n}\n```\n\nAssuming the following directory structure, the build script would produce the following:\n\n```\nmy_dir\n├── file1.txt\n└── sub\n    └── file2.txt\n```\n\n```rust\nconst VAR_NAME: \u0026[(\u0026str, \u0026[u8])] = \u0026[\n    (\"my_dir/file1.txt\", include_bytes!(\"my_dir/file1.txt\")),\n    (\"my_dir/sub/file2.txt\", include_bytes!(\"my_dir/sub/file2.txt\")),\n];\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folback%2Finclude-dir-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folback%2Finclude-dir-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folback%2Finclude-dir-rs/lists"}