Expand description
§Configuration Parsing
Parses .bumpversion.toml configuration strings as used by bumpversion,
bump2version, and bump-my-version. Fully no_std + alloc: the
filesystem helper parse_config_file requires the std feature.
§Multiline Values
Multi-line values are written with indented continuation lines:
[bumpversion:file:CHANGELOG.md]
search = ## {current_version}
release notes
more notes
replace = ## {new_version}Structs§
- Bump
Config - Top-level configuration read from
.bumpversion.toml. - File
Config - Per-file search/replace configuration parsed from a
[bumpversion:file:PATH]section. - Part
Config - Per-version-part configuration, parsed from a
[bumpversion:part:NAME]section.
Constants§
- DEFAULT_
MESSAGE - Default commit message template.
- DEFAULT_
PARSE - Default parse regex used when none is provided in the config.
- DEFAULT_
SERIALIZE - Default serialise format used when none is provided.
Functions§
- parse_
config - Parses a
.bumpversion.tomlconfiguration string into aBumpConfig. - parse_
config_ file std - Reads and parses a
.bumpversion.tomlfile from disk.