Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add TOML support #10

Merged
merged 4 commits into from
Feb 21, 2025
Merged

Add TOML support #10

merged 4 commits into from
Feb 21, 2025

Conversation

l0kod
Copy link
Member

@l0kod l0kod commented Feb 20, 2025

TOML is easier for users, whereas JSON is easier for parsing.

See https://toml.io/

@l0kod l0kod force-pushed the toml branch 4 times, most recently from f28c1c4 to 61b91a6 Compare February 21, 2025 09:48
Depends on the toml feature.

Simplify and rename parse_config() to parse_json(), and add a new
parse_toml() helper.

Signed-off-by: Mickaël Salaün <mic@digikod.net>
TOML uses snake_case, whereas JSON uses camelCase.

Signed-off-by: Mickaël Salaün <mic@digikod.net>
Add TCP port control to examples.

Showcase that, unlike JSON, TOML handles comments and trailing commas.

Signed-off-by: Mickaël Salaün <mic@digikod.net>
Clarify the goal and explain the different use cases for JSON and TOML.

Signed-off-by: Mickaël Salaün <mic@digikod.net>
@l0kod l0kod merged commit c2559a2 into landlock-lsm:main Feb 21, 2025
14 checks passed
@l0kod l0kod deleted the toml branch February 21, 2025 09:56
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant