cargo-script
cargo-edit
Our great sponsors
cargo-script | cargo-edit | |
---|---|---|
10 | 45 | |
705 | 2,988 | |
- | - | |
0.0 | 7.4 | |
about 3 years ago | 3 months ago | |
Rust | Rust | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cargo-script
-
Selling cheap rust cheats and scrips
Accept BTC, all credit card * $1 .unwrap() - wallhack through Err * $2 .ok() - invisibility cheat for unused Result warning * $5 .unwrap_unchecked() - advanced wallhack, never fall out of map from panic For script console, just $10.
- Why is Rust always advertised as system programming not general purpose programming?
-
Quick Tip: You don't need to create a new cargo project if you want to test if something works in rust
You can also use cargo script. After installing it you can just do
-
Announcement: xshell 0.2.0
I think there are some projects in this area, eg, https://github.com/DanielKeep/cargo-script. For my personal scripts, I have a single Cargo.toml for a busy-box style multiplexed binary: https://github.com/matklad/config/blob/f0259ca8a3755f2e62a3bf472c2514fd6cb891ff/tool/src/main.rs#L16.
-
How do you share your code ?
O seems that this does already exist: https://github.com/DanielKeep/cargo-script
-
Shell Scripting in Rust
You don't have to set up a project if you use cargo-script
-
Is there any way to compile and run Rust from an input stream?
Take a look at cargo script. That should/could do what you want
- Run Rust source code like a script (Linux)
-
Rust for simple tasks
when I first started using rust, I knew python a lot better so I would write scripts with python. at this point though, I write a lot more rust than python these days, so I'll write pretty much everything with rust. cargo-script is a useful tool for this, as well as the self-compiling script: https://neosmart.net/blog/2020/self-compiling-rust-code/
-
Correct way to do "micro projects"?
Another option is cargo-script, which lets you run self contained rust files.
cargo-edit
-
Hey Rustaceans! Got a question? Ask here (23/2023)!
“cargo add” from https://github.com/killercup/cargo-edit has that behavior, but not the built in one that was added to cargo
-
Is Rust's cargo-edit crate still relevant?
I have also noticed that the last commit of cargo-edit crate's GitHub repo (https://github.com/killercup/cargo-edit) was two days ago (pretty recent.) So it is probably relevant for a lot of people.
-
What are some useful tools for Rust?
cargo-upgrade from cargo-edit (somewhat more intentional than builtin update)
-
How to list upgradable crates programmatically
I've also tried cargo-upgrade from cargo-edit like so:
-
Hey Rustaceans! Got a question? Ask here (9/2023)!
You can also see how other crates do it. For example, cargo-edit is just like that - a single package with a library with a couple of small cli wrappers around it. You can compare their Cargo.toml to yours, maybe there is something different about them.
-
`toml` vs `toml_edit` (ie `toml` 0.6 is out)
Just to check, are you aware of cargo-edit's cargo-set-version or cargo-release?
-
Rust 1.66
Speaking of cargo remove, see also cargo-edit [0] from which adding and removing originally came, as well as cargo-binstall [1] which installs binaries rather than compiling from source every time. The binaries are updatable with cargo-update [2].
The latter two can replace a package manager for Rust related utilities, as I often find that those in OS package repositories are often not as up to date as directly from cargo.
[0] https://github.com/killercup/cargo-edit
[1] https://github.com/cargo-bins/cargo-binstall
[2] https://github.com/nabijaczleweli/cargo-update
-
TIL about cargo add
For context, it was/is part of cargo-edit crate which provides other nice functionalities as well. Hope all gets integrated in time.
-
how can I use same crate but with different features?
https://github.com/killercup/cargo-edit can use the F option
- `cargo-set-version` support for workspace inheritance released in cargo-edit 0.11.4!
What are some alternatives?
rust-script - Run Rust files and expressions as scripts without any setup or compilation step.
nexus-repository-cargo - Nexus Repository Cargo Format
cargo-do - allows you to run multiple cargo commands in a row
cargo-outdated - A cargo subcommand for displaying when Rust dependencies are out of date
cargo-watch - Watches over your Cargo project's source.
Cargo - The Rust package manager
evcxr
cargo-dot - Generate graphs of a Cargo project's dependencies
cargo-graph