Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Build config-rs for configuration management #51

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Harshith-2208
Copy link

closes #30
I have added a config.toml which stores all the ids and url then updated cargo.toml by adding two dependencies. Then a config.rs to handle all configurations and included config.rs in main.rs. Then replaced the occurrence of hard coded values with CONFIG like GROUP_ONE_CHANNEL_ID to CONFIG.channels.group_one .
Then deleted the file ids.rs which was of no use anymore.

@chimnayajith
Copy link
Contributor

As said in previous PR's, the commit message seems too lengthy. Please shorten it, including the PR name. Check this guide : PR Naming Guide

Also, rebase your branch on top of develop, resolve conflicts, and push the updated branch.

@Harshith-2208
Copy link
Author

I'll update the name of the PR and the commit message and resolve conflicts

@Harshith-2208 Harshith-2208 changed the title It now uses config-rs for configuration management instead of hard coded values Build config-rs for configuration management Mar 10, 2025
@Harshith-2208 Harshith-2208 changed the base branch from develop to main March 10, 2025 19:55
@Harshith-2208
Copy link
Author

Done with rebase and resolving conflicts and also shortened commit message as well as PR title

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.

Use config-rs for configuration management
2 participants