Skip to content

Conversation

@nikollamalic
Copy link
Contributor

@nikollamalic nikollamalic commented Dec 17, 2025

Small addition to help check if a specific key exists in the config file.

Closes #773

@nikollamalic nikollamalic changed the title feat(config): add StdConfig::exists method to check if key exists feat: add StdConfig::exists method to check if key exists Dec 17, 2025
@nikollamalic
Copy link
Contributor Author

Hey @0xrusowsky friendly ping,

This is adding two new simple methods to StdConfig which check if a specific key exists inside the configuration cache.

It is really really helpful addition which helps us make the transition to using Config since get will revert when specific keys are not found.

Appreciate the work done on this and looking forward to your feedback!
Nikola, infiniFi

DaniPopes
DaniPopes previously approved these changes Dec 22, 2025
Copy link
Member

@DaniPopes DaniPopes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@DaniPopes DaniPopes enabled auto-merge (squash) December 22, 2025 07:11
@DaniPopes DaniPopes merged commit 7480044 into foundry-rs:master Dec 22, 2025
25 checks passed
@nikollamalic nikollamalic deleted the feat/std-config-exists-method branch December 22, 2025 16:58
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.

feat(config): add StdConfig::exists method to check if key exists

3 participants