| Crates.io | rs-script |
| lib.rs | rs-script |
| version | 0.3.2 |
| created_at | 2025-04-09 11:45:49.357612+00 |
| updated_at | 2025-05-28 01:30:05.828325+00 |
| description | A tool to create and edit single-file Rust scripts |
| homepage | |
| repository | https://github.com/Robert-M-Lucas/rss2 |
| max_upload_size | |
| id | 1626600 |
| size | 100,181 |
Stores all the files and the built binary of a Rust project in a single, runnable file allowing similar usage to Python scripts.
cargo install rs-script
A large number of commands will not work if you don't have an editor configured in the config file!
rss config -w/rss conf -wYou will need to manually edit this file if you don't have the default editor
rss config/rss confThis uses the editor configured in the config file (defaults to vscode).
Example nvim configuration (Linux):
"rust_project_edit_command_blocking": {
"command": "nvim",
"args": [
"$dir$"
],
"inherit_shell": true
}
Example RustRover configuration (Linux):
"rust_project_edit_command_blocking": {
"command": "rust-rover",
"args": [
"$dir$"
],
"inherit_shell": false
}
rss config -r/rss conf -rrss edit myfile.rss [OR] rss e myfile.rss
A cr-origin.sh/cr-origin.cmd script will automatically be created allowing you to cargo run in the original directory for ease of development.
rss run myfile.rss [OR] rss r myfile.rss
The platform a binary was compiled for is automatically saved. Should this not match the current platform, the file will be automatically recompiled.
Add -v after rss to get verbose information.
rss new myfile.rss/rss n myfile.rssrss strip myfile.rss/rss s myfile.rssrss recompile myfile.rss/rss rcmp myfile.rssrss extract myfile.rss/rss ext myfile.rssrss pack project_dir/rss p project_dirrss stats myfile.rss/rss stat myfile.rssrss tree myfile.rss/rss t myfile.rssrss cat myfile.rss/rss c myfile.rssrss readmerss helpOn Linux, rss files are automatically made executable using the #!/usr/bin/env rss-run
shebang. With rss-run in your path, you can run rss files like any executable:
./myfile.rss