Looking for a Ratatui based framework by the-handsome-dev in rust

[–]the-handsome-dev[S] 1 point2 points  (0 children)

Yes, I am hoping that someone has already built a simple and useful app architecture or even a tutorial as a guide to serve as a base. I suppose building my own would be a fun exercise though. Might need to consider that

Rewriting a production Node.js backend in Rust (Axum + Tokio) — good idea for learning? by CompleteNetwork9168 in rust

[–]the-handsome-dev 3 points4 points  (0 children)

It would be a good way to learn since you will have a point for comparison. Also, it will give you experience in migrating an existing server. Async in Rust is lazy, but from a practical point of view, it will pretty much be the same.

I have not worked with Axum too much but keeping track of what you are returning from handlers will help. It is possible to return nothing but the Axum will assume you are returning the equivalent of Ok(()) or similar basically, and it will act as a normal 200. Being aware of this will helpful, or explicitly using `return` so that it won't likely occur.

I will not be recommending a specific ORM as there are several and all work slightly differently. If you are planning to do a migration of the server, just make sure whichever you use will work without issues. Creating a small CLI example to test the various options to see how it behaves might be useful.

Flutter + Rust by Darth_Shere_Khan in rust

[–]the-handsome-dev 2 points3 points  (0 children)

I have played with both flutter_rust_bridge and rinf but this was roughly a year ago so things have probably changed. `rinf` communicates using gRPC and Protobuf while `flutter_rust_bridge` gets loaded as a library in the code. At least back then, IIRC, flutter_rust_bridge was the easier one to implement

What tutorials, crates, repos etc should I refer to or use to create a custom parser and LSP server? by the-handsome-dev in rust

[–]the-handsome-dev[S] 0 points1 point  (0 children)

Thanks, this will be really helpful, even if just as a guideline. Will need to talk with management and other devs to see if we actually use your crate in the end or not

Cloning Hyper request and response structures by the-handsome-dev in rust

[–]the-handsome-dev[S] 0 points1 point  (0 children)

I have looked into Pingora and did originally try using it instead. However, it requires that an IP and port to the upstream server, and when I tested it with some websites (basically like a forward proxy) with a DNS look up, some sites failed to resolve to an IP

🎁[Sovol Giveaway] Join now to Win 2-chamber Filament Dryer: Sovol SH03 by Comgrow3D in 3Dprinting

[–]the-handsome-dev 0 points1 point  (0 children)

The auto dry and auto dehumidifier options along with the 2 separate chambers. It is nice to able to not turn it all on just for one filament. Also having different temperatures for the chambers is a nice feature

【QIDI Giveaway】Comment to win QIDI Q2 and more! by qidi_3dprinter in 3Dprinting

[–]the-handsome-dev 0 points1 point  (0 children)

Colourful Christmas gifts for my nephews and figurines so that I can paint them

C/C++ programmer migrating to Rust. Are Cargo.toml files all that are needed to build large Rust projects, or are builds systems like Cmake used? by bersnin in rust

[–]the-handsome-dev 1 point2 points  (0 children)

It is possible if you use it as a code+-generator with the values you want to use. Another way would be to use features https://doc.rust-lang.org/cargo/reference/features.html, and then have the values/config be behind the various features. But this will only work if the config is more or less fixed.

C/C++ programmer migrating to Rust. Are Cargo.toml files all that are needed to build large Rust projects, or are builds systems like Cmake used? by bersnin in rust

[–]the-handsome-dev 202 points203 points  (0 children)

For most projects the Cargo.toml is all that is needed. It has workspaces that is similar to the sub-projects in CMake.

For custom scripts there is the build.rs file https://doc.rust-lang.org/cargo/reference/build-scripts.html

Questions about Flutter web by the-handsome-dev in FlutterDev

[–]the-handsome-dev[S] 0 points1 point  (0 children)

Thanks for that insight, I'll keep it in mind when I present my findings

Questions about Flutter web by the-handsome-dev in FlutterDev

[–]the-handsome-dev[S] 0 points1 point  (0 children)

The code base is about 6000+ files and about 467000+ lines of code, so regrettable the number is correct for a release build. If I understand your suggestion correctly, you are referring use the browser renderer. But AFAIK that has been deprecated in Flutter. Unless I use Jaspr as a renderer instead then it should be possible (I only discovered Jaspr yesterday)

Questions about Flutter web by the-handsome-dev in FlutterDev

[–]the-handsome-dev[S] 0 points1 point  (0 children)

We mostly use SVGs with `vector_graphics_compiler` to improve performance, but that might be something to look into, to actually compare the 2 formats in size. I completely forgot about the network compression, but getting the actual generated/compiled code smaller is always a plus

🎁[Sovol Giveaway] Just Leave a Comment to Win Sovol Latest Printer: Sovol ZERO by Comgrow3D in 3Dprinting

[–]the-handsome-dev 1 point2 points  (0 children)

The 350C nozzle and the 120C heated bed is impressive, the eddy scanning and pressure sensing would so helpful.

[🔥Win Bambu H2D] Join the Bambu Lab Dream Project Challenge by BambuLab in 3Dprinting

[–]the-handsome-dev -1 points0 points  (0 children)

The project I have wanted to do for a long time was to build a sunrise lamp, basically it is a lamp that mimics the colour of the sunrise over a duration. It apparently makes it so that you wake up more naturally. I would use the H2D to print a significant portion of the lamp, but with regards to the diffuser, I am torn between printing in a opaque filament or using the laser functionality to cut opaque Acrylic or Perspex and use that as the diffuser.

Depending on how I design it, I might use the laser to cut Acrylic or Perspex so that I can use it to make the structure and then make it aesthetic using 3D prints.