https://qiita.com/namn1125/items/8153f7c0881b7d4127ed#fnref-copilot
その他のVSCode拡張としては、使用頻度はそれほどでも無いですがCargo.toml
ファイルにてライブラリのバージョンをサジェストしてくれるcratesや、有料9でGitHubアカウントが必要ですがGitHub Copilotなどがオススメです。閑話休題。(ハンズオンには不要です!)
リナ「そういえばあなたのVSCode何か変よね。以前ペアプロしたときにファイル保存しようとしたら何故か検索が始まったし。」
筆者「Awesome Emacs Keymapの影響ですね。とある事情でEmacsのキーバインドが手から離れなくなってしまったので導入しています。」
リナ「うわぁ...」
本ハンズオンで直接使用するわけではありませんが、Rustプロジェクトは基本的にGitの使用を前提としているため、入っていない場合は入れておきましょう。必須ではないため導入は他の記事様に頼ります。
WindowsにGitをインストールする手順(2022年7月更新)
デフォルトエディタをVSCodeにする以外は基本的に全部デフォルトで大丈夫だと思います。
リナ「長すぎるわ!!!やっとHello, World?!」
筆者「中途半端な概要説明や環境構築を書いて読者を置いてけぼりにするぐらいなら、と、かなりモリモリに書きましたがめちゃくちゃ長くなってしまいましたね...」
筆者「でもここまで来れれば、山で言えば8合目ぐらいまで来たようなものです!」
では早速、Tauriプロジェクトを作成しましょう!
プロジェクトの立ち上げは公式に従うのが一番楽でしょう。
PowerShell
> cd .\\Desktop\\
> yarn create tauri-app
yarn create v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "[email protected]" with binaries:
- create-tauri-app
[#################################################################################################] 97/97
We hope to help you create something special with Tauri!
You will have a choice of one of the UI frameworks supported by the greater web tech community.
This tool should get you quickly started. See our docs at <https://tauri.app/>
If you haven't already, please take a moment to setup your system.
You may find the requirements here: <https://tauri.app/v1/guides/getting-started/prerequisites>
Press any key to continue...
? What is your app name? tauri-react-player
? What should the window title be? Tauri React Player
? What UI recipe would you like to add? create-react-app (<https://create-react-app.dev/>)
? Add "@tauri-apps/api" npm package? Yes
? Which create-react-app template would you like to use? create-react-app (Typescript)
筆者「?で始まっている行は質問になります。」