Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Added a basic config file for buffdb#34

Open
matdexir wants to merge 6 commits into
buffdb:mainfrom
matdexir:patch/config-file
Open

Added a basic config file for buffdb#34
matdexir wants to merge 6 commits into
buffdb:mainfrom
matdexir:patch/config-file

Conversation

@matdexir
Copy link
Copy Markdown
Contributor

No description provided.

- Add toml and home dependencies
- Create comprehensive config module with validation
- Add Config struct with server, database, logging, performance sections
- Support config file loading with CLI override precedence
- Update CLI to accept --config option
- Update main.rs to use configuration system
- Add default buffdb.toml with examples
- Update README with configuration documentation
- Maintain backward compatibility with existing CLI args

Configuration precedence:
1. CLI arguments (highest)
2. Config file
3. Default values (lowest)

Features:
- TOML format with all standard configuration options
- Automatic config file discovery
- Validation and error handling
- Performance tuning options
@matdexir
Copy link
Copy Markdown
Contributor Author

Needs some revamp on the git history side but it should be ok for review.

@matdexir matdexir marked this pull request as ready for review January 24, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant