版本发布 5
NOTE: v1.21.2 was yanked because of #146 . Users should upgrade to v1.21.3 . ## Features - #126 Support key with leading whitespaces ```ini # Keys in general section can have leading whitespaces KeyWith2LeadingSpace=Value [Section] KeyWith3LeadingSpace=Value ``` ## Bug Fixes - #146 Fixed sections that are indented are parsed as keys, introduced from v1.21.2. ```ini # Section that have 2 leading whitespaces indentation [Section] Key=Value ``` ## What's Changed * Fix #146: section headers with leading whitespace are parsed as expected by @prestomation in https://github.com/zonyitoo/rust-ini/pull/147 **Full Changelog**: https://github.com/zonyitoo/rust-ini/compare/v0.21.2...v0.21.3
## What's Changed * Deduplicate eof error handling by @GnomedDev in https://github.com/zonyitoo/rust-ini/pull/127 * #128 Add/Allow duplicate properties by @RouHim in https://github.com/zonyitoo/rust-ini/pull/129 * Restrict lifetimes of SectionSetter methods by @rikyborg in https://github.com/zonyitoo/rust-ini/pull/135 ## New Contributors * @RouHim made their first contribution in https://github.com/zonyitoo/rust-ini/pull/129 * @rikyborg made their first contribution in https://github.com/zonyitoo/rust-ini/pull/135 **Full Changelog**: https://github.com/zonyitoo/rust-ini/compare/v0.21.0...v0.21.1
## What's Changed * Add iter_mut() and into_iter() to Properties by @arucil in https://github.com/zonyitoo/rust-ini/pull/118 * Use a Cow<'static, str> for ParseError by @GnomedDev in https://github.com/zonyitoo/rust-ini/pull/121 * Updating README usage version to 0.20 by @BigBallard in https://github.com/zonyitoo/rust-ini/pull/125 * Fix clippy warnings by @GnomedDev in https://github.com/zonyitoo/rust-ini/pull/120 * Add inline(never) to Parser::error by @GnomedDev in https://github.com/zonyitoo/rust-ini/pull/122 * Avoid reallocating for trimming by @GnomedDev in https://github.com/zonyitoo/rust-ini/pull/124 ## New Contributors * @arucil made their first contribution in https://github.com/zonyitoo/rust-ini/pull/118 * @GnomedDev made their first contribution in https://github.com/zonyitoo/rust-ini/pull/121 * @BigBallard made their first contribution in https://github.com/zonyitoo/rust-ini/pull/125 **Full Changelog**: https://github.com/zonyitoo/rust-ini/compare/v0.20.0...v0.21.0
## What's Changed * Fix clippy warnings by @crapStone in https://github.com/zonyitoo/rust-ini/pull/110 * Add support for custom key-value separator in nameless sections. by @LostSnail42 in https://github.com/zonyitoo/rust-ini/pull/112 * Update ordered-multimap dependency by @loewenheim in https://github.com/zonyitoo/rust-ini/pull/115 ## New Contributors * @crapStone made their first contribution in https://github.com/zonyitoo/rust-ini/pull/110 * @LostSnail42 made their first contribution in https://github.com/zonyitoo/rust-ini/pull/112 * @loewenheim made their first contribution in https://github.com/zonyitoo/rust-ini/pull/115 **Full Changelog**: https://github.com/zonyitoo/rust-ini/compare/v0.19.0...v0.20.0
## What's Changed * Update README.rst by @Zamiell in https://github.com/zonyitoo/rust-ini/pull/87 * Don't panic (on general section for empty ini) by @sirhcel in https://github.com/zonyitoo/rust-ini/pull/88 * Fix typo by @SebastienGllmt in https://github.com/zonyitoo/rust-ini/pull/89 * Fix failing test when building with `--all-features` by @joshuachp in https://github.com/zonyitoo/rust-ini/pull/92 * Add configurable separator by @2m in https://github.com/zonyitoo/rust-ini/pull/93 * Fix reported line/column numbers in error message by @Chocobo1 in https://github.com/zonyitoo/rust-ini/pull/95 * Add test case for ParseError line/column numbers by @Chocobo1 in https://github.com/zonyitoo/rust-ini/pull/97 * Skip over tab characters before comment delimiter by @Chocobo1 in https://github.com/zonyitoo/rust-ini/pull/98 * fix: CI on a supported platform by @ryanwohara in https://github.com/zonyitoo/rust-ini/pull/99 * Improve test coverage for escape_str() function by @rhi-gray in https://github.com/zonyitoo/rust-ini/pull/102 * bump ordered-multimap to 0.6 by @xxchan in https://github.com/zonyitoo/rust-ini/pull/103 ## New Contributors * @Zamiell made their first contribution in https://github.com/zonyitoo/rust-ini/pull/87 * @sirhcel made their first contribution in https://github.com/zonyitoo/rust-ini/pull/88 * @SebastienGllmt made their first contribution in https://github.com/zonyitoo/rust-ini/pull/89 * @joshuachp made their first contribution in https://github.com/zonyitoo/rust-ini/pull/92 * @2m made their first contribution in https://github.com/zonyitoo/rust-ini/pull/93 * @Chocobo1 made their first contribution in https://github.com/zonyitoo/rust-ini/pull/95 * @ryanwohara made their first contribution in https://github.com/zonyitoo/rust-ini/pull/99 * @rhi-gray made their first contribution in https://github.com/zonyitoo/rust-ini/pull/102 * @xxchan made their first contribution in https://github.com/zonyitoo/rust-ini/pull/103 **Full Changelog**: https://github.com/zonyitoo/rust-ini/compare/v0.18.0...v0.19.0