Calling Rust functions from C++

Let’s talk about FFI(foreign function interface) on rust. FFI provides the way of creating a C-friendly API. +-----------------------------+ | hello() | +-----------+ | | main() => | hello() {}| |...

The serde with no_std

This post is about sample code about serde_json_core. Previous post about serde is here. Serde with no_std In order to use Serde in a no_std context default-features needs to be...

Rust procedural macro (function-like)

In this post, we will write rust source code using proc macro. Procedural Macros Procedural macros allow creating syntax extensions at compile time. This means it allow you to run...

Rust macro system and declarative macro

In this post, it is about to use declarative macros to make DSL and variadic interface. Rust Macros Fundamentally, macros are a way of writing code that writes other code,...

The basis of serde on Rust

Serde Serde is a framework for serializing and deserializing Rust data structures. A data structure that knows how to serialize and deserialize itself is one that implements Serde’s Serialize and...