Shanmukh Sista·Apr 6Member-onlyCell<T> and RefCell<T> — Wrapper Types in Rust In Depth with ExamplesIn the last post, we saw that Box Pointer as a unique smart pointer that can be used to initialize values on the heap or of unknown size. In this post, we’ll take a look at Cell and RefCellwrapper types , how to use them and more importantly how not…Rust6 min readRust6 min read
Shanmukh SistainBetter Programming·Jun 5, 2022Member-onlyUnderstanding Rust Ownership Model by ExampleKnow the 3 rules which are the foundation of Rust’s ownership system — Over the last few months, I’ve been intrigued by the Rust programming language — especially its memory model and ownership. At first, I thought it was just another systems programming language that I could learn in a few weeks by writing some sample applications. …Rust5 min readRust5 min read
Shanmukh SistainBetter Programming·Jun 9, 2022Member-onlyVariable, References, and Lifetimes in Rust — A Practical IntroductionMaster the Rust basics — In this article, we’ll touch upon some basics for variables, memory, and references in Rust. The goal is to understand why Lifetimes exist in RUST and how can we work with the Rust compiler to write safe code. …Programming7 min readProgramming7 min read
Shanmukh Sista·Oct 1, 2022Member-onlyHow to Write a REST API Using Rust and Axum FrameworkWith Postgres connection pooling — This article will demonstrate writing a REST API from scratch using Rust and Axum framework. I’ll show you how to set up a production-ready Rust Workspace, plan the API and add request validations, and finally some samples for logging, database handling, and error responses. In the past, I spent quite…Rust8 min readRust8 min read
Shanmukh Sista·Apr 13Member-onlySmart Pointers in Rust — RC<T> type explained (Reference Counted )It was very daunting for me initially to see Rc , Arc , being used in almost every open source repository I explored. I started reading books and tried to understand the underlying concepts behind Reference counting and Garbage collection, and it took a while for me to grasp the…Rust6 min readRust6 min read
Adrian Macal·Feb 12Learning Rust: Tokio I/O NetworkingEmbark on an exciting journey to learn Rust programming with the help of the Tokio library. Build a TCP Echo Server and gain hands-on experience in handling multiple connections. Enhance your coding skills and fulfill your potential as a Rust programmer. My objective is to study the Tokio library by…Rust5 min readRust5 min read
Satyajit Roy·Aug 5, 2022[Rust] Struct and GenericsLet’s talk about the some custom data types in Rust like struct and emuns . We all know why need custom data type, like any other language regular data type may not suffice the need and hence we have custom data types. Structs, How to use them in Rust ? Structure, struct in short, are very similar to…Rust6 min readRust6 min read
Daniel Espejel·Feb 16A comparison between Sway, Move and RustTaking a look at blockchain languages based on and built on Rust. Not long ago I started programming in Rust for the fun of it. …Rust10 min readRust10 min read
Herbert WolversoninThe Pragmatic Programmers·Updated Feb 24, 2022RustleBuild a Wordle Clone in Rust — Rust8 min readRust8 min read
Raimi KariminITNEXT·Aug 5, 2022Member-onlyCreating a Rust Web App with Rocket and DieselI had a blast — Changelog: 30 Dec 2022 — Use Medium’s new code block for syntax highlighting Declarative, decoupled, laconic, batteries-included — adjectives that I would associate Rocket with after tinkering with it. I would say I really enjoyed myself. See here for a quick review. This is yet another article on Rust +…Rust7 min readRust7 min read
Sacha Arbonel·Nov 5, 2022How to build a Semantic Search Engine in RustIntroduction A semantic search engine is a type of recommender system that relies on the meaning of words to provide better search results. It is different from a traditional full text search engine, which relies on keyword matching to provide results. A semantic search engine allows you to search for concepts…Rust6 min readRust6 min read
chen2089inCoinsBench·May 30, 2022Ethereum with Rust Tutorial Part 1: Create simple transactions with RustThis tutorial shows how to start a local Ethereum virtual machine (EVM) in Rust, query balance, and make simple transactions. The source code is available on Github. Setup requirements Before writing any code, we need to make sure we have some required tools installed, specifically Rust and Ganache. Rust Install Rust by following…Ethereum3 min readEthereum3 min read
demola malomo·Sep 27, 2022Exploring Yew — The Rust-based Frontend FrameworkFrom a React developer’s perspective — WebAssembly, popularly known as WASM, has revolutionized how web applications are built. It has allowed developers to use their favourite programming languages to build web applications. With these possibilities, developers are not tasked with the burden of learning a JavaScript-based framework when building a frontend application. They can leverage their…React7 min readReact7 min read
Kevin B. Greene·Aug 10, 2022Member-onlyAsync Programming in Rust — Part 1: Threads and ChannelsSource: Rust Threads Other Posts in Series Async Programming in Rust — Part 2: Diving into Scoped Threads Async Programming in Rust — Part 3: Futures and Async / Await Introduction This is the first of what will be a series of posts on how to write async code in Rust. I come mostly from…Rust17 min readRust17 min read
Khushal BhardwajinTowards Dev·Sep 5, 2022REST with RustCalling REST APIs with rust may seem like a daunting task at first because of the steep and long learning curve of rust as a programming language. We know that contacting with REST APIs is something that we come across creating almost any other app that comes to mind. We’ll…Rest3 min readRest3 min read