is2
cargo-watch
is2 | cargo-watch | |
---|---|---|
2 | 25 | |
7 | 2,790 | |
- | 0.8% | |
2.2 | 7.2 | |
5 months ago | 11 days ago | |
C++ | Rust | |
Apache License 2.0 | Creative Commons Zero v1.0 Universal |
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.
is2
-
Show HN: Up to 100x Faster FastAPI with simdjson and io_uring on Linux 5.19
I used the rapidjson streams with my little embedded REST HTTP(s) server library: https://github.com/Edgio/is2/
-
Rust is a hard way to make a web API
https://github.com/verizondigital/is2
cargo-watch
-
Rewriting Rust
Yup. Every user facing case mentioned has a corresponding flag. The non-user facing stuff, like being cross platform, is common sense.
https://crates.io/crates/cargo-watch/8.5.2
-
Godot Rust gdext: GDExtension Rust Game Dev Bindings
GDExtension for Godot 4.2 supports hot reloading out of the box. To speed up your coding feedback cycle, use cargo watch to recompile your Rust code automatically when you save a Rust source file. Install cargo watch (if you need to):
-
Cryptoflow: Building a secure and scalable system with Axum and SvelteKit - Part 0
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
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
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?
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
-
Why does the "crate" nomenclature include both "binary" and "library"?
Note that cargo, by virtue of being a package manager for a programming language, is primarily going to be dealing with library packages. That's not because it can't manage executables (see cargo-watch for a particularly useful example), it's just that it's less common.
-
Help me love Rust - compilation time
Also check out cargo-watch -- https://crates.io/crates/cargo-watch
-
cargo-watch hangs on reload
Unless there's a new issue, I think this is what was here: https://github.com/watchexec/cargo-watch/issues/249
- Cargo Watch 8.3.0
What are some alternatives?
quantizr - Open-source CMS, Document Collaboration, Microblogging, and Publishing with AI Chatbot and AI Coding Agent supporting most Cloud AI providers
cargo-check
json-buffet
cargo-multi - Extends cargo to execute the given command on multiple crates - upstream is at
json_benchmark - Python JSON benchmarking and "correctness".
cargo-script - Cargo script subcommand
jelly - User authentication/sessions/etc for Actix-Web. More of a sample project than a crate, but probably useful to some people.
cargo-count - a cargo subcommand for counting lines of code in Rust projects
jelly-actix-web-starter - A starter template for actix-web projects that feels very Django-esque. Avoid the boring stuff and move faster.
Cargo - The Rust package manager
data-analysis
cargo-outdated - A cargo subcommand for displaying when Rust dependencies are out of date