From 80ca3af5d9d5301fca07dc94445a5843d82d6efc Mon Sep 17 00:00:00 2001 From: Fatorin Date: Sat, 4 May 2024 11:57:48 +0800 Subject: [PATCH] update usage for rust. The implementation code is stored in a separate repository, so only the usage instructions are provided. --- rust/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 rust/README.md diff --git a/rust/README.md b/rust/README.md new file mode 100644 index 0000000..1bcb495 --- /dev/null +++ b/rust/README.md @@ -0,0 +1,13 @@ +Usage example + +set pvpgn-hash-rs = "1.0.0" in dependencies. +```toml +[dependencies] +pvpgn-hash-rs = "1.0.0" +``` + +```rust +let str_result = pvpgn_hash_rs::get_hash_string("12345"); +println!("{}", str_result.unwrap()); +// print 460e0af6c1828a93fe887cbe103d6ca6ab97a0e4 +``` \ No newline at end of file