判定メモ

開発者ツール・ライブラリ を作る

この種類は、条件によって構成が変わらない。


推奨:Rust

推奨言語

Rust

近年の高速な開発ツールの主流で、WebAssemblyやネイティブ拡張として他言語に組み込める(作成物ごとの言語の決め方)

構成

言語Rust
WebAssemblywasm-bindgen+wasm-pack
Node.jsから呼ぶnapi-rs
Pythonから呼ぶPyO3+maturin
テストcargo-nextest
ベンチマークcriterion
配布cargo-dist
  • 差替条件で既定から差し替えた行
  • 自分で書く
  • 自分で運用する
  • マネージドに任せる

運用の内訳

自分で書く8

wasm-bindgen、wasm-pack、napi-rs、PyO3、maturin、cargo-nextest、criterion、cargo-dist

作り始める

共通の準備

# 言語・ツールのバージョン固定(使う言語だけ)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

次に読む

作るもの
構成図