home.social

#actix — Public Fediverse posts

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

fetched live
  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. 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

  8. 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

  9. 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

  10. 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.

  11. 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

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

  13. 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

  14. 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 :)

  15. 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

  16. 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

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

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

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

    habr.com/ru/companies/otus/art

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