Error 404 when using the `.` syntax of toml.
DragonDev1906 opened this issue · 1 comments
Describe the bug
When dependencies are specified using the "." format (see below, which is valid toml and recognized by cargo), an error Error:statusCode=404
is shown instead of whether the dependency is up-to-date.
[dependencies]
smoldot.version = "0.17.0"
To Reproduce
Steps to reproduce the behavior:
- Create a cargo project
- Add any dependency in this format instead of just
smoldot = "0.17.0"
(one way to add additional fields in a separate line)
Expected behavior
The up-to-date info (checkbox) to show behind this line instead of an error.
Additional Context
I am aware that dependencies can be specified on multiple lines with the following syntax (which has other benefits over the "." format):
[dependencies.smoldot]
version = "0.17.0"
In this case, I guess you could just skip .version
and it would be the same. However, this issue applies to things like .path
too.
I.e. this gives red !!!:
[workspace.dependencies]
my_package.path = "my_package"
and this is gives no red marks:
[workspace.dependencies]
my_package = { path = "my_package" }
but both are valid.