Skip to content

Commit 2d1b659

Browse files
committed
edition
1 parent 98f4260 commit 2d1b659

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ npm run build
3131

3232
## Rust: Allowed Voters
3333

34-
Listens to `new_vote` hook
34+
Listens to `new_vote` hook, then calls `/api/v4/person` to get details about the voter. It only allows downvotes if the user has made at least 5 posts before. See [rust-pdk readme](https://github.com/extism/rust-pdk?tab=readme-ov-file) for setup and detailed documentation.
35+
36+
Use the following steps to compile it:
3537

3638
```bash
3739
apt install cargo

plugins/rust_allowed_voters/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rust_allowed_voters"
33
version = "0.1.0"
4-
edition = "2024"
4+
edition = "2021"
55

66
[lib]
77
crate-type = ["cdylib"]

0 commit comments

Comments
 (0)