{"id":17277749,"url":"https://github.com/taurr/rust-template-rs","last_synced_at":"2025-04-14T08:40:48.670Z","repository":{"id":36995991,"uuid":"461445850","full_name":"taurr/rust-template-rs","owner":"taurr","description":"Misc Rust templates for use with `cargo-generate`","archived":false,"fork":false,"pushed_at":"2024-05-12T11:54:56.000Z","size":51,"stargazers_count":11,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T22:12:31.454Z","etag":null,"topics":["cargo-generate","cli","crate","rust","template"],"latest_commit_sha":null,"homepage":"","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/taurr.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-02-20T09:56:16.000Z","updated_at":"2025-03-03T19:29:13.000Z","dependencies_parsed_at":"2024-05-12T12:43:09.677Z","dependency_job_id":"618e0e01-3770-4b68-9baf-46907c084d12","html_url":"https://github.com/taurr/rust-template-rs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurr%2Frust-template-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurr%2Frust-template-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurr%2Frust-template-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taurr%2Frust-template-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taurr","download_url":"https://codeload.github.com/taurr/rust-template-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248848500,"owners_count":21171388,"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":["cargo-generate","cli","crate","rust","template"],"created_at":"2024-10-15T09:09:52.611Z","updated_at":"2025-04-14T08:40:48.645Z","avatar_url":"https://github.com/taurr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust-template-rs\n\nHere are a few templates for use when creating [Rust] applications.\n\nThe templates take full advantage of `cargo-generate` subtemplates, thust the repo contains both\nproject templates and several smaller templates that are used to add functionality to an already\nexisting project.\n\n## Project templates\n\nProject templates have optional support for generating IDE scaffolding (currently only Vscode,\ncontributions for others are welcome).\n\n### Workspace\n\nSimple setup for a base workspace, ready to put your projects in.\n\n### Cli\n\nBinary with a command line (`clap`) interface.\n\nTemplate is setup to use:\n- [`clap`]\n- [`tokio`] (Optional)\n- [`tracing`]\n- [`console-subscriber`], by using `tokio` and enabling the feature [`tokio-console`] (Optional)\n- Unit tests, with optional [`tokio-test`] support\n\n### Lib\n\nLibrary crate.\n\nThe library will be setup for use with:\n- Support for `no-std`, by disabling the default feature `std`\n- [`tracing`]\n- Unit tests, with [`tokio-test`] support\n- ITests, with [`tokio-test`] support\n\n## Snippets\n\nSeveral templates are included that function as snippets that integrate into in existing project.\n\nJust try and expand the template repository and let `cargo-generate` guide you.\n\n## Tips'n'tricks\n\nIf the template is used on a regular basis, [cargo-generate] allows to setup favorite templates and default variables.\n\nTo do this, open or create the file `$CARGO_HOME/cargo-generate.toml`, insert this:\n\n```toml\n[values]\ngh_username = \"your username on github.com\"\nide = \"none|vscode\"\n\n[favorites.rust]\ngit = \"https://github.com/taurr/rust-template-rs\"\nsubfolder = \"Projects\"\n\n[favorites.snippet]\ngit = \"https://github.com/taurr/rust-template-rs\"\nsubfolder = \"Snippets\"\n```\n\nAfter this, the template can be expanded using a simple:\n\n```shell\ncargo generate rust\n```\n\nor:\n\n```shell\ncargo generate snippet\n```\n\n[Rust]:https://www.rust-lang.org\n[cargo-generate]:https://github.com/cargo-generate/cargo-generate\n[`clap`]:https://crates.io/crates/clap\n[`tokio`]:https://crates.io/crates/tokio\n[`tracing`]:https://crates.io/crates/tracing\n[`console-subscriber`]:https://crates.io/crates/console-subscriber\n[`tokio-test`]:https://crates.io/crates/tokio-test\n[`tokio-console`]:https://github.com/tokio-rs/console","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaurr%2Frust-template-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaurr%2Frust-template-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaurr%2Frust-template-rs/lists"}