• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

toml-rs / toml / 15494740973
81%

Build:
DEFAULT BRANCH: main
Ran 06 Jun 2025 04:03PM UTC
Jobs 1
Files 107
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Jun 2025 04:01PM UTC coverage: 70.023% (+5.3%) from 64.743%
15494740973

push

github

web-flow
refactor(edit): Switch to `toml_parse` (#922)

We don't expect much difference with this change:
- This helps ensure `toml_parse` is as valid as possible
- This paves the way for `toml` to depend on `toml_parse`, rather than
`toml_edit`
- Error messages are changed
- This unblocks us from offering multiple parse errors at once

The quality of error messages is a mixed bag. Some improved while others
got worse. Overall, the worse ones should be the less common ones.

Despite passing the TOML conformance tests, this is a risky change
- It has less reuse between different parts of the parser, so if any
tests assume a feature is covered by another test, it might not be the
case
- Each layer makes assumptions about validation at the other layers
making auditing difficult

## Performance

To reduce extra jitter from allocators being hammered, I ran each
benchmark on its own. Each benchmark was run about 10 times and I pulled
out the fastest result.

```console
$ cargo bench --bench 0-cargo -- toml::document::2-features
```
before: 738us
after: 686us (-7%)

```console
$ cargo bench --bench 0-cargo -- toml::manifest::2-features
```
before: 646us
after: 589us (-9%)

```console
$ cargo bench --bench 0-cargo -- toml_edit::document::2-features
```
before: 527us
after: 477us (-9%)

```console
$ cargo bench --bench 0-cargo -- toml_edit::manifest::2-features
```
before: 650us
after:593us (-9%)

```console
$ cargo bench --bench 1-map -- toml::document::100
```
before: 75us
after: 57us (-24%)

```console
$ cargo bench --bench 1-map -- toml_edit::document::100
```
before: 63us
after:46us (-27%)

```console
$ cargo bench --bench 2-array -- toml::document::100
```
before: 65us
after:46us (-29%)

```console
$ cargo bench --bench 2-array -- toml_edit::document::100
```
before: 61us
after: 41us (-33%)

572 of 643 new or added lines in 14 files covered. (88.96%)

7 existing lines in 4 files now uncovered.

5487 of 7836 relevant lines covered (70.02%)

8.1 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
77.03
-0.06% crates/toml_edit/src/value.rs
2
66.19
0.54% crates/toml_edit/src/key.rs
6
90.77
0.57% crates/toml_edit/src/parser/mod.rs
8
91.09
-7.46% crates/toml_edit/src/error.rs
9
0.0
crates/toml_edit/src/parser/debug.rs
11
87.83
1.06% crates/toml_edit/src/parser/inline_table.rs
34
84.47
-2.32% crates/toml_edit/src/parser/document.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
66.08
0.0% crates/toml_edit/src/item.rs
1
52.7
-1.35% crates/toml_edit/src/raw_string.rs
2
74.07
-1.85% crates/toml_edit/src/array.rs
3
42.39
-1.09% crates/toml_edit/src/inline_table.rs
Jobs
ID Job ID Ran Files Coverage
1 15494740973.1 06 Jun 2025 04:03PM UTC 107
70.02
GitHub Action Run
Source Files on build 15494740973
  • Tree
  • List 107
  • Changed 25
  • Source Changed 0
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 84a163cc on github
  • Prev Build on main (#15493623419)
  • Next Build on main (#15497262342)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc