this post was submitted on 13 Jun 2023
14 points (100.0% liked)

Rust

5398 readers
53 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

I've been finding it difficult to find good tutorials on different topics within Rust, so I've had to learn what to do the hard way. I don't want this hard-won knowledge to got waste, so I am considering making tutorials based on my experience. If you guys have any requests for a specific tutorial, let me know. I would also like to mention that this would be an in-my-free-time venture, so I'll do my best, but I still have life stuff to which I need to attend. Thanks in advance.

top 12 comments
sorted by: hot top controversial new old
[–] [email protected] 4 points 1 year ago (1 children)

Text-based tutorials are also greats. I just finished the two first posts of a tutorial on Bevy (from Affan) and I really enjoyed the great explanations on game dev. But I am a beginner, so maybe it's important to know your public. Good luck! Here is the one: https://affanshahid.dev/posts/learning-game-dev-bevy-1/

[–] [email protected] 1 points 1 year ago

Thanks for the link!

[–] [email protected] 3 points 1 year ago (1 children)

Just make anything that the easiest to do that can help people, no matter how mundane it is, the point is to get started making videos. I'm just a beginner so if u got beginner tutorial I will watch it! Good luck

[–] [email protected] 2 points 1 year ago

Thanks! I appreciate your kind words.

[–] [email protected] 2 points 1 year ago (2 children)

I’d like to see more material on telemetry for web services, namely opentelemetry for some popular web frameworks like Actix-web or Axum. Reporting those metrics to DataDog or GCP. There are books like zero2prod that discuss but room for improvement for guides on how to integrate with popular cloud monitoring services.

[–] [email protected] 1 points 1 year ago

Interesting, I'll have to look into that.

[–] [email protected] 0 points 1 year ago

+1.

Would save a lot of hesitation to pick up rust for small teams that have an Open Telemetry Stack running

[–] [email protected] 2 points 1 year ago (2 children)

Yes!

One of the things that has escaped me, is how to connect diesel to a database that already exists. It is great that it can take care of creating a database and keeping it up to date, and keeps a record of all changes so you can recreate it as needed. But how does one use diesel to access a database that already got created and is in active production? A database with a structure that diesel is not allowed to alter? With pre-existing stored procedures that perform data updates?

That would be lovely!

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

I don't know if this is exactly what you're looking for but from the diesel docs, I believe you can init a connection using diesel::mysql, diesel::pg, and diesel::sqlite. I believe from there you can simply access an existing database, say one initialized in a container and connect to it. I dont think you would have to use the standard diesel sql scripts or migrations and could use any database with appropriate credentials from there. Sorry if I misinterpreted what you meant, however.

edit: The other option could be to go with the crates that only handle the collection and statements/queries of databases (ie: mysql crate or postgres crate). If you wanted to do something like crud operations you could use something like axum or actix for the routing and methods and have the link to the database level with those crate connections

[–] [email protected] 1 points 1 year ago

I don't have experience with diesel yet, but it is on my list. I'll update you if I make a tutorial like the one you described. Thanks for the suggestion! :)

load more comments
view more: next ›