home.social

#actix — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #actix, aggregated by home.social.

  1. In #rust / #rustlang I have a #HTTP endpoint (#actix) , where for a given query, it fetches #JWT from the given parameter (URLS) and validates, puts some logic and returns the result. How to write unittest for this care in rust?

  2. CW: rant

    Now installing #actix comes with 175 dependencies…

    Really not a fan of that either, especially given the generally alpha-state of the ecosystem, but let’s see…


    #DependencyHell

  3. CW: rant

    https://rocket.rs/guide/v0.5/faq/#in-prod

    While Rocket is still in the 0.x phase, the version number is purely a stylistic choice. In fact, we consider Rocket to be the most mature web framework in the Rust ecosystem. To our knowledge, Rocket is the only Rust web framework that correctly implements: […]
    Dear #Rocket devs: Please read the fucking semver spec!
    If your software is being used in production, it should probably already be 1.0.0. If you have a stable API on which users have come to depend, you should be 1.0.0. If you’re worrying a lot about backward compatibility, you should probably already be 1.0.0.
    If you are so immature as to not even follow what to me feels like just about the easiest standard in software-development to follow, how can I trust that you follow the less obvious standards that actually matter?

    It’s like a pharmacist claiming that he cleaned his entire body before mixing your injections and that nobody does it more thoroughly than him, but his pants are covered in dirt: The pants technically don’t matter, what matters is that his hands were clean, but it really calls into question his other claims…

    If you're coming from a different ecosystem, you should feel comfortable considering Rocket's v0.x as someone else's vx.0.
    Rust points to the semver standard and that standard disagrees with you.
    Rust and Cargo's semver policy, and Rocket's strict adherence to it, ensures that Rocket will never break your application when upgrading from 0.x.y to 0.x.z, where z >= y.
    Furthermore, we backport all security and correctness patches to the previous major release (0.{x-1}.y), so your application remains secure if you need time to upgrade.
    What major releases? You don’t have any!

    And if you treat your minor releases as major releases, that means that you have no distinction between minor releases and patches left…

    Well, it’s not that rocket is alone in that regard, but it at least makes the choice easier, sine it really cuts down on frameworks that seem to primarily be successful due to SEO, rather than maturity. I’m now looking at
    #actix as a starting point, since they at least pass the sniff-test of getting versioning right and seem to support what I might need…

    #zerover #semver #rust #rustlang

  4. 🦀 actix-passport: A comprehensive, flexible authentication framework for actix-web applications in Rust.

    github.com/densumesh/actix-pas

    #actix #rust #webdev #auth

  5. I'm wondering if writing my own "web server" to serve my website/blog (the same as my Neocities, but eventually with some twists I couldn't do on Neocities) might be a good idea to force me into a "project" (and help me learn Rust better).

    I'm currently reading this blog post and the whole process looks genuinely fun: https://mortenvistisen.com/posts/how-to-build-a-simple-blog-using-rust

    (Bonus point: The blog post is also about Tera, which I already use on my Neocities since I'm using Zola as a static site generator, so it will probably help if I port my website's own template to the new custom thing)

    #Rust #Actix #Tera
  6. Telegram AI Companion: веселый проект на Rust, Telegram и локальном ИИ

    Привет, Хабр! 👋 Недавно я собрал небольшой, но бодрый pet-проект — Telegram AI Companion . Это Telegram-бот, который умеет болтать с вами, используя локальную языковую модель через LocalAI . Без OpenAI, без облаков — всё на своём железе. Цель проекта — не революция в AI, а именно учебное и увлекательное погружение в Rust , асинхронность, Telegram API и локальные LLM-модели. Такой себе “бот-компаньон”, но больше для разработчика, чем пользователя :) Если вам интересно:

    habr.com/ru/articles/920482/

    #rust #telegram_bot #localai #llm #docker #actix #openai #ai #ngrok #natural_language_processing

  7. Telegram AI Companion: веселый проект на Rust, Telegram и локальном ИИ

    Привет, Хабр! 👋 Недавно я собрал небольшой, но бодрый pet-проект — Telegram AI Companion . Это Telegram-бот, который умеет болтать с вами, используя локальную языковую модель через LocalAI . Без OpenAI, без облаков — всё на своём железе. Цель проекта — не революция в AI, а именно учебное и увлекательное погружение в Rust , асинхронность, Telegram API и локальные LLM-модели. Такой себе “бот-компаньон”, но больше для разработчика, чем пользователя :) Если вам интересно:

    habr.com/ru/articles/920482/

    #rust #telegram_bot #localai #llm #docker #actix #openai #ai #ngrok #natural_language_processing

  8. Well, now my #torrent #tracker udp://chihaya.de:6969 running #torrust #actix is using 8 cores, 14gb ram, 830mb DB size. That escalated quickly. Current stats:

    [torrust_actix] [STATS] Torrents: 12650498
    - Updates: 71081 - Seeds: 251455 - Peers: 782356 - Completed: 591511

  9. Well, now my #torrent #tracker udp://chihaya.de:6969 running #torrust #actix is using 8 cores, 14gb ram, 830mb DB size. That escalated quickly. Current stats:

    [torrust_actix] [STATS] Torrents: 12650498
    - Updates: 71081 - Seeds: 251455 - Peers: 782356 - Completed: 591511

  10. Well, now my #torrent #tracker udp://chihaya.de:6969 running #torrust #actix is using 8 cores, 14gb ram, 830mb DB size. That escalated quickly. Current stats:

    [torrust_actix] [STATS] Torrents: 12650498
    - Updates: 71081 - Seeds: 251455 - Peers: 782356 - Completed: 591511

  11. Well, now my #torrent #tracker udp://chihaya.de:6969 running #torrust #actix is using 8 cores, 14gb ram, 830mb DB size. That escalated quickly. Current stats:

    [torrust_actix] [STATS] Torrents: 12650498
    - Updates: 71081 - Seeds: 251455 - Peers: 782356 - Completed: 591511

  12. Well, now my #torrent #tracker udp://chihaya.de:6969 running #torrust #actix is using 8 cores, 14gb ram, 830mb DB size. That escalated quickly. Current stats:

    [torrust_actix] [STATS] Torrents: 12650498
    - Updates: 71081 - Seeds: 251455 - Peers: 782356 - Completed: 591511

  13. Question to #RustLang: Is #Rustls now production-ready? It still has a 0.x version but the status says that some orgs and projects use it in production.
    When I write web apps using frameworks like #actix, should I use OpenSSL or can I safely use Rustls?
    #dev

  14. Depois do desafio que vou fazer em rust, to pensando em fazer um site de controle de backlog de jogos.

    Fazer algo com actix ou axum + svelte

    o que acham?

    #rust #actix #axum #svelte

  15. Un #rust ans #actix web, how can I have a strict as app state that is non-send.

    Precisely I have a deno_core embedded with app state that needs to store and invoke JS closures. Those closrea are passed to rust as v8::Functions. I do not care if they are duplicated between threads or isolated in a global state. I just want to declare them in invoke them from my actix routes.

    For context, I am experimenting a JS simple embedded app with an action router.

  16. I've been working on a project to let me easily do trunk-based development on solo projects, where every commit must pass the CI checks. 🔥 No need to create PRs for my own work anymore.

    🧩 git-next: trunk-based development manager

    🦀 Written in Rust

    ⭐ Repo: https://git.kemitix.net/kemitix/git-next

    #rustlang #actix #cli #server #terminal #opensource #commandline

  17. Playing around with ... Added an helloworld app using instead of the default ... github.com/timvw/knative-rust-

  18. Spent the day trying to wrap my head around #Leptos. My main struggle (after configuring NixOS) is actually that it just doesn't "feel right". The differences with using signals in component props vs. directly vs. to derive values are something pleasantly absent in #Vue. Also, #Nuxt's useFetch helper makes more sense to me than server functions, which also seem to step on #Actix a bit. But maybe I'll grok it all eventually... #RubberDuck

  19. fuiz.us/ is an #OpenSource alternative to #Kahoot (live quizzes in-classroom) 🚀

    It's created and maintained by the #MIT gitlab.com/opencode-mit/fuiz

    Backend written in #Rust 🦀 with #Actix and frontend in #svelte

    Just a little bit sad that they use Google forms for feedback and Slack for community 😭 (They seem to have in internal #Matrix!)

    Gave it a quick try and it seems nice. Will try it next year for my classes :)

  20. 584 - Mi experiencia con Svelte y Rust
    En este episodio te cuento mi experiencia en el #frontend con #svelte y #typescript mientras que en el #backend estoy utilizando #actix con #rust

    Sigo metido con el servicio para escuchar vídeos en formato podcast, y si bien, ya lo tenía resuelto, no me terminaba de convencer. Como te conté en un episodio anterior, lo estaba implementado con una combinación de Jinja, Rust y vanilla JavaScript
    #atareaoConLinux
    youtube.com/watch?v=FRjRLwCMmk

  21. Do you need to share files quickly as short links?
    Check this out! 🔥

    🦀 **rustypaste**: A minimal file upload/pastebin service - written in Rust.

    🚀 Just released a new version that supports overriding file names!

    ⭐ GitHub: github.com/orhun/rustypaste

  22. How come is not popular yet? it's awesome.

  23. Обзор библиотеки Actix в Rust

    Привет, Хабр! Actix появился на свет благодаря Николаю Киму, также известного в сообществе под ником fafhrd91 . Николай создал экосистему, которая позволяет строить масштабируемые, надежные веб-приложения и микросервисы. Actix основан на модели акторов, концепции, которая была впервые предложена в 1973 году для симуляции активных компонентов в распределенных системах.

    habr.com/ru/companies/otus/art

    #rust #программирование #actix #библиотеки_rust #вебсервер

  24. If anyone out there is using both #actixweb and #htmx (there must be dozens of us!) then I’ve just released the first version of a crate that might be useful to you: crates.io/crates/actix-htmx. Feedback & pull requests welcome at github.com/welshdave/actix-htm #rustlang #actix

  25. I'll be having a short live session in a few minutes. Today I'll be focusing on server/client shared functionality with #actix #awc and #BevyEngine integration.

    #gamedevelopment #indiegame #rustlang

    twitch.tv/cacomixtlelabs

  26. In Java and JavaScript there are libraries that ingest an #OpenAPI definition and create validations and Routes for #webservers like #expressjs or #vertx

    Is there a similar library for #rust ? #RocketRS #actix #warp

  27. I'll have a short live session in a few minutes to work on the #PiRats game. Today's session will be all about integrating the websocket with #actix #awc and #bevyengine... Maybe some #crossbeam. Let's see how it goes :P

    #gamedev #indiegame #rustlang

    twitch.tv/cacomixtlelabs

  28. I'll have a short live session in a few minutes to work on the #PiRats game. Today's session will be all about integrating the websocket with #actix #awc and #bevyengine... Maybe some #crossbeam. Let's see how it goes :P

    #gamedev #indiegame #rustlang

    twitch.tv/cacomixtlelabs

  29. Unfortunately I won't be able to have a live session today :C but I'll be back tomorrow to work on the multiplayer feature. We made some great progress on yesterday's session and I'm eager to wrap it up 🥳

    #gamedev #indiegame #rustlang #actix #awc #bevyengine

  30. I'll be having a live session to work on the #PiRats game in ~5-10 min. On today's session I will try to wrap up the multiplayer integration with #actix #awc and #bevyengine

    #gamedev #indiegame #rustlang

    twitch.tv/cacomixtlelabs

  31. I'll be having a live session to work on the #PiRats game in ~5-10 min. On today's session I will try to wrap up the multiplayer integration with #actix #awc and #bevyengine

    #gamedev #indiegame #rustlang

    twitch.tv/cacomixtlelabs

  32. I'll be having a live session in ~ 10 mins to work on the #PiRats game. On today's session I'll try to have the Websocket interactions moved to a different thread as a workaround to integrate with #BevyEngine

    #gamedev #indiegames #actix #rustlang

    twitch.tv/cacomixtlelabs

  33. I'll be having a short live session to work on the #PiRats game in a few minutes 🏴‍☠️🐭

    On today's session I'll be focusing onthe multiplayer feature using #actix #awc

    twitch.tv/cacomixtlelabs

  34. I'll be working on the live development of the #PiRats project in a few minutes. On today's session I'll be focusing on trying to implement an #actix #awc network communication for the multiplayer feature.

    #gamedev #indiegame #rustlang

    twitch.tv/cacomixtlelabs

  35. CW: Rust

    @haskman Please drop a link to the repo if you're sharing the source. I'm in a similar boat. I was most recently messing around with #yew and #actix but am interested in getting my hands dirty with something #TUI based. I agree with @arialdo that making a tui git client in would be challenging.

    Some tools I'm currently using include #dust github.com/bootandy/dust (Apache 2.0) and #fclones github.com/pkolaczk/fclones (MIT).

  36. CW: Rust

    @haskman Please drop a link to the repo if you're sharing the source. I'm in a similar boat. I was most recently messing around with #yew and #actix but am interested in getting my hands dirty with something #TUI based. I agree with @arialdo that making a tui git client in would be challenging.

    Some tools I'm currently using include #dust github.com/bootandy/dust (Apache 2.0) and #fclones github.com/pkolaczk/fclones (MIT).

  37. CW: Rust

    @haskman Please drop a link to the repo if you're sharing the source. I'm in a similar boat. I was most recently messing around with #yew and #actix but am interested in getting my hands dirty with something #TUI based. I agree with @arialdo that making a tui git client in would be challenging.

    Some tools I'm currently using include #dust github.com/bootandy/dust (Apache 2.0) and #fclones github.com/pkolaczk/fclones (MIT).

  38. CW: Rust

    @haskman Please drop a link to the repo if you're sharing the source. I'm in a similar boat. I was most recently messing around with #yew and #actix but am interested in getting my hands dirty with something #TUI based. I agree with @arialdo that making a tui git client in would be challenging.

    Some tools I'm currently using include #dust github.com/bootandy/dust (Apache 2.0) and #fclones github.com/pkolaczk/fclones (MIT).

  39. The other day I happened upon #actixWeb, a high-level web serving framework based on #actix, for #rust.

    Oh, dear.

    None of the examples and guides work. Absolutely nothing.

    Hard pass.