Best of RustDecember 2023

  1. 1
    Article
    Avatar of communityCommunity Picks·2y

    Rust 🦀: Why JS devs are switching to it?

    Rust is gaining popularity among JavaScript and TypeScript developers. It offers a distinct memory management system, strict rules for borrowing, explicit mutability, and is a compiled language. Rust also has static and strong typing, with a focus on robust error handling.

  2. 2
    Article
    Avatar of communityCommunity Picks·2y

    Build a full stack app with Rust, Next.js and Docker

    Learn how to build a full stack app with Rust, Next.js, and Docker. The app uses Next.js 14 with TypeScript and Tailwind CSS for the frontend, Rust without any framework for the backend, and PostgreSQL for the database. Docker and Docker Compose are used to containerize and run the app. The article provides step-by-step instructions on setting up the database, backend, and frontend, as well as testing the app using Postman.

  3. 3
    Video
    Avatar of communityCommunity Picks·2y

    Next.js 14, Rust, Docker: Build a fullstack rest API in typeScript and Rust

    Learn how to build a fullstack REST API using TypeScript and Rust. The tutorial covers the use of Next.js, Rust, and Docker to create a frontend, backend, and database respectively. Prerequisites for the tutorial include basic knowledge of frontend and backend concepts, familiarity with databases and APIs, as well as having Docker and Rust installed on your machine.

  4. 4
    Article
    Avatar of communityCommunity Picks·2y

    Introducing Loco: The Rails of Rust

    Loco.rs is a Rust web backend framework inspired by Ruby on Rails. It aims to provide a batteries-included experience for Rust developers. To get started with Loco, you can use their CLI tool and generate a new project. The routing in Loco is based on Axum and allows you to use familiar concepts like middleware. Models in Loco are implemented using sea_orm and can be easily generated. Loco also supports job processing with sidekiq-rs. You can deploy your Loco application using Docker or Shuttle.

  5. 5
    Article
    Avatar of communityCommunity Picks·2y

    Getting Started with Axum - Rust's Most Popular Web Framework

    Axum is a popular web framework for building REST APIs in Rust. It is simple to use and has hyper-compatibility with Tower, a library for building network applications. Axum follows the style of REST-style APIs like Express, where you can create handler functions and attach them to Axum's `Router` type. It supports various extractors for handling request data, such as JSON, forms, and headers. Axum also provides support for adding middleware, serving static files, and managing app state. It is recommended to use Shuttle for deployment, as it simplifies the process.

  6. 6
    Article
    Avatar of communityCommunity Picks·2y

    Rust: Multi threading

    Explore multi-threading in Rust, including the challenges, memory management, differences between OS threads and async tasks, and safe memory access between threads.

  7. 7
    Article
    Avatar of earthlyEarthly·2y

    The Future is Rusty

    The article discusses the challenges of learning complex programming languages like Rust and how LLMs (Large Language Models) can help with the intermediate material problem. By providing instant feedback and assistance, LLMs can bridge the gap in knowledge and enhance the learning process in programming. The article encourages readers to tackle challenging projects with the support of LLMs and emphasizes that learning curves are now less steep.

  8. 8
    Article
    Avatar of communityCommunity Picks·2y

    How to write a webapp in Rust

    Learn why you should write a webapp in Rust, how to do it using Yew framework, and the advantages of using Rust for frontend development.

  9. 9
    Article
    Avatar of androiddevAndroid Developers Blog·2y

    Faster Rust Toolchains for Android

    The article discusses the optimizations implemented to improve the performance of the Rust toolchain for Android, including using single code generation units, garbage collecting data objects, performing link-time and profile-guided optimizations, and leveraging the BOLT tool. These optimizations result in significant speedup and size reduction in the compiled Rust components of Android.

  10. 10
    Article
    Avatar of rustlibRush LibHunt·2y

    Awesome Rust Weekly - Issue 392, Dec 28, 2023

    This post provides a weekly overview of popular Rust news, articles, and packages. It includes topics such as improving supply chain security for Rust, using Onboard AI with GitHub repos, and the purpose of a lightweight message queue in Rust.

  11. 11
    Article
    Avatar of rustRust·2y

    Announcing `async fn` and return-position `impl Trait` in traits

    The Rust Async Working Group announces the progress of enabling 'async fn' in traits. Rust 1.75 includes support for '-> impl Trait' notation and 'async fn' in traits. The use of '-> impl Trait' and 'async fn' in public traits is discouraged due to limitations and the inability to put additional bounds on the return type. The post also discusses the use of 'trait_variant::make' proc macro for multithreaded runtimes and the plan to enable dynamic dispatch in the future.

  12. 12
    Article
    Avatar of lobstersLobsters·2y

    Introducing FireDBG for Rust

    Debugging programs is hard, but FireDBG, a Time Travel Visual Debugger for Rust, aims to make it easier. It allows programmers to step backward through source code to understand program execution. FireDBG uses a call tree visualization to display state transitions and supports the capturing of function parameters and return values.

  13. 13
    Article
    Avatar of hnHacker News·2y

    ratatui-org/ratatui: Rust library that's all about cooking up terminal user interfaces (TUIs)

    Ratatui is a Rust library for creating terminal user interfaces. It provides a set of widgets and utilities to build complex TUIs. The library is based on the principle of immediate rendering with intermediate buffers. Ratatui can be used with the Crossterm backend and other backends like Termion and Termwiz. It offers documentation, examples, and a prelude module for convenience. The library does not include input handling, but event handling can be implemented using backend library methods. Ratatui also provides a Layout object for managing the layout of widgets in the UI.

  14. 14
    Article
    Avatar of communityCommunity Picks·2y

    Loco

    Loco is a tool that empowers solo developers by providing everything they need for service, data, emails, background jobs, tasks, and CLI. It follows Rails concepts but is adapted to modern Rust development. Loco is optimized for solo developers and can be scaled as needed. It allows developers to build incrementally and includes easy ways to test applications.