Our great sponsors
-
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.
-
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.
-
Scriptisto is neat, but rust-script is probably more comfortable since it's not trying to be language-agnostic.
-
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.