rust project management
basic concepts Packages: A Cargo feature that lets you build, test, and share crates Crates: A tree of modules that produces a library or executable Modules and use: Let you control the org…
Read articlebasic concepts Packages: A Cargo feature that lets you build, test, and share crates Crates: A tree of modules that produces a library or executable Modules and use: Let you control the org…
Read articlebuild from source understanding geth configgeth config type is defined in /cmd/geth/config.go ethconfig (eth/ethconfig/config.go)contains configuration options for …
Read articleOverviewThe most common kind of pointer in Rust is a reference (borrow but not own)Smart pointers, on the other hand, are data structures that not only act like a pointer but also have addi…
Read articletrait objecta reference to a trait type (or Box) is called trait object two ways convert concrete type to trait object assigning to variable pass a concrete type as a argument to a function…
Read articlelifetime Every reference in Rust has its own lifecycle most of the time, Rust’s lifetime is implicit and can be inferred There are two types of life cycle: input life cycle and output life …
Read articleownership rule Each value in Rust has an owner. There can only be one owner at a time. When the owner goes out of scope, the value will be dropped. variable scope Movestack-only data: Copy …
Read articlefrequently used cmd data typeinteger i8,i16,i32,i64,i128,isize,u8,u16,u32,u64,u128,usize,etc isize, usize indicates that the type is determined by the architecture of the computer. For exam…
Read articlelearning resources the book cargo book the rust performance book rust design patterns the rust RFC book the rustdoc book rustnomicon the rust reference rust by example async programming in …
Read article