Skip to the content.

Rust Atomics and Locks

https://marabos.nl/atomics/basics.html

rpc

简单读了下,这是绝对应该阅读的东西

./target/debug/helloworld-server
./target/debug/helloworld-client
grpcurl -plaintext -import-path ./proto -proto helloworld.proto -d '{"name": "Tonic"}' '[::1]:50051' helloworld.Greeter/SayHello

pingora

RUST_LOG=INFO ./target/debug/pg  -c ./src/pingora/conf.toml  -d

测试

cargo test rustbook

覆盖率 cargo install cargo-tarpaulin cargo tarpaulin –out Html

基本遇到放到 demo 中测试

使用方法

cargo build --package demo && target/debug/demo 2

本站所有文章转发 CSDN 将按侵权追究法律责任,其它情况随意。