Mintbase / Mintbase/arak

Parse Config from toml::Table Directly

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

Nobody has claimed this yet.

good first issue todo
Dominant language
Rust
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

In #11 we introduced a somewhat hacky serialize-deserialize implementation where were we go

String -> toml::Table -> String -> Config

but we should be able to go straight from Table to Config with try_into

https://users.rust-lang.org/t/how-to-parse-toml-table-into-a-struct/88139/2

Pointed out here: https://github.com/Mintbase/arak/pull/11#discussion_r1335958997

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

Read issue #11 and the discussion on pull request #11 first to understand the current String -> toml::Table -> String -> Config path. Locate the configuration parsing implementation and check how toml::Table is converted into Config. Done means the direct Table-to-Config conversion works through try_into without the serialization round trip.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
backend
Issue type
Refactor
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.