{"id":51546995,"url":"https://github.com/narumincho/rusto","last_synced_at":"2026-07-09T19:01:43.831Z","repository":{"id":365105899,"uuid":"1051541360","full_name":"narumincho/rusto","owner":"narumincho","description":"数回動かすだけのRust製 ツールたち","archived":false,"fork":false,"pushed_at":"2026-07-01T12:44:35.000Z","size":428,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-01T13:20:29.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"mcfunction","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/narumincho.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-06T07:54:21.000Z","updated_at":"2026-07-01T12:44:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/narumincho/rusto","commit_stats":null,"previous_names":["narumincho/rusto"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/narumincho/rusto","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narumincho%2Frusto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narumincho%2Frusto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narumincho%2Frusto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narumincho%2Frusto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/narumincho","download_url":"https://codeload.github.com/narumincho/rusto/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/narumincho%2Frusto/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35309828,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-09T02:00:07.329Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-07-09T19:01:43.153Z","updated_at":"2026-07-09T19:01:43.797Z","avatar_url":"https://github.com/narumincho.png","language":"mcfunction","funding_links":[],"categories":[],"sub_categories":[],"readme":"## その場限りの個人的なRust スクリプト\n\n---\n\nNotion のデータベースから webフックを受け取り,\nそのページが属するデータベースに対して操作をする\n\nデータベースには, ユーザー名, ユーザーIDと更新ボタンの3つのプロパティがある\n\n- ユーザーID\n  - 空の場合は, ユーザー名を見て, 対応するユーザーIDを設定する\n  - ユーザー名が変わった場合は, ページに過去の名前のブロックを追加して,\n    ユーザー名を変更する\n- ページアイコンが未設定の場合は, ユーザーの顔スキンのアイコン画像を設定する\n\n---\n\n## Cloudflare R2 大容量ファイルアップローダー (r2_uploader)\n\n2GB 以上の大容量動画ファイルを Cloudflare R2 に安定して並行・分割アップロードするための CLI ツールです。\n\n### 動作特徴\n- **マルチパートアップロード**: 2GB のファイルをメモリに載せきれない問題を防ぐため、ファイルをチャンク（既定 15MB）に分割してアップロードします。\n- **並行アップロード**: 複数のチャンクを並行してアップロードすることで、転送速度を向上させます。\n- **進捗状況表示**: コンソールに進捗バーと推定残り時間が表示されます。\n- **クリーンアップ**: アップロード中にエラーが発生した場合、R2 側の不完全なアップロードデータを自動で破棄（Abort）し、無駄な課金が発生しないようにします。\n\n### 使用方法\n\n#### 1. 環境変数の設定 (推奨)\nアクセス資格情報を環境変数としてあらかじめ設定しておくと、コマンド入力がシンプルになります。\n\n```bash\nexport R2_ACCOUNT_ID=\"your_account_id\"\nexport R2_ACCESS_KEY_ID=\"your_access_key_id\"\nexport R2_SECRET_ACCESS_KEY=\"your_secret_access_key\"\n```\n\n#### 2. コマンドの実行\n以下のコマンドでアップロードを開始します。パフォーマンスを出すために `--release` ビルドでの実行を推奨します。\n\n```bash\ncargo run --release --bin r2_uploader -- \\\n  --bucket \u003cR2バケット名\u003e \\\n  --file-path /path/to/large_video.mp4 \\\n  --key uploads/large_video.mp4\n```\n\n#### 引数オプションによるパラメータ直接指定\n環境変数を使わずに、引数として接続情報を直接渡すこともできます。\n\n```bash\ncargo run --release --bin r2_uploader -- \\\n  --account-id \u003cACCOUNT_ID\u003e \\\n  --access-key-id \u003cACCESS_KEY\u003e \\\n  --secret-access-key \u003cSECRET_KEY\u003e \\\n  --bucket \u003cR2バケット名\u003e \\\n  --file-path /path/to/large_video.mp4 \\\n  --key uploads/large_video.mp4\n```\n\n#### チューニングオプション\n- `-c, --chunk-size-mb \u003cMB\u003e`: 分割するチャンクのサイズ (最小 5MB、デフォルト 15MB)\n- `-p, --concurrency \u003cNUM\u003e`: 同時アップロード接続数 (デフォルト 4)\n\n例（チャンクサイズを20MB、同時アップロード数を8にして実行する場合）:\n```bash\ncargo run --release --bin r2_uploader -- \\\n  --bucket my-bucket \\\n  --file-path /path/to/video.mp4 \\\n  --key folder/video.mp4 \\\n  --chunk-size-mb 20 \\\n  --concurrency 8\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarumincho%2Frusto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarumincho%2Frusto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarumincho%2Frusto/lists"}