Skip to content

brunofauth/ssrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!");
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published