Skip to main content

'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


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)

Uploaded Source

Built Distribution

ssrs-0.1.3-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page