Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

method signatures

Open
#5 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust
Domain
data

Research direction

Start by reading the encode(), decode(), and corresponding _with_offset() routines, then inspect how their usize results behave with undersized source or destination buffers. Compare the cited desert implementation and determine the intended API and error semantics; done means the signatures and offset routines have a clearly agreed replacement, with tests covering buffer-too-small failures.

Written by the indexing model from the issue text.

Description

encode() and decode() both have failure modes if you pass in a source or destination buffer that is too small but the return type is usize for both encode() and decode().

The _with_offset() routines could likewise be removed, since slices in rust are very cheap.

These are the routines I'm using inline in desert but I considered using this varinteger first:

https://github.com/substack/desert/blob/46789f4af0e98afb80438cb80db573d0d8dbb630/src/lib.rs#L1020-L1054

Dominant language
Rust
Stars
15
Forks
2
PR merge metrics
No merged PRs in 30d

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.

More from datrs/varinteger

All issues in datrs/varinteger

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.