Rust programming language

Create runtime API of Substrate based 2D barcode scanner Pallet for Querying

Reading Time: 2 minutes In my previous post Integrate Substrate based 2D barcode scanner Pallet in your Substrate Runtime, I explained how to integrate Substrate pallet in your runtime.  Substrate runtime is its State Transition Function, which contains business logic of a Blockchain that determines how the state changes when a block is processed and defines its behaviour of the Blockchain. Substrate runtime can be accessed to outer node though an API, Continue Reading

Integrate Substrate based 2D barcode scanner Pallet in your Substrate Runtime

Reading Time: 2 minutes In my previous post Substrate based 2D barcode scanner Pallet in Rust, I explained how to create Substrate pallet easily. A pallet, Also known as Runtime modules, contains the logic, which can modify the features and functionality of your blockchain’s state-transition function. A typical Substrate project consists of 4 components: NodeRuntimePalletsExecute in Docker The runtime is Substrate’s state transition function and is divided into separate Continue Reading

OS in Rust: Custom target to build kernel for a bare metal: Part-3

Reading Time: 5 minutes This series pertains to create a basic Operating System using Rust Programming Language. This series aims to learn and understand the basics of Operating System.Through this series, you will get some ideas about the internal components of Operating System and how they interact with each other. This article is for building our 64-bit kernel for the x86 architecture on an executable that runs on bare Continue Reading

Create Rust based Microservice using Rocket and Diesel

Reading Time: 3 minutes Planning to write a new application using Rust? Confused with the approach? So this blog is for you. In this blog, we are going to write a simple Rust based Application using Microservices.  Why Microservice? Using a Microservice approach developers can build an application in a modularised way rather than writing a monolithic way. Which allows enterprises to create software which is more agile and Continue Reading

Substrate based 2D barcode scanner Pallet in Rust

Reading Time: 2 minutes As we know, Rust is one of the best programming languages for blockchain due to its highly-capable mechanism of handling mutable states. The fast, memory safe, and exclusively concurrent nature of this blockchain coding language makes it most suitable for developing real-world blockchains. I was looking for a Rust based blockchain framework and I found Substrate, which is developed by Parity technology and built in Continue Reading

Compilation Of Active Directory Logs Using Rust.

Reading Time: 4 minutes Active Directory: Active Directory (AD) is a Microsoft product that consists of several services that run on Windows Server to manage permissions and access to networked resources. It stores data as objects. An object is a single element, such as a user, group, application or device, like printer. In this blog, we will discuss the Active Directory service provided by Windows Server, its workflow and then we will Continue Reading

Processing a Series of Items with Iterators in Rust

Reading Time: 3 minutes Iterators are objects that produce sequences of values, so they can be iterated or looped over. Or, in other words, every time you ended up using a for loop in your program, you were most likely interacting with some kind of iterator. Hello, folks! your wait is over, we have come up with a new blog. In this blog, we will discuss Iterators to process of series of Continue Reading

What’s new in Rust 1.46.0 about const_fn?

Reading Time: 3 minutes Hello, folks! your wait is over, we have come up with a new blog. In this blog, we will discuss the new update about const_fn in the Rust update 1.46.0. I hope you will enjoy the blog. Improvement in Const Function The const_fn feature allows marking free functions and inherent methods as const, enabling them to be called in constants contexts, with constant arguments. Example: Output: So the Continue Reading

OS in Rust: An executable that runs on bare metal: Part-1

Reading Time: 4 minutes This is the very first blog of the series that pertains to create a basic Operating System using Rust Programming Language.The aim of this series is to learn and understand the basics of Operating System. Through this series, you will get some ideas about the internal components of Operating System and how they interact with each other.

Interact with Substrate Nodes using Light Clients in Rust

Reading Time: 3 minutes Humankind is standing on the brink of another industrial revolution. Few technologies which are going to play a vital role in this are IoT, Artificial Intelligence, Blockchain and some more. This blog contemplates more on Blockchain based framework i.e. Substrate. So let’s get started. In the last 2-3 years, Rust emerged as one of the best languages for Blockchain development as Rust gives Low-Level detail Continue Reading

Linux System Call `fork()` in Rust

Reading Time: 2 minutes As we know, System calls provide an interface to the services that are available by the operating system. It is a mechanism in which a computer program requests a service from the kernel of the OS. In this blog, I will cover fork() system call. fork() is used to create a new process by duplicating the calling process. The new process is referred to as Continue Reading

Bleed Less during Runtime with Rust’s Lifetime

Reading Time: 3 minutes “Sweat more in training (Compile Time), Bleed less in Battle (Run-Time)”. I think this old warrior mantra fits best for Rust Programmers. There are few new concepts introduced by rust-like Ownership and Lifetime, which are hard to grasp even for an experienced coder in the beginning. So the question is, why new features? And how it makes Rust different from other languages. Why Rust? One Continue Reading