{"id":13477726,"url":"https://github.com/fornwall/rust-script","last_synced_at":"2025-05-13T19:02:22.441Z","repository":{"id":40257844,"uuid":"306970690","full_name":"fornwall/rust-script","owner":"fornwall","description":"Run Rust files and expressions as scripts without any setup or compilation step.","archived":false,"fork":false,"pushed_at":"2025-02-27T14:27:13.000Z","size":729,"stargazers_count":1424,"open_issues_count":32,"forks_count":46,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-05-12T05:49:09.628Z","etag":null,"topics":["cargo","rust","script"],"latest_commit_sha":null,"homepage":"https://rust-script.org","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fornwall.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-10-24T21:00:13.000Z","updated_at":"2025-05-12T05:30:27.000Z","dependencies_parsed_at":"2023-09-26T15:51:25.327Z","dependency_job_id":"4f3fa383-a157-436f-b430-42874cbf4008","html_url":"https://github.com/fornwall/rust-script","commit_stats":{"total_commits":491,"total_committers":19,"mean_commits":"25.842105263157894","dds":0.384928716904277,"last_synced_commit":"578dd12c69ac00e69a05535e3be31e48a34823d4"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fornwall%2Frust-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fornwall%2Frust-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fornwall%2Frust-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fornwall%2Frust-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fornwall","download_url":"https://codeload.github.com/fornwall/rust-script/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253685180,"owners_count":21947303,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cargo","rust","script"],"created_at":"2024-07-31T16:01:46.737Z","updated_at":"2025-05-13T19:02:22.378Z","avatar_url":"https://github.com/fornwall.png","language":"Rust","readme":"\n[![CI](https://github.com/fornwall/rust-script/workflows/CI/badge.svg)](https://github.com/fornwall/rust-script/actions?query=workflow%3ACI)\n[![Crates.io](https://img.shields.io/crates/v/rust-script.svg)](https://crates.io/crates/rust-script)\n[![MSRV](https://img.shields.io/badge/rustc-1.74.0+-ab6000.svg)](https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html)\n\n# rust-script\nRun Rust script files without any setup or explicit compilation step, with seamless use of crates specified as dependencies inside the scripts.\n\n```sh\n$ cargo install rust-script\n[...]\n\n$ cat script.rs\n#!/usr/bin/env rust-script\n//! Dependencies can be specified in the script file itself as follows:\n//!\n//! ```cargo\n//! [dependencies]\n//! rand = \"0.8.0\"\n//! ```\n\nuse rand::prelude::*;\n\nfn main() {\n    let x: u64 = random();\n    println!(\"A random number: {}\", x);\n}\n\n$ ./script.rs\nA random number: 9240261453149857564\n```\n\nRust version 1.74 or newer required.\n\nSee the [documentation at rust-script.org](https://rust-script.org).\n\n## Related projects\n- [cargo-script](https://github.com/DanielKeep/cargo-script) - the unmaintained project that `rust-script` was forked from.\n- [cargo-eval](https://github.com/reitermarkus/cargo-eval/) - maintained fork of `cargo-script`.\n- [cargo-play](https://github.com/fanzeyi/cargo-play) - local Rust playground.\n- [runner](https://github.com/stevedonovan/runner/) - tool for running Rust snippets.\n- [scriptisto](https://github.com/igor-petruk/scriptisto) - language-agnostic \"shebang interpreter\" that enables you to write scripts in compiled languages.\n- [official cargo-script RFC](https://github.com/rust-lang/cargo/issues/12207) - in progress integration into cargo\n\n## License\n`rust-script` is primarily distributed under the terms of both the [MIT license](LICENSE-MIT) and the [Apache License (Version 2.0)](LICENSE-APACHE).\n","funding_links":[],"categories":["Rust","rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffornwall%2Frust-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffornwall%2Frust-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffornwall%2Frust-script/lists"}