Shell Scripting in Rust

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • scriptisto

    A language-agnostic "shebang interpreter" that enables you to write scripts in compiled languages.

    To make the workflow more script-like, tools like scriptisto make your rust code file executable, no project structure needed.

  • cargo-script

    Cargo script subcommand

    You don't have to set up a project if you use cargo-script

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • rust-analyzer

    Discontinued A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer] (by rust-analyzer)

    Yeah Rust-analyzer not being able to autocomplete cargo-script files is not ideal. There is an open issue about supporting projects without a Cargo.toml file where cargo-script is mentioned.

  • rust-script

    Run Rust files and expressions as scripts without any setup or compilation step.

    Scriptisto is neat, but rust-script is probably more comfortable since it's not trying to be language-agnostic.

  • evcxr

    Cargo-script has a few features (--deps, --loop, etc) dedicated to writing one-liners instead of single-file scripts, but I 've never felt the need for that, preferring to write my throwaway code in the playground or in evcxr. Other features like --test could save me an edit cycle compared to scriptisto, but if I'm beginning to write tests I'll probably want to move on to a standard cargo layout anyway.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts