Skip to content
Snippets Groups Projects

Replace deprecated methods in config

Merged Vincent Lafeychine requested to merge config-deprecated into main

This MR replaces the deprecated Config::set method by using ConfigBuilder::add_source on the previously built configuration.

Also, since rustc is single-threaded, lazy_static! + RwLock has been replaced by thread_local! + RefCell.


Default features of config have also been disabled, removing 32 unused crate dependencies from the final build.


Note that the write_setting currently overrides the previous configuration rather than merging it (hence, the fix name before the commit name).

Edited by Vincent Lafeychine

Merge request reports

Pipeline #102439 passed

Pipeline passed for e95ded12 on config-deprecated

Approved by

Merged by Lennard GäherLennard Gäher 9 months ago (May 29, 2024 9:29am UTC)

Merge details

  • Changes merged into main with e95ded12.
  • Deleted the source branch.
  • Auto-merge enabled

Pipeline #102442 passed

Pipeline passed for e95ded12 on main

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading