3Hren / 3Hren/msgpack-rust

Better configuration ergonomics

Open
#292 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.4k
Forks
162
PR merge metrics
No merged PRs in 30d

Description

I find setting a desired configuration rather tedious. The following things would help:

- Make all constructors `const` so that they may be used in constants
- Provide some constants for common use cases. I suggest having one for the most compact configuration (I think this is just `DefaultConfig`) and one that is fully self-describing
- If breaking backwards-compatibility is an option, I'd design the structs differently: Maybe have one struct for the configuration, with one generic parameter for each option: `Config` or something. Maybe those type-level constructs could be improved with const generics in the future.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.