Skip to content

fix!: Clean up exposed features#974

Merged
epage merged 5 commits intotoml-rs:mainfrom
epage:features
Jun 27, 2025
Merged

fix!: Clean up exposed features#974
epage merged 5 commits intotoml-rs:mainfrom
epage:features

Conversation

@epage
Copy link
Member

@epage epage commented Jun 27, 2025

These features are not pulling there weight, only reducing parse time by about 3%. I left them on toml_parse for now because the API is lower level and someone may care. By doing this we remove risk and simplify the code. This is especially helpful for toml_edit because performance will matter less with toml covering more use cases.

Closes #949

BREAKING CHANGE: Removed toml_edit perf feature

BREAKING CHANGE: Replaced InternalString with String

epage added 5 commits June 27, 2025 15:37
This offers about a 3% parse improvement which doesn't seem worth the
complexity of directly exposing.
This offers about a 3% parse improvement which doesn't seem worth the
complexity of directly exposing.
With the shift from `toml_edit` to `toml`, the complexity for this isn't
needed anymore as performance is less of a priorty.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 15935797184

Details

  • 5 of 8 (62.5%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 69.34%

Changes Missing Coverage Covered Lines Changed/Added Lines %
crates/toml_edit/src/inline_table.rs 1 2 50.0%
crates/toml_edit/src/raw_string.rs 2 4 50.0%
Totals Coverage Status
Change from base Build 15934644120: 0.3%
Covered Lines: 6579
Relevant Lines: 9488

💛 - Coveralls

@epage epage enabled auto-merge June 27, 2025 21:04
@epage epage merged commit d64add0 into toml-rs:main Jun 27, 2025
17 checks passed
@epage epage deleted the features branch June 27, 2025 21:11
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.

2 participants