Skip to content

Update the Toml package (Windows) #685

Description

@jpolstre

Describe the Bug

The Dart parser for TOML, which uses Rinf (toml: 0.14.0, based on the TOML v0.5.0 specification), does not support multiline inline tables (inline tables declared with curly braces { ... } that span more than one line of code).

For example:

image = { version = "0.25.6", default-features = false, features = [
  "jpeg",
  "png",
  "webp"
] } 

When the compiler reads multi-line dependencies, it fails with a parsing error that causes the custom command (cargokit.rule) to return -1.

The temporary solution is to write the dependency on a single line, like this:

image = { version = "0.25.6", default-features = false, features = ["jpeg", "png", "webp"] }

But formatting an app with many dependencies makes maintenance chaotic.

To Reproduce

Steps to reproduce the behavior:

  1. Add a multiline dependency, for example:
image = { version = "0.25.6", default-features = false, features = [
  "jpeg",
  "png",
  "webp"
] } 
  1. try compile

  2. The following error is obtained:

...testapp\build\windows\x64\CMakeFiles\952dbcb344b674e6d704a4c3cb513379\hub.dll.rule;C:\mycode\flutter\v34\tdpv\build\windows\x64\CMakeFiles\ccb533beaca9664a42724c6b4ea637a3\testapp_cargokit.rule" terminada con el código -1. [...testapp\build\windows\x64\plugins\rinf\testapp_cargokit.vcxproj]
Error: Build process failed.

Exited (1).

Additional Context

The error occurs when trying to compile the Windows Version app (11 Pro 64-bit, 25H2, 2009)

Rinf version:
rinf = "8.10.0"

rustc 1.95.0 (59807616e 2026-04-14)

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.44.1, on Microsoft Windows [Versi¢n 10.0.26200.8524], locale es-ES)
[√] Windows Version (11 Pro 64-bit, 25H2, 2009)
[√] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.23)
[√] Connected device (3 available)
[√] Network resources
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions