Skip to content

zilong-dai/rust-utils

Repository files navigation

rust utils

hex

print the decimal number string to hexadecimal string.

Uasge

cargo build --package hex # or --release

./target/debug/hex dec_str0 dec_str1 .. dec_strn

# output: hex_str0 hex_str1 .. hex_strn

strop

reverse hex_str endian format

Uasge

cargo build --package strop # or --release

./target/debug/strop rev hex_str -n num_bytes

#output: rev_hex_str

gitext

gitc => git clone

Uasge

cargo build --package gitc # or --release

./target/debug/gitc user/repo:(reename)/branch(main)

#example: gitc zilong-dai/rust-utils

redis-cli

a simple redis-cli

Uasge

docker run --name redis-test -p 6379:6379 -d redis

cargo run --package redis-cli --release -- 127.0.0.1:6379

About

some rust tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published