Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This demo file was originally from a demo I made back on July 30. I figured out how to get a sort of 'npm run dev' kind of thing working, I really like it! This kind of quick-feedback programming is how I get things done fast, as I can easily see when things go right, or wrong. https://doc.rust-lang.org/rust-by-example/custom_types/structs.html https://doc.rust-lang.org/book/ch16-01-threads.html https://www.reddit.com/r/rust/comments/9twt89/show_rrust_cargocmd_like_npm_scripts_but_for_cargo/ (I was curious if you could do something like `cargo run dev` for this kind of hot reload script, but it didn't seem to work from what I tried. It is possible it sounds like, but I don't think I'm implementing it right. Going to use a Bash script for the meantime. I want it to work cross-platform though, so you can use this on Windows too and not have to do anything special for that. I know I could make a Batch file, but I'd rather use simple tooling with Cargo than roll my own thing for that. That's the same case with npm as well, to use the tools that are available to you! :D) https://doc.rust-lang.org/cargo/reference/config.html#alias https://pseitz.github.io/toml-to-json-online-converter/ (Neat concept, finding the similarities between TOML, JSON, and SNBT/NBT) rust-lang/cargo#9061 rust-lang/cargo#8486 (comment) (Is my alias not working because of how I defined it in the config?)
- Loading branch information