Skip to content

Adds a Rust settings reader for pushpin.conf - #48469

Open
serra-fastly wants to merge 6 commits into
mainfrom
serra/rust-settings-loader
Open

serra-fastly wants to merge 6 commits into
mainfrom
serra/rust-settings-loader

Conversation

@serra-fastly

@serra-fastly serra-fastly commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

First PR for porting Settings from C++ to Rust

  • Adds a Rust reader for pushpin.conf and the file it includes
  • Parses with rust-ini

Fixed bugs:

  • Lines without = now error instead of being silently skipped
  • Duplicate keys and repeated sections now error instead of merging
  • Keys above the first section now error instead of being ignored
  • Invalid numbers and ports now error instead of silently becoming 0
  • tcp:// addresses without a valid port now error
  • Port offset now also shifts IPv6 tcp:// addresses

Tested locally, since nothing calls it yet. The next PR will switch the handler over to it (which tests this code as well)

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