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

jhheider / edikt / 30142874849
96%

Build:
DEFAULT BRANCH: main
Ran 25 Jul 2026 03:47AM UTC
Jobs 1
Files 47
Run time 1min
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

25 Jul 2026 03:47AM UTC coverage: 95.913% (-0.09%) from 96.001%
30142874849

push

github

web-flow
feat(parser): hyphenated bare keys on an assignment target (#62)

`.dev-dependencies.serde_json = "1"` now works without quoting.

The insight is that an assignment target must be a path, so subtraction
cannot occur there. That removes the ambiguity that forces quoting
everywhere else: in this one position a hyphen between two identifier
characters is unambiguously part of the key, so edikt can parse it
instead of asking people to quote the most common key in a Cargo.toml.

Purely additive. Every expression this accepts previously failed, since
a subtraction on the left of `=` was never legal. `try_assign_target`
parses speculatively and rewinds on any miss, so no non-assignment
expression can parse differently than before, and joining requires the
tokens to abut, so `.a - b` is still an operator.

This replaces the old `reject_hyphen_key_lhs` diagnostic for the shapes
it can now parse. That check stays for LHS shapes the path parser cannot
handle (a pipe, a parenthesized expression), where naming the cause
still beats failing later with "left side of an assignment must be a
path".

Queries are a different matter and are left alone: `.total-length` is a
legitimate subtraction of the `length` builtin, so a hyphen there cannot
be guessed at. Those keep needing `."dev-dependencies"`. What is new is
that a query whose parse *fails* now says why: `.dev-dependencies.serde_json`
used to die at the `.` after `dependencies` with "unexpected trailing
token `.`", which named neither the hyphen nor the fix, and now gets the
same message the LHS check produces.

Found by dogfooding edikt on a real Cargo.toml edit from another repo,
where the old error was opaque enough that I worked around it twice
instead of reading it.


Claude-Session: https://claude.ai/code/session_016wrSiZfmH1jnLESCR41Xzw

Co-authored-by: Claude <noreply@anthropic.com>

192 of 197 new or added lines in 1 file covered. (97.46%)

12 existing lines in 1 file now uncovered.

10701 of 11157 relevant lines covered (95.91%)

93.21 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
93.01
-0.84% crates/edikt-core/src/parser.rs

Coverage Regressions

Lines Coverage ∆ File
12
93.01
-0.84% crates/edikt-core/src/parser.rs
Jobs
ID Job ID Ran Files Coverage
1 30142874849.1 25 Jul 2026 03:47AM UTC 47
95.91
GitHub Action Run
Source Files on build 30142874849
  • Tree
  • List 47
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30142874849
  • 688dae26 on github
  • Prev Build on main (#29804246149)
  • Next Build on main (#30144730858)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc