# 📦 Rune* エコシステム - 公開・配布ガイド
> **crates.io公開準備完了** - 以下の手順で即座にRune*エコシステムを世界展開可能
---
## 🚀 公開準備チェックリスト
### ✅ **基本要件**
- [x] Cargo.toml メタデータ完備
- [x] README.md with examples
- [x] SBOM + Cosign署名システム
- [x] Multi-platform builds (Linux/macOS/Windows)
- [x] Container images (multi-arch)
- [x] 統合テスト & E2Eテスト
### ✅ **配布インフラ**
- [x] GitHub Actions release pipeline
- [x] 3段階チャネル (edge/beta/stable)
- [x] フェイルオーバーメカニズム
- [x] SLSA Level 3 準拠
---
## 📋 公開手順
### **Step 1: crates.io 公開**
```bash
# 1. アカウント準備(初回のみ)
cargo login <YOUR_CRATES_IO_TOKEN>
# 2. Dry-run テスト
cargo publish --dry-run
# 3. 実際の公開
cargo publish
# 確認
cargo search runeforge
```
### **Step 2: GitHub Release**
```bash
# タグ作成で自動トリガー
git tag v25.08.0
git push origin v25.08.0
# GitHub Actions が自動実行:
# - Multi-platform builds
# - SBOM生成 + Cosign署名
# - GitHub Release作成
# - Container image push
```
### **Step 3: 検証**
```bash
# インストール確認
cargo install runeforge --version 25.08.0
# 動作確認
runeforge plan -f examples/simple.yaml --seed 42
# コンテナ確認
docker run ghcr.io/rune-ecosystem/forge/runeforge:25.08 --version
```
---
## 🔐 セキュリティ & コンプライアンス
### **SBOM (Software Bill of Materials)**
```bash
# SBOM確認
curl -L https://github.com/rune-ecosystem/forge/releases/download/v25.08.0/sbom.json
# 脆弱性チェック
grype sbom:sbom.json
```
### **Cosign署名検証**
```bash
# バイナリ署名検証
cosign verify-blob \
--certificate-identity="https://github.com/rune-ecosystem/forge/.github/workflows/release.yml@refs/tags/v25.08.0" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
--signature=runeforge.sig \
runeforge
# コンテナ署名検証
cosign verify ghcr.io/rune-ecosystem/forge/runeforge:25.08 \
--certificate-identity-regexp="https://github.com/rune-ecosystem/forge" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com"
```
---
## 📊 配布統計 & モニタリング
### **crates.io**
- ダウンロード数: [crates.io/crates/runeforge](https://crates.io/crates/runeforge)
- バージョン履歴: 自動追跡
### **GitHub**
- Release assets: ダウンロード統計
- Container pulls: GHCR metrics
### **CDN (Cloudflare R2)**
- Edge cache hit率
- Global latency metrics
---
## 🌍 グローバル展開戦略
### **地域別配布**
| 🇺🇸 Americas | GitHub | Cloudflare R2 | CloudFront |
| 🇪🇺 Europe | crates.io | Codeberg | KeyCDN |
| 🇯🇵 APAC | GitHub | R2 Asia | CloudFront |
### **企業向けディストリビューション**
```bash
# オンプレミス企業向け
docker pull ghcr.io/rune-ecosystem/forge/runeforge:25.08
docker tag ghcr.io/rune-ecosystem/forge/runeforge:25.08 internal.corp/runeforge:25.08
# エアギャップ環境
curl -L https://github.com/rune-ecosystem/forge/releases/download/v25.08.0/runeforge-offline-bundle.tar.gz
```
---
## 🚨 緊急時対応
### **Critical Security Patch**
```bash
# 1. 即座にパッチ作成
git cherry-pick <security-fix-commit>
git tag v25.08.1-security
# 2. 30分以内リリース(自動)
# 3. Advisory 発行
gh api repos/rune-ecosystem/forge/security-advisories
```
### **配布インフラ障害**
```bash
# Primary失敗時の自動フェイルオーバー
if ! curl -f https://crates.io/crates/runeforge; then
echo "Falling back to R2 CDN..."
curl -L https://cdn.rune.cloud/stable/runeforge-linux-x64
fi
```
---
## 📈 ロードマップ
### **Phase 1: 基盤展開** ✅
- crates.io 公開
- 基本CI/CD
- 署名システム
### **Phase 2: エコシステム拡張** (Q4 2025)
- npm packages (`@rune/*`)
- PyPI distribution
- Homebrew formula
### **Phase 3: エンタープライズ** (Q1 2026)
- 商用サポート
- Private registries
- SLA保証
---
> **開発者へ**: `cargo publish` 実行で即座に世界中のRust開発者がアクセス可能になります!