{"id":16795116,"url":"https://github.com/mehcode/init-rs","last_synced_at":"2025-07-06T08:36:57.840Z","repository":{"id":41148629,"uuid":"81924764","full_name":"mehcode/init-rs","owner":"mehcode","description":"Mark a function to run before main.","archived":false,"fork":false,"pushed_at":"2017-02-15T08:48:34.000Z","size":14,"stargazers_count":11,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T20:43:06.141Z","etag":null,"topics":["init","rust"],"latest_commit_sha":null,"homepage":null,"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/mehcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-14T08:49:57.000Z","updated_at":"2024-10-09T22:21:09.000Z","dependencies_parsed_at":"2022-09-09T08:02:11.114Z","dependency_job_id":null,"html_url":"https://github.com/mehcode/init-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/mehcode%2Finit-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehcode%2Finit-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehcode%2Finit-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mehcode%2Finit-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mehcode","download_url":"https://codeload.github.com/mehcode/init-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247914535,"owners_count":21017338,"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":["init","rust"],"created_at":"2024-10-13T09:15:27.138Z","updated_at":"2025-04-11T00:02:37.504Z","avatar_url":"https://github.com/mehcode.png","language":"Rust","readme":"# init\n![Rust](https://img.shields.io/badge/rust-nightly-red.svg)\n[![Crates.io](https://img.shields.io/crates/d/init.svg)](https://crates.io/crates/init)\n[![Docs.rs](https://docs.rs/init/badge.svg)](https://docs.rs/init)\n\u003e Mark a function to run before main.\n\n## Install\n\n```toml\n[dependencies]\ninit = \"0.2\"\n\n[build-dependencies]\ninit = \"0.2\"\n```\n\n## Usage\n\n`src/main.rs`\n```rust\n#![feature(proc_macro)]\n\nextern crate init;\nuse init::init;\n\n#[init]\nfn init() {\n    // [...]\n}\n```\n\n`build.rs`\n```rust\nextern crate init;\n\nfn main() {\n  init::build();\n}\n```\n\n## License\n\nInit is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).\n\nSee LICENSE-APACHE and LICENSE-MIT for details.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehcode%2Finit-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmehcode%2Finit-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehcode%2Finit-rs/lists"}