graphprotocol / graphprotocol/stable-hash

Add usage examples

Open
#16 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
6
Forks
4
Avg merge
28m
Merged PRs (30d)
2

Description

I'm trying to use this crate as a rust novice and can't wrap my head around how I'm meant to use it?

There doesn't seem to be anyway to use a macro like #[derive(StableHash)] on my struct like you would with std::hash.

I'm just trying to hash a basic struct.

Any help would be appreciated!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the Rust crate and the #[derive(StableHash)] usage pattern, but no file or test is identified. Start by reading the crate's public API and current documentation, then add a minimal example for hashing a basic struct; done means a Rust novice can follow the example and understand whether derive-style usage is supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.