Using AsRef<[u8]> in Arguments
Open
experience-easy
- Dominant language
- Rust
- Stars
- 1.1k
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
This may have been a conscious choice to avoid but I wanted to see if it makes sense to use some type that implements `AsRef<[u8]>` in place of `&[u8]`? This would make it easy for users to supply `&str` or `String` in addition to `&[u8]` when calling functions. I thought this would be in line with the idea that mundane is intended to be easy to use.
Contributor guide
Research direction
The issue does not name files, tests, or specific functions. Review the library APIs that currently accept &[u8] and determine the scope and compatibility implications of accepting types implementing AsRef<[u8]>. Done means the API direction and affected call sites are clearly decided.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cryptography
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100