Rust

Rust’s Future: Internal Execution

Reading Time: 4 minutes As you all know Rust Programming has Futures which helps to make our code Asynchronous. Rust’s Futures are analogous to Promises.This article mainly pertains to the internal working of the Future and we’ll also understand the structure of the Future like how it is defined and how it will execute when it comes into the action. Future: In a Nutshell Future is trait in Rust Continue Reading

Custom Implementation of Blockchain In Rust(Part 3)

Reading Time: 2 minutes In previous blogs(part-1 and part-2), we created a sample blockchain application. We also implemented validation and proof of work algorithm. Now we are going to upgrade our blockchain to simple cryptocurrency. We can do this by:- Including the functionality of paying out rewards to miners Signing the transaction We will be covering only first part in this blog. We will cover transaction signature in next Continue Reading

A Quick Rundown of Async/Await in Rust

Reading Time: 4 minutes As you all know the async–await syntax hits stable Rust, as part of the 1.39.0 release. So let’s leverage this stabilized feature to make our code-bases Asynchronous with Zero-cost futures. In this article, we’ll mainly look into the basics of Async/Await feature: Async/Await: Quick Intro Zero-cost futures Quick Demonstration of Asynchronous Programming Before diving into our road-map let’s understand the behavior of the Asynchronous programming. In a Continue Reading

Custom Implementation of Blockchain In Rust(Part 2)

Reading Time: 2 minutes Hello Everyone, in the previous blog, we talked about blockchain, what is block and its content. we also implemented a sample Blockchain application using Rust.In this blog, we will continue working with our sample blockchain application and talk about blockchain validation and its mining process. Blockchain Validation Why do we need blockchain validation? Because we have to ensure that no one can tamper any data Continue Reading

Trace caller’s source location in the stable Rust

Reading Time: < 1 minute Hello folks, In this blog, I will be introducing a feature to track source location of caller of a function.In one of the Rust projects, I came across a scenario, where I had to trace source location of caller of a function. Rust also has this feature, but it is not available for stable release. So I published a crate trace_caller and introduced trace , Continue Reading

Custom Implementation of Blockchain In Rust(Part 1)

Reading Time: 3 minutes Hello folks, in this blog, we will be learning how to create our own Blockchain, which is a technology behind Bitcoin. Blockchain technology has been called the greatest innovation since the internet. A Blockchain is a chain of blocks which contain information. A block contains the following:-1) Transaction Data:- This contains information about the Sender, Receiver, number of bitcoins to be transferred. 2) PreviousHash:- Hash Continue Reading

Closer Scrutiny of Rust Collections [Part-2]

Reading Time: 4 minutes The Collections are the general-purpose programming data structures provided by Rust’s Standard library. Rust can provide many cool implementations of data structures like Vector, Linked list, Hash map, BTreeMap, etc. Hello, folks!  your wait is over, here is the second blog of Closer Scrutiny of Rust Collections. I hope you have learned a lot from the first part. It’s better to go with the previous blog first to gain more understanding about Collections.We Continue Reading

Closer Scrutiny of Rust Collections

Reading Time: 3 minutes The Collections are the general-purpose programming data structures provided by Rust’s Standard library. In Rust, the collections can make possible for two libraries to communicate without significant data conversion. Rust can provide many cool implementations of data structures like Vector, Linked list, Hash map, etc. Rust Collections can save the data into the Heap, collections decide the size on run-time instead of compile time. This Continue Reading