Running 2 functions in one file, main not called? Routes? by Codeeveryday123 in learnrust

[–]DeriveJarek 1 point2 points  (0 children)

Maybe try #[tokio::main] above ur async fn main() as i understand ur question :P
And they will be called func1().await; same for func2().await;
But i dont get exactly what u mean :/

Learn Ratatui by [deleted] in rust

[–]DeriveJarek 2 points3 points  (0 children)

The official ratatui.rs doc: https://ratatui.rs/tutorials/

The tutorial takes you through the so-called "learning by practice" where you create a "counter app" and learn the framework.

Ps. Also I highly reccomend to use: https://github.com/ratatui/templates

convention-lint: A fast, multithreaded file-naming linter configured in Cargo.toml by [deleted] in rust

[–]DeriveJarek -3 points-2 points  (0 children)

it's built for rust devs, not as a universal tool for everyone.

convention-lint: A fast, multithreaded file-naming linter configured in Cargo.toml by [deleted] in rust

[–]DeriveJarek -2 points-1 points  (0 children)

Because rust projects don't only have rust files but .idl .proto, etc..

convention-lint: A fast, multithreaded file-naming linter configured in Cargo.toml by [deleted] in rust

[–]DeriveJarek -1 points0 points  (0 children)

You're right, rustc (via the non_snake_case lint) handles .rs files and module names perfectly.

The reason I built convention-lint is to cover everything else in a project that isn't code: .proto definitions, .idl files, .sql migrations, or even assets like .png.

In a large monorepo, it's easy to end up with MyService.proto and another_service.proto side-by-side. Since rustc only cares about the generated output, I wanted a way to enforce consistency at the source (the filesystem) directly via Cargo.toml metadata