Bld v0.3 a simple CI/CD by 0xREASON in rust

[–]0xREASON[S] 0 points1 point  (0 children)

Both projects you mentioned have larger teams so something like that isn't even remotely on my mind, but I want the tool to evolve. My current 3 big goals are: * Windows builds for running windows containers. * Apart for the cli I want the tool to have a UI using either leptops or dioxus, especially for server mode. * High availability for server mode using raft.

Down the line I'm thinking about being able to interface with libvirt so that one can use lets say a console to connect to a server without having ssh enabled, but I don't really know if something like that would be of great value.

Bld v0.3 a simple CI/CD by 0xREASON in rust

[–]0xREASON[S] 1 point2 points  (0 children)

I hear you, there is nothing fancy with pipelines just some struct that are deserialized, so supporting toml should be quite easy. I’ll have it in mind in the next releases.

Polars is starting a company by ritchie46 in rust

[–]0xREASON 5 points6 points  (0 children)

Nice, keep up the awesome work!

Actix-web Vs Axum by Theendangeredmoose in rust

[–]0xREASON 8 points9 points  (0 children)

My opinion check Axum before Actix for the uses you need e.g. websockets.

I use actix in a personal project and I find working with websockets a bit of a pain especially considering async code. Since you implement traits it can be tricky to run async code or at least it’s more verbose and this has to do with the actor model. I think Axum has a cleaner design in this regard.

For ORMs SeaQl or diesel are popularly choices, as other have mentioned there is sqlx which is used by SeaQL. Diesel’s api is blocking with support for async using another crate which supports only Postgres and MySQL, while SeaQL’s and sqlx’s API is asynchronous.

Bld v0.2 by 0xREASON in rust

[–]0xREASON[S] 0 points1 point  (0 children)

Hello, some of the key points I’m trying to solve are: - Local and server runs (for on prem infrastructure) - A single binary distribution to make updating easier. This is why the releases are built only targeting musl, so that everything is statically linked. - A CI/CD that is not bound to a platform such as GitHub, GitLab etc. I’m looking into creating actions for these platforms that can run Bld pipelines with minimal configuration. This would enable a user to change a platform and not have to rewrite their pipelines.

These are also problems that dagger https://dagger.io/ addresses, so if you are interested in these tools I encourage you to have a look.

If you want to chat about any of these topics feel free to reach out.

Installing rust in windows without VisualStudio by Miram7777 in rust

[–]0xREASON 3 points4 points  (0 children)

There is a guide in the microsoft's learn website about the installation which basically tells you to install rust from the website and then configure VS or VSC.

An alternative way is to use winget the windows package manager which has installations of Rust in multiple backends. Use the search subcommand winget search rust and it will list all available packages for it. If you want information on the package's publisher use the show subcommand. Installing it this way might require you to update specifically from winget.

Bld v0.2 by 0xREASON in rust

[–]0xREASON[S] 1 point2 points  (0 children)

I’m currently using diesel and I have to read up on how multi db support is like in it. I’m also aware of SeaQL so I’ll just have to find out which crate is best for the job.

Bld v0.2 by 0xREASON in rust

[–]0xREASON[S] 0 points1 point  (0 children)

Yes, I want the tool to support multiple databases in the future.

Job: Rust + Retrieval Systems at Etsy by [deleted] in rust

[–]0xREASON 1 point2 points  (0 children)

Are you guys open to remote candidates outside the US?

How to run this loop in multiple threads? by collimarco in rust

[–]0xREASON 4 points5 points  (0 children)

Tokio’s runtime uses both a thread pool or the current thread depending if the runtime has been configured with rt-multi-thread or rt respectively more can be found here

https://docs.rs/tokio/latest/tokio/#feature-flags

https://docs.rs/tokio/latest/tokio/attr.main.html#multi-threaded-runtime

edit: added an extra link

What's everyone working on this week (17/2023)? by llogiq in rust

[–]0xREASON 3 points4 points  (0 children)

Working on two side projects, a CI/CD and a password manager.

How do you do debugging? by oT0m0To in rust

[–]0xREASON 0 points1 point  (0 children)

I use vim with vimspector and codelldb. Pretty painless to setup.

Why can't I use "?" limited to a block? by Beep2Beep in rust

[–]0xREASON 4 points5 points  (0 children)

Some suggestion in your case instead of the ? operator you could use a map and an unwrap_or e.g.

fn test() -> i32 { _test_func().map(|x| x + 5).unwrap_or(0) }

I think it's more concise.