cargo-watch

Watches over your Cargo project's source. (by passcod)

Cargo-watch Alternatives

Similar projects and alternatives to cargo-watch

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better cargo-watch alternative or higher similarity.

cargo-watch reviews and mentions

Posts with mentions or reviews of cargo-watch. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-04.
  • Cryptoflow: Building a secure and scalable system with Axum and SvelteKit - Part 0
    12 projects | dev.to | 4 Jan 2024
    I used cargo-watch here so that every time my source changes, the server will automatically restart and re-serve the updated code.
  • Use just to manage Rust project commands
    3 projects | dev.to | 31 Aug 2023
    watch-one-test test_name: # More info on cargo test: https://doc.rust-lang.org/cargo/commands/cargo-test.html # More info on cargo watch: https://github.com/watchexec/cargo-watch cargo watch -x check -x 'test -- --test-threads=1 --nocapture {{test_name}}' -c -q
  • Functional Programming 1
    3 projects | news.ycombinator.com | 16 Aug 2023
    Rust: RPDS https://docs.rs/rpds/latest/rpds/ and Im https://docs.rs/im/latest/im/

    Rust isn’t great for letting you do FP things like other languages, but it does have the best type system imho which makes it the leading functional programming language right now imho. If you’re not using too many specialized python packages then I recommend using Rust instead, even for toy demos, as you can be more confident your code works without needing to run it and wait for a crash like you would in debugging python, and the tests also run faster in rust due to the incremental compilation. Use cargo-watch and you can retest your code every time you save your work.

    https://github.com/watchexec/cargo-watch

    I usually write a make command to cargo watch and rerun each test file : code file pair independently so then you won’t rerun your tests in other modules when you change the one you work on (faster but might miss stuff if you change API contracts which touch other parts of your codebase)

  • Are there any continuous testing tools with real-time line-by-line IDE feedback for Rust?
    2 projects | /r/rust | 20 Apr 2023
    you can use cargo-watch to real time run tests on save in your attached vs code console session which is about as close to what you're asking as I think exists for rust
  • Help me love Rust - compilation time
    6 projects | /r/rust | 19 Mar 2023
    Also check out cargo-watch -- https://crates.io/crates/cargo-watch
  • Why I switched From Rust to Go on the Backend
    3 projects | /r/rust | 13 Nov 2022
    I'd go with the first, this can be achieved: - with a bash script that loops with a watch to kill the server and start it again - with entr - with cargo watch -x ... if your entire rust source is mounted - with nodemon, the easiest, but required NodeJS on the image
  • Is it possible to specify cargo plugins required for development with a project?
    2 projects | /r/learnrust | 17 May 2022
    - The [cargo-watch](https://crates.io/crates/cargo-watch) and [cargo-make](https://github.com/sagiegurari/cargo-make) cargo plugins: - install all with `cargo install cargo-watch cargo-make`
  • Rust Survey 2021 Results
    3 projects | news.ycombinator.com | 15 Feb 2022
    I have some time between contracts and I've found myself learning rust.

    Pros:

    - Sum types. I am an OO apologist, but trying to use classes in C++ is an exercise in frustration. Sum types map very well to union types and are a better fit for systems programming.

    - Unit tests built right into the language - it seems like a small thing but it's a hassle in most languages to choose a library, set it up etc.

    - The above, combined with cargo-watch [0]. With the right flags, you hit save, and your tests all run. It's a god-send.

    - Ecosystem is pretty big. I can find most things I need.

    - Discord channel is nice. I was put off a bit by the Rust Evangelism Strikeforce back in the day, but so far everyone is pretty chill.

    - Options & Results in the standard library. All languages should have this

    Cons:

    - I find it hard to transfer knowledge of C to rust, because they use different terminology.

    - Docs can be confusing to read because every method on collections like `map` or `filter` returns its own Trait. People have explained why this is to me a couple of times but I still haven't gotten it through my head.

    - You still have to think about memory and pointers. Not always a bad thing, but it is an extra dimension when solving a problem.

    Overall I'm powering through. I'm hoping to get to a point where Rust is an obvious choice for anything that involves finer control of memory.

    [0] https://github.com/watchexec/cargo-watch

  • My Ideal Rust Workflow
    3 projects | news.ycombinator.com | 27 Oct 2021
  • Rust's Most Unrecognized Contributor
    4 projects | news.ycombinator.com | 3 May 2021
    It caches things between builds, and if you use dev builds (the default) it doesn't take as long as production. For ergonomics you can install cargo-watch (https://crates.io/crates/cargo-watch) which helps a bit.

    An important thing though, if you aren't doing this already, is to not wait for a full build to know if your types check out. You can use cargo-check if you prefer (https://doc.rust-lang.org/cargo/commands/cargo-check.html), but really I recommend using an IDE with responsive feedback if at all possible. rust-analyzer is one of the best, and should be supported even if you're on Vim or something.

    Using Rust without snappy editor hints is fairly miserable because of how interactive the error feedback loop tends to be. If you don't rely on a full build for errors - just for actual testing - I find the build times to be perfectly fine (at least in the smallish projects I've done).

  • A note from our sponsor - WorkOS
    workos.com | 28 Mar 2024
    The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning. Learn more →

Stats

Basic cargo-watch repo stats
22
2,586
6.7
3 months ago
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com