判定メモ
組み込み・IoT を作る
この種類は、条件によって構成が変わらない。
推奨:Rust
推奨言語
Rust
メモリ安全性とC並みの性能を両立できる(作成物ごとの言語の決め方)
構成
| 言語 | Rust | |||
|---|---|---|---|---|
| 非同期フレームワーク | Embassy | |||
| テスト | cargo-nextest |
- 差替条件で既定から差し替えた行
- 自分で書く
- 自分で運用する
- マネージドに任せる
運用の内訳
自分で書く2
Embassy、cargo-nextest
作り始める
共通の準備
# 言語・ツールのバージョン固定(使う言語だけ)mise use node@lts pnpm@latestmise use go@latestmise use ruby@latestmise use python@latest uv@latest# Gitフックと依存更新pnpm add -D lefthook && pnpm exec lefthook install# renovate.json を置き、GitHubでRenovateアプリを有効化するその他の言語
# Rust(Web API)cargo new app && cd appcargo add axum serde --features serde/derivecargo add tokio --features fullcargo add sqlx --features runtime-tokio,postgres# Rust(デスクトップ)pnpm create tauri-app@latest# Kotlin(Spring Boot)curl https://start.spring.io/starter.zip \ -d language=kotlin -d type=gradle-project-kotlin \ -d dependencies=web,jooq,flyway,postgresql,actuator \ -o app.zip# C#(ASP.NET Core)dotnet new webapi -n App