INI file parser that deals with multiple names & sections?

Looking over the available parsers for ini format files, all of them assume that a section name is unique in a file, and that a value name is unique in a section. The ini files I need to parse does both of these (unusual) things.

Any chance someone has a parser that will handle such files?

It sounds like you are given some INI files and don't have choice in their language. But if that's not the case, look into using TOML

Yup, I've got the files and have to deal with them as is.

A large part of the project at hand is replacing these with parsed rust data structures. But I really need to translate the existing files in the code.