1
4
submitted 1 week ago by Zenlix@lemm.ee to c/rust@lemmy.ml

I am searching for a way to get the styles and colors of the current kde/qt theme used. Any ideas how I can do that?

2
19
submitted 1 week ago* (last edited 1 week ago) by thevoidzero@lemmy.world to c/rust@lemmy.ml

Hi all,

I don't know where would be the best place to post this, but I wanted some people's feedback on a DSL that I wrote for network analysis.

I am using nom for writing the lexer and parser, then using abi_stable crate for data types so that you can write plugins to the language and load them dynamically as well.

This language is made to work by loading a tree graph (network) and then call a bunch of node or network functions that work on it. There are different ways you can run functions, and use node/network attributes.

I am mostly self-taught, so it took a lot of years to get to a level where I could write something like this. I am learning a lot and having a lot of fun in the process, but I want this to develop into something that can have a practical usefulness to people. Since I am in the field of hydrology, I am making it with river networks in the mind.

To try it out, you can either download the executables for windows from the releases page, or you can compile it using cargo (for all OS; except android where GUI won't work, CLI will work in termux). I have some basic examples in the Learn By Examples section of the User Guide that you can follow.

Please let me know if you can't compile/use it as well. I have tried to make sure it has required instructions, but I could have missed something.

3
35
submitted 2 weeks ago by Occhioverde@feddit.it to c/rust@lemmy.ml
4
6
submitted 3 weeks ago by greywolf0x1@lemmy.ml to c/rust@lemmy.ml
5
19
submitted 1 month ago by ccbrown@programming.dev to c/rust@lemmy.ml
6
5
The new BLAKE3 hazmat API (www.iroh.computer)
submitted 1 month ago by SufferingSteve@feddit.nu to c/rust@lemmy.ml
7
3
submitted 1 month ago* (last edited 1 month ago) by BitsandBytes@lemmy.world to c/rust@lemmy.ml

cross-posted from: https://lemmy.world/post/28964135

Hi there Rustians! A few months ago I posted about my hobby project. Just wanted to give an update.

Axium is a template for an API backend.

In the last few months I have added:

  • HTTP-cookie authentication (got it to work with a javascript site),
  • Password resetting,
  • User registration,
  • Example routes for interacting with S3 storage
  • Lots of input validation,
  • Caching,
  • Mailing (for the password reset and user registration).

I think that it is almost ready to be used as a backend for my website. Almost everything is marked off my wishlist, just need a few helper to help me check the security of the authentication and registration functions.

GitHub: https://github.com/Riktastic/Axium

8
25
submitted 2 months ago by Zenlix@lemm.ee to c/rust@lemmy.ml
9
25
Typst is hiring (typst.app)
submitted 2 months ago by Zenlix@lemm.ee to c/rust@lemmy.ml

Typst, a very nice Latex alternative, written in rust has published job listings.

10
5
RUSTAsia 2025 (March 28, 2025) (www.rustasiaconf.com)
submitted 2 months ago by tomtau@aussie.zone to c/rust@lemmy.ml
11
19
submitted 2 months ago by TypicalHog@lemm.ee to c/rust@lemmy.ml
12
14
submitted 2 months ago by TypicalHog@lemm.ee to c/rust@lemmy.ml
13
14
New to Rust (lemmy.ml)
submitted 3 months ago by golden_zealot@lemmy.ml to c/rust@lemmy.ml

Hey fellas, I am new to Rust! I have been following the rustlings tutorial + the rust online book, and I have just purchased the book "Rust for Rustaceans: Idiomatic Programming For Experienced Developers".

While I am NOT an experienced developer, I have worked in languages such as Java, Python, and a little bit of C before, and my schooling was in information technology for computer systems infrastructure so most of the ideas are not too foreign to me (except for ownership in rust, which from what I have been reading is super cool, though it throws a wrench into how I might usually write something while opening some other doors).

I am interested in learning, so I wanted to ask if, in addition to the resources I have selected above, is there anything else I should add to try to supplement my learning, or are those reasonably acceptable?

I am also glad to hear any tidbits, advice, or suggestions otherwise.

Thank you.

14
11
Which is faster? (lemmings.world)
submitted 3 months ago* (last edited 3 months ago) by commander@lemmings.world to c/rust@lemmy.ml
let mut variable: Type;
loop {
    variable = value;
}

or

loop {
    let variable: Type = value;
}
15
14
submitted 3 months ago by aclarke@lemmy.world to c/rust@lemmy.ml

Managarr - A TUI and CLI to help you manage your Servarrs.

Thanks to everyone who contributed to this release, be that in code, issues, or enhancement suggestions! You all help fuel my passion for working on this and it doesn't go unappreciated! 😄

As always, you can try out the changes yourself via the Managarr Demo Site

Breaking Changes

  • Managarr now supports multiple instances of the same Servarr with custom names and ordering. (See Features below) To accommodate this, configuration files must be updated so that all Servarrs listed beneath radarr, sonarr, etc., be updated to be lists, not individual Servarrs. For example: to migrate from the following config:

    radarr:
      host: 192.168.0.78
      port: 7878
      api_token: someApiToken1234
    sonarr:
      host: 192.168.0.89
      port: 8989
      api_token: someApiToken1234
    

    You would change the above configuration to the following:

    radarr:
      - host: 192.168.0.78
        port: 7878
        api_token: someApiToken1234
    sonarr:
      - host: 192.168.0.89
        port: 8989
        api_token: someApiToken1234
    
  • The --config flag has been renamed to --config-fileto make it more clear what it does.

Features

  • Users can now specify multiple instances of the same type of Servarr and give them custom names and ordering. This allows users to manage multiple instances of the same Servarr, such as an Anime and TV Show instance of Sonarr. To configure, add a list of Servarrs under the respective type (e.g. radarr, sonarr, etc.). (#17)

    • You can specify ordering of your Servarrs and how they will appear in the UI via the weight field. The lower the weight, the further to the left the Servarr will appear in the UI.
    • You can also name your Servarrs whatever you wish. This name will be displayed in the UI. For example, to name your Sonarr instances:
      sonarr:
        - name: Anime
          host: 192.168.0.89
          api_token: someApiToken
      
        - name: TV Shows
          host: 192.168.0.88
          api_token: someOtherApiToken
      
    • This change also required the introduction of a new CLI flag to specify which Servarr you wish to interact with: --servarr-name. This corresponds directly to the value of the name field in your configuration. If you did not specify a name in the configuration, then default names are provided for you corresponding to the Servarr; For example, if you defined two Radarr instances with no names, they will be named Radarr 1 and Radarr 2, respectively.
    • Omitting the --servarr-name flag with multi-instance configurations will default to using the first instance that appears in your config. For example, for the following configuration:
      sonarr:
        - host: 192.168.0.89
          api_token: someApiToken
      
        - host: 192.168.0.88
          api_token: someOtherApiToken
      
      Running managarr sonarr list series will default to interacting with the Sonarr instance at 192.168.0.89. This is the same as running managarr sonarr list series --servarr-name 'Sonarr 1'.
  • API tokens can now be fetched from files instead of needing to be hardcoded (#31). The following is an example config that loads the API token from a file:

    radarr:
      - host: 192.168.0.78
        api_token_file: /home/root/.config/radarr_token
    
  • Configurations now interpolate environment variables (#23). This allows you to load sensitive information from environment variables. For example, to load the API token from an environment variable, you can do the following:

    radarr:
      - host: 192.168.0.78
        api_token: ${MY_RADARR_API_TOKEN_ENV_VAR}
    

    This is available for all fields in the configuration file.

Security Updates

Miscellaneous

16
59
Confession (feddit.nu)
submitted 3 months ago* (last edited 3 months ago) by SufferingSteve@feddit.nu to c/rust@lemmy.ml

I have been programming in Rust for about 8 years now. I love the language. But I feel I have some confessions I must make.

  1. I don't know if I use tabs or spaces in my final code. I just assume that it all get solved correctly by cargo fmt. I don't even understand that people have been arguing about this for real? I vaguely remember this being important in C and C++, but I am hoping I never go back to those dark days.

  2. I never do linebreaks, not even when adding my semicolons. I hit ":w" and if shit doesn't move around on my screen, I fucked up somewhere.

  3. The only lifetime I ever use is '_, 'a or 'static otherwise I give up

  4. Wtf is the 'de lifetime in serde deserialize??

  5. Rocket is the best web server

  6. I actively chose software written in Rust over other software, even if it's not better, and I argue that it is.

Okay, got that of my chest. Never dared telling anyone this before. Feels scary

17
8
submitted 3 months ago by commander@lemmings.world to c/rust@lemmy.ml

I came from Java, so it kind of makes sense.

I'm glad the Rust devs thought to allow disabling non-snake_case warnings.

This language is actually really great and versatile. (I also use tabs instead of spaces)

18
47
submitted 3 months ago by Ephera@lemmy.ml to c/rust@lemmy.ml
19
17
submitted 3 months ago* (last edited 3 months ago) by BitsandBytes@lemmy.world to c/rust@lemmy.ml

Hi there! Just wanted to share a project I worked on over the past 6 weeks. It is a boilerplate/template for a fairly secure API.

It now features:

  • An example API,
  • JWT auth (using APIkeys and username + password (+ 2 factor))
  • Key rotation,
  • Built-in HTTPS/HTTP2,
  • Multiple keys per account,
  • Usage tiers,
  • Role based access,
  • Healthcheck endpoint for monitoring and docker,
  • OpenAPI documentation generation,
  • And a lot more...

This was my first Rust project. I am always in for feedback :)

20
52
submitted 3 months ago by Ephera@lemmy.ml to c/rust@lemmy.ml
21
12
submitted 3 months ago by Zenlix@lemm.ee to c/rust@lemmy.ml

Are there some big projects/games that are released and made in bevy?

A lot of times tiny glade is mentioned, but I can not find a reliable source from the devs that it is made in bevy.

22
4
submitted 4 months ago by commander@lemmings.world to c/rust@lemmy.ml

I've used Godot, which works great but I'm wondering if there are other ways.

Does anyone have experience using Qt with Rust and Qt Designer?

Are there any other drag and drop options that you think are viable?

23
23
submitted 4 months ago* (last edited 4 months ago) by tracyspcy@lemmy.ml to c/rust@lemmy.ml
24
31
New Rust stable version (blog.rust-lang.org)
submitted 4 months ago by Zenlix@lemm.ee to c/rust@lemmy.ml
25
10
submitted 4 months ago by Tyedee@lemmy.world to c/rust@lemmy.ml

An interesting video about actor programming in Rust.

view more: next ›

Rust Programming

8799 readers
1 users here now

founded 6 years ago
MODERATORS