Latest / Developer tools

clap-config-file

github.com · Package · Quiet

Derive macro that adds config file support to clap CLI arguments

Visit github.com ↗Share

Stars
12
Forks
0
Open issues
3
Last commit
Releases
6
Found
22 months ago

GitHub figures as of . They are context, not a ranking.

clap-config-file is a Rust procedural macro that adds config file support to clap command-line parsers. A single struct can serve both CLI arguments and a YAML, TOML or JSON config file, with command-line values overriding the file by default. It suits Rust developers who want one definition for both sources.

Repository description on GitHub: “A proc macro for adding config file support to clap”

What it does

  • Derive macro that uses one struct for CLI and config
  • Supports YAML, TOML and JSON config formats
  • Per-field options that control which sources a value can come from

Good for

  • Let a Rust CLI read defaults from a config file
  • Keep CLI flags and config keys in one struct

Suits: Rust developers building CLI tools with clap.

What you can try

Add the crate from crates.io to a Rust project and derive the macro on your config struct.

Install

cargo install clap-config-file

Confirmed against the package registry. Read the project’s own instructions before running anything.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw clap-config-file on , when it was first published on crates.io. The oldest published release on GitHub is v0.1.0, dated . Its first tagged release landed the same day it was found. 6 releases have been published in total; the latest is v0.6.0 ().

Day-7 and day-30 updates

Day 7 3 releases shipped

  • 3 releases in the first 7 days: v0.2.0 (27 Jan 2025), v0.3.0 (28 Jan 2025), v0.4.0 (28 Jan 2025)

Checked , later than day 7 because tracking began after.

Day 30 3 releases shipped

  • 3 releases in the first 30 days: v0.2.0 (27 Jan 2025), v0.3.0 (28 Jan 2025), v0.4.0 (28 Jan 2025)

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (6 in total, busiest month 4).
  1. Repository created on GitHub: bodo-run/clap-config-file
  2. Release v0.1.0
  3. Found: it was first published on crates.io. crates.io
  4. Release v0.2.0
  5. Release v0.3.0
  6. Release v0.4.0
  7. Release v0.5.0
  8. Release v0.6.0
  9. Day-7 check recorded by Kip (details)
  10. Day-30 check recorded by Kip (details)

Quick answers

When was clap-config-file released?
Its first tagged release on GitHub is dated 27 Jan 2025. Kip found it on crates.io on 27 Jan 2025.
Is clap-config-file open source?
Its source is public on GitHub at bodo-run/clap-config-file; check the repository for licence terms.
What does clap-config-file run on?
Library.
Is clap-config-file free?
It is open source, so the code is free to read and run; check the licence for terms.
Is clap-config-file still maintained?
It has had no commit or release for over a year as of the latest check.

Provenance

SourceRecordLast checked
crates.iolisting
official API record
GitHub repositorybodo-run/clap-config-file
REST API record
GitHub Releasesrelease list
REST API record

Stable ID crates-clap-config-file. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.