'Simple Scripting for Rust' enables you to run rust source files as scripts, from the command line, by prefixing them with a shebang line. It's useful because sometimes you just want to write a quick-and-dirty 'script', without having to creaate a new crate/package.
Project description
Description
This program enables you to run rust source files as scripts, from the command line, by prefixing them with a shebang line. It's useful because sometimes you just want to write a quick-and-dirty "script", without having to creaate a new crate/package.
Installation
With pipx
pipx install ssrs
With makepkg
git clone "https://github.com/brunofauth/ssrs"
cd ssrs
makepkg -cris
Usage
From the Command Line
ssrs-cli [ssrs-options] -- <script-file> [script-options]
From Script Files
#! /usr/bin/env ssrs
// your rust code here
fn main() {
println!("Hello World!");
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ssrs-0.1.3.tar.gz
(2.5 kB
view hashes)
Built Distribution
ssrs-0.1.3-py3-none-any.whl
(3.3 kB
view hashes)