{"id":13503191,"url":"https://github.com/yewstack/yew-trunk-minimal-template","last_synced_at":"2026-02-02T03:30:21.720Z","repository":{"id":39832013,"uuid":"297793186","full_name":"yewstack/yew-trunk-minimal-template","owner":"yewstack","description":"Template for starting a Yew project using Trunk","archived":false,"fork":false,"pushed_at":"2025-02-15T01:17:59.000Z","size":29,"stargazers_count":89,"open_issues_count":7,"forks_count":33,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-15T01:28:00.658Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"SCSS","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/yewstack.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-22T23:03:54.000Z","updated_at":"2025-02-15T01:18:03.000Z","dependencies_parsed_at":"2024-10-31T22:31:33.934Z","dependency_job_id":"1b2e3213-14b7-4aab-a50b-1c502c41b187","html_url":"https://github.com/yewstack/yew-trunk-minimal-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Fyew-trunk-minimal-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Fyew-trunk-minimal-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Fyew-trunk-minimal-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yewstack%2Fyew-trunk-minimal-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yewstack","download_url":"https://codeload.github.com/yewstack/yew-trunk-minimal-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239786211,"owners_count":19696770,"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-07-31T22:02:41.127Z","updated_at":"2026-02-02T03:30:21.356Z","avatar_url":"https://github.com/yewstack.png","language":"SCSS","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Yew Trunk Template\n\nThis is a fairly minimal template for a Yew app that's built with [Trunk].\n\n## Usage\n\nFor a more thorough explanation of Trunk and its features, please head over to the [repository][trunk].\n\n### Installation\n\nIf you don't already have it installed, it's time to install Rust: \u003chttps://www.rust-lang.org/tools/install\u003e.\nThe rest of this guide assumes a typical Rust installation which contains both `rustup` and Cargo.\n\nTo compile Rust to WASM, we need to have the `wasm32-unknown-unknown` target installed.\nIf you don't already have it, install it with the following command:\n\n```bash\nrustup target add wasm32-unknown-unknown\n```\n\nNow that we have our basics covered, it's time to install the star of the show: [Trunk].\nSimply run the following command to install it:\n\n```bash\ncargo install trunk wasm-bindgen-cli\n```\n\nThat's it, we're done!\n\n### Running\n\n```bash\ntrunk serve\n```\n\nRebuilds the app whenever a change is detected and runs a local server to host it.\n\nThere's also the `trunk watch` command which does the same thing but without hosting it.\n\n### Release\n\n```bash\ntrunk build --release\n```\n\nThis builds the app in release mode similar to `cargo build --release`.\nYou can also pass the `--release` flag to `trunk serve` if you need to get every last drop of performance.\n\nUnless overwritten, the output will be located in the `dist` directory.\n\n## Using this template\n\nThere are a few things you have to adjust when adopting this template.\n\n### Remove example code\n\nThe code in [src/main.rs](src/main.rs) specific to the example is limited to only the `view` method.\nThere is, however, a fair bit of Sass in [index.scss](index.scss) you can remove.\n\n### Update metadata\n\nUpdate the `name`, `version`, `description` and `repository` fields in the [Cargo.toml](Cargo.toml) file.\nThe [index.html](index.html) file also contains a `\u003ctitle\u003e` tag that needs updating.\n\nFinally, you should update this very `README` file to be about your app.\n\n### License\n\nThe template ships with both the Apache and MIT license.\nIf you don't want to have your app dual licensed, just remove one (or both) of the files and update the `license` field in `Cargo.toml`.\n\nThere are two empty spaces in the MIT license you need to fill out: `{{year}}` and `{{authors}}`.\n\n[trunk]: https://github.com/thedodd/trunk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyewstack%2Fyew-trunk-minimal-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyewstack%2Fyew-trunk-minimal-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyewstack%2Fyew-trunk-minimal-template/lists"}