{"id":24093724,"url":"https://github.com/neknaj/tsrust","last_synced_at":"2026-05-04T17:35:45.877Z","repository":{"id":269892023,"uuid":"908784468","full_name":"neknaj/tsrust","owner":"neknaj","description":"Rust (とTypeScript) を使用して、ネイティブでもブラウザでも動く アプリケーションを構築するためのテンプレート","archived":false,"fork":false,"pushed_at":"2025-04-01T06:29:18.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T07:23:15.245Z","etag":null,"topics":["rust","typescript","wasm","web"],"latest_commit_sha":null,"homepage":"https://neknaj.github.io/tsrust/","language":"JavaScript","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/neknaj.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":"2024-12-27T00:52:49.000Z","updated_at":"2025-04-01T06:28:59.000Z","dependencies_parsed_at":"2025-02-27T12:00:45.391Z","dependency_job_id":"9e775f58-d007-4a0f-9a7a-8556ea2e6800","html_url":"https://github.com/neknaj/tsrust","commit_stats":null,"previous_names":["bem130/tsrust"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/neknaj/tsrust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neknaj%2Ftsrust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neknaj%2Ftsrust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neknaj%2Ftsrust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neknaj%2Ftsrust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neknaj","download_url":"https://codeload.github.com/neknaj/tsrust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neknaj%2Ftsrust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32618131,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["rust","typescript","wasm","web"],"created_at":"2025-01-10T10:34:12.270Z","updated_at":"2026-05-04T17:35:45.871Z","avatar_url":"https://github.com/neknaj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust (+TypeScript) アプリケーション テンプレート\n\n![image](https://img.shields.io/badge/-TypeScript-103040.svg?logo=typescript\u0026style=popout)\n![image](https://img.shields.io/badge/-Rust-403540.svg?logo=rust\u0026style=popout)\n\nこのプロジェクトは、Rust (とTypeScript) を使用して、ネイティブでもブラウザでも動く アプリケーションを構築するためのテンプレートです。  \n\n### 想定しているアプリケーション\n- 基本はネイティブで動くCLIアプリケーションで、それをWeb(ブラウザ)でも動かしたい  \n- 折角ブラウザを使うのだから、HTML/CSS/TS/JSを使って良い感じのGUIを付けたい  \n\nネイティブ向けのGUIライブラリを使って、ネイティブでもGUIが使えるようにすることも可能な筈です  \n\n\n## 実行方法\n### ブラウザ\n```bash\nnpm install\nnode build.js\n```\nを実行後、ローカルサーバーを建てて  \n`/dist/index.html`をブラウザで開く  \n### ネイティブ\n```bash\ncargo run\n```\nを実行する\n\n\n## 始め方\n\nこのテンプレートを使用するための手順は以下の通りです。  \n\n### 必要な環境\n\n- Node.js (\u003e=14.0.0)  \n- Rust (\u003e=1.60.0)  \n    - `wasm-pack` (Rust コードを WebAssembly にビルドするためのツール)  \n\n(Linuxの場合は、このリポジトリで$`npm run install-rust`を実行すればRustとwasm-packがインストールできます)  \n\n### 開発\n\n1. このリポジトリをクローンします  \n\n### ネイティブ\n2. buildします  \n    $`cargo build`  \n    $`cargo run`を実行すれば、ついでに実行してくれます  \n3. ファイルを編集します  \n    `/src`内のファイルを編集して、アプリの機能を作成してください  \n    編集したら`2`を再度行ってください  \n\n#### web\n2. buildします  \n    $`npm run build`を実行すれば、`/dist`に必要なファイルが作成されます  \n\n3. ローカルのサーバーで動かします  \n    `/dist`をルートにしてサーバーを起動してください  \n    $`npm run server`を実行すれば、http-serverを使ってローカルサーバーを起動できます  \n    表示されるURLをWebブラウザで開いて下さい  \n\n4. ファイルを編集します  \n    `/src`内のファイルを編集して、Webアプリの機能を作成してください  \n    編集したら`2`~`3`を再度行ってください  \n\n5. Webアプリとして公開します  \n    - Github Pages  \n        `.github\\workflows\\deploy.yml`に、Github Actionsを使って公開するための設定があります  \n        Githubにcommitすると、`gh-pages`ブランチが作られ、`/dist`の中身がその中に入ります  \n        Githubリポジトリの`Settings \u003e Pages`からGithub Pagesの設定を行ってください  \n    - その他  \n        GithubPagesと同様、`/dist`の中身をWebサーバーに配置すれば行えます  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneknaj%2Ftsrust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneknaj%2Ftsrust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneknaj%2Ftsrust/lists"}