[-] secana@programming.dev 6 points 1 week ago

An honorable goal 😀

[-] secana@programming.dev 4 points 3 months ago

Unfortunately not. But I try to work on it a few hours every week in my spare time. I think that having an easy and free crate registry is crucial for the adaption of Rust in the commercial space. Companies don't want to share their code publicly on crates.io. My full time job is in the IT security sector. My hope is that by pushing Rust as a safe language, we can close some fundamental design flaws that languages like C/C++ introduced and make software landscape more secure.

24

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

10
submitted 4 months ago by secana@programming.dev to c/nix@programming.dev

Hi,

I want to sort my bookmarks in Firefox with home-manager into folders, but fail.

Simple example:

firefox = {
      profiles."user" = {
        bookmarks = [
          {
            name = "Nix";
            toolbar = true;
            bookmarks = [
              {
                name = "NixOS Search";
                url = "https://search.nixos.org/packages";
              }
              {
                name = "NixOS Options";
                url = "https://nixos.org/manual/nixos/unstable/options";
              }
              {
                name = "Home-Manager Options";
                url = "https://nix-community.github.io/home-manager/options.xhtml";
              }
              {
                name = "Home-Manager Options Search";
                url = "https://home-manager-options.extranix.com/";
              }
            ];
          }
        ];
      };

My assumption was that I get a folder "Nix" in the bookmarks toolbar that contains the four bookmarks. But instead the four bookmarks are added to the toolbar side-by-side without being in a folder.

How can I achieve that?

21

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

10

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

14
submitted 5 months ago by secana@programming.dev to c/nix@programming.dev

Hi! I ran into the issue that my kube config, which I manage with home-manager is world read- and writable. I hoped that there is an easy option to set file permissions with home-manager, e.g. home.file."foo".permissions = 0644 but something like this does not exist. All solutions a short web search turns up are overly complicated for something that seems to be a trivial task.

What is the easiest way to set permissions for a file with home-manager?

21

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

20

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

33

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

[-] secana@programming.dev 5 points 6 months ago

That's a real loss. Such a great person. Met him last year on conference. There aren't many people as influential in cyber security as him.

26

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

[-] secana@programming.dev 4 points 6 months ago

I released the next minor version of https://kellnr.io which support the display of crates, cached from crates.io, in the UI now. For the first iteration of that feature, they are only shown and searchable in the crate overview and a click forwards to crates.io, as not all meta information is stored in kellnr, for cached crates. That may change in the future, if someone requests it.

[-] secana@programming.dev 4 points 6 months ago

Yeah, real world duties have priority over programming rust. Unfortunately.

9

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

5
submitted 6 months ago by secana@programming.dev to c/nix@programming.dev

Hi! It's my first day with nixos. I tried to compile a rust project. To do so, I used a nix-shell with the content from here: https://nixos.wiki/wiki/Rust with the "Installation via rustup" option.

Unfortunately the compilation fails:

$ cargo check
   Compiling libc v0.2.151
   Compiling proc-macro2 v1.0.73
   Compiling serde v1.0.193
    Checking once_cell v1.19.0
   Compiling thiserror v1.0.53
error: linker `aarch64-linux-gnu-gcc` not found
  |
  = note: No such file or directory (os error 2)

error: could not compile `proc-macro2` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `serde` (build script) due to 1 previous error
error: could not compile `libc` (build script) due to 1 previous error
error: could not compile `thiserror` (build script) due to 1 previous error

I run NixOS 23.11 stable on a VM on a Macbook with M1 (arm64) CPU.

Any ideas how to fix that?

26
Zig, Rust and other languages (notes.eatonphil.com)

What do you think about the points the authors makes?

[-] secana@programming.dev 6 points 7 months ago

I started to implement a new feature for https://kellnr.io. Currently, only private crates are displayed in the UI, but the users wished for the possibility to display cached crates from crates.io, as well. Hopefully a new version will be out in the next days, with the new feature.

[-] secana@programming.dev 4 points 7 months ago

I had the same experience. If you can live with a gpl license, maybe https://slint.dev/ is an alternative. I'll wait which UI framework becomes the predominantly one, before I start using rust for gui stuff.

[-] secana@programming.dev 5 points 7 months ago

I added stream support to https://github.com/GDATASoftwareAG/vaas but unfortunately didn't find time to work on any other project, as my free time goes into plastering walls in the real world.

[-] secana@programming.dev 5 points 7 months ago

That's true. If you are a rust beginner, you find so many good posts on Reddit for simple questions just by googling. Lemmy never pops up with a good answer.

[-] secana@programming.dev 7 points 7 months ago

I'll try to post more. Maybe cross posting from here to Mastodon helps. I've the impression that the Rust community is more active there.

[-] secana@programming.dev 7 points 8 months ago

Any advantages over distrobox? Sounds very similar.

[-] secana@programming.dev 6 points 10 months ago

Thanks for correcting that. You are right, I want responsiveness not reactivity.

view more: ‹ prev next ›

secana

joined 10 months ago