Web3
未读
Foundry Base Usage
Foundry Base Usage Create a .env (only for Test Account) Input the private key of test account and RPC_URL PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238f
Framing and Frame in Net
Framing and Frame in Network Communication 📦 Framing is a fundamental concept in network communication, transforming a continuous stream of data into
Study
未读
write marcos by your self
Write marcos by your self Some examples Rust 宏的示例代码,展示了一些常见的用法和技巧: 简单的重复代码块: macro_rules! repeat {
($expr:expr; $n:expr) => {
{
Tokio Async Example
Tokio Async Example This example demonstrates how to use the tokio crate to perform asynchronous operations. Tokio Async Example Prerequisites Install
Differences between rust format marco
Differences between rust format marco In Rust, the format_args! macro and the format! macro are both used for formatting strings, but they have some k
Build A unigrep software
Build A unigrep software Build A unigrep software Introduction What is unigrep? What is the purpose of this project? Build the project create a new ru
Add software to linux env
Add software to linux env 将编写的 Rust 程序加入到 Linux 的软件环境中,并使其可以作为命令直接调用(例如,通过命令unigrep),您需要执行以下步骤: 构建您的 Rust 程序: 使用cargo build --release命令在您的项目目录中构建您的 Ru
Rust Study Day7
Rust Study Day7 1. Trait Study using trait to limit the variable type fn add<T: std::ops::Add<Output = T>>(a:T, b:T) -> T {
a + b
}
using trait a
Rust Study Day6
Rust Study Day6 Rust Study Day6 - Summary 1. special enum type in Rust 2. Pattern Match Summary I’ve been studying Rust every day, but either due to b
Rust Study Day3
Rust Study Day3 Rust Study Day3 1. borrowing & ownership 2. Dangling References 1. borrowing & ownership The borrowing rule are simple: [1]-Two or mor