Skip to content

Commit

Permalink
chore: Add note about hashers in readme (#60)
Browse files Browse the repository at this point in the history
Co-authored-by: zvolin <[email protected]>
  • Loading branch information
DougAnderson444 and zvolin authored Jan 7, 2025
1 parent 5fef10c commit 39cc21c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Run clippy
run: cargo clippy --all --all-targets -- -D warnings -D missing-docs
run: cargo clippy --all --all-targets -- -D warnings

docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Check missing docs
run: cargo clippy --all -- -D missing-docs
- name: Run rustdoc check
env:
RUSTDOCFLAGS: -D warnings
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ Check out the [examples](./examples).
- **Libp2p Integration**: Designed to integrate smoothly with libp2p, allowing it to be used in a wide range of decentralized applications.
- **Rust Safety and Performance**: Takes advantage of Rust's memory safety guarantees and performance optimizations, making it a robust choice for networked applications.

### Hasher Choices

Beetswap uses [multihash-codetable](https://docs.rs/crate/multihash-codetable/latest/features), so hashers can be enabled with the corresponding feature:

```toml
# your crate's Cargo.toml
# Say we want CIDs that used blake3 or sha2 or sha3
multihash-codetable = { version = "0.1", features = ["blake3", "sha2", "sha3"] }
```

Beyond the multihash codetable hashers, other custom hashers can be added, see [multihasher](./src/multihasher.rs) for further details.

## Contributing

We welcome contributions! Please fork the repository and submit a pull request.
Expand Down

0 comments on commit 39cc21c

Please sign in to comment.