'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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ssrs-0.1.3.tar.gz.
File metadata
- Download URL: ssrs-0.1.3.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6aadf0ed5eaf96d822a9f4467f350dae45c911eca398ef8b69be41d8cf8489a4
|
|
| MD5 |
7b6fc7c2d1529f392e9d1d53873a4b9d
|
|
| BLAKE2b-256 |
929982f8fac6bff763a81f9802f26062c96c7da43e3445cbacdc40b0848c8fb9
|
File details
Details for the file ssrs-0.1.3-py3-none-any.whl.
File metadata
- Download URL: ssrs-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1972eace15327e81f8360ea905c035e0bc6672966434518a45993c1c56727e80
|
|
| MD5 |
9333022c7afda487b4f3aa9a7f4b0ca4
|
|
| BLAKE2b-256 |
ac1a244bc8b1d39b90db7503bbf394874ae0df7fe1699c7b297a3c57231f350e
|