{"id":17793203,"url":"https://github.com/jcbhmr/actions-toolkit-rs","last_synced_at":"2026-05-05T12:32:45.009Z","repository":{"id":206328017,"uuid":"716343307","full_name":"jcbhmr/actions-toolkit-rs","owner":"jcbhmr","description":"🦀 actions/toolkit for Rust","archived":false,"fork":false,"pushed_at":"2026-02-26T22:27:51.000Z","size":144,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-17T08:39:39.386Z","etag":null,"topics":["crate","github","github-actions","library","monorepo","rust","toolkit","utility"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"romnn/action-rs","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcbhmr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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}},"created_at":"2023-11-08T23:58:07.000Z","updated_at":"2026-02-26T22:27:55.000Z","dependencies_parsed_at":"2024-03-25T00:22:19.503Z","dependency_job_id":"e4302d93-4546-4fa1-9759-eeb1b0bae084","html_url":"https://github.com/jcbhmr/actions-toolkit-rs","commit_stats":null,"previous_names":["jcbhmr/actions-toolkit.rs","jcbhmr/toolkit.rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jcbhmr/actions-toolkit-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcbhmr%2Factions-toolkit-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcbhmr%2Factions-toolkit-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcbhmr%2Factions-toolkit-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcbhmr%2Factions-toolkit-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcbhmr","download_url":"https://codeload.github.com/jcbhmr/actions-toolkit-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcbhmr%2Factions-toolkit-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["crate","github","github-actions","library","monorepo","rust","toolkit","utility"],"created_at":"2024-10-27T11:05:14.725Z","updated_at":"2026-05-05T12:32:44.998Z","avatar_url":"https://github.com/jcbhmr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Usage\n\n### As a binary\n\n```rs\nuse actions_core::InputOptions;\nuse std::error::Error;\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn Error\u003e\u003e {\n    let name = actions_core::get_input(\"name\", Some(InputOptions {\n        required: Some(true),\n        ..Default::default(),\n    })).unwrap();\n    let message = format!(\"Hello, {}!\", name);\n    actions_core::set_output(\"message\", message);\n    Ok(())\n}\n```\n\n```yml\nruns:\n  using: 'node24'\n  main: 'main.mjs'\n```\n\n```js\nimport * as process from \"node:process\";\nimport * as childProcess from \"node:child_process\";\nimport * as path from \"node:path\";\nimport * as os from \"node:os\";\n\nconst binPath = path.join(import.meta.dirname, \"target/release/MYAPP\");\nif (process.execve) {\n    process.execve(binPath);\n}\nconst result = childProcess.spawnSync(binPath, { stdio: \"inherit\" });\nif (result.error != null) {\n    throw result.error;\n}\nif (result.signal != null) {\n    process.kill(process.pid, result.signal);\n    process.exit(128 + os.constants.signals[result.signal]);\n}\nif (result.status != null) {\n    process.exit(result.status);\n}\nthrow new TypeError(\"Expected 'error', 'signal', or 'status'\");\n```\n\n### As a Node.js addon\n\n```rs\nuse actions_core::InputOptions;\nuse napi_derive::napi;\nuse napi::bindgen_prelude::*;\nuse std::error::Error;\nuse std::result::Result;\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn Error\u003e\u003e {\n  let name = actions_core::get_input(\"name\", Some(InputOptions {\n    required: Some(true),\n    ..Default::default(),\n  })).unwrap();\n  let message = format!(\"Hello, {}!\", name);\n  actions_core::set_output(\"message\", message);\n  Ok(())\n}\n\n#[napi(module_exports)]\nfn module_exports(mut exports: Object, env: Env) -\u003e napi::Result\u003c()\u003e {\n  napi_current_env::CURRENT_ENV.sync_scope(env, || main().unwrap());\n  Ok(())\n}\n```\n\n## Development\n\nThis project is intended to mirror the official JavaScript https://github.com/actions/toolkit repository in purpose and functionality.\n\nThere are lots of `@actions/*` JavaScript packages that we need to implement or wrap in Rust:\n\n- `@actions/artifact`\n- `@actions/attest`\n- `@actions/cache`\n- `@actions/core`\n- `@actions/exec`\n- `@actions/github`\n- `@actions/glob`\n- `@actions/http-client`\n- `@actions/io`\n- `@actions/tool-cache`\n\nThere are three environments that our Rust versions of these packages should support:\n\n- Compiled as **part of** a Node.js native addon using [NAPI-RS](https://napi.rs/) and running in Node.js, Deno, or Bun in a GitHub Actions runner environment\n- Compiled as **part of** a WebAssembly module using [wasm-bindgen](https://wasm-bindgen.github.io/wasm-bindgen/) and running in Node.js, Deno, or Bun (**not** the browser) in a GitHub Actions runner environment\n- Compiled as **part of** a regular Rust binary and running in a GitHub Actions runner environment\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcbhmr%2Factions-toolkit-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcbhmr%2Factions-toolkit-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcbhmr%2Factions-toolkit-rs/lists"}