Rusted PackFile Manager - Lib, is a crate with functionality for manipulating different kind of files used by Total War games, and it's the backbone of the RPFM Project. It also manages Game-Specific logic, and Schemas. The file types it can edit are:
For info on how to use it, check the docs, or RPFM's use of them in their repo.