You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Besides the usual [dependencies], [dev-dependencies] and [build-dependencies] sections, Cargo allows specifying per-platform dependencies with the following syntax:
[target.'cfg(windows)'.dependencies]
foo = "1.2.3"
[target.bar.dev-dependencies]
bar = "4.5.6"
The general syntax is target.*.(dev-|build-)?dependencies, where the middle part * may represent the platform in arbitrarily complex ways (cfg(), custom target, etc.).
[target.'cfg(any(target_os="android",target_os="dragonfly",target_os="freebsd",target_os="linux"))'.dependencies]
nix = { version = "0.28", features = ["sched"] }
I don't think deps.rs should try to parse the platform part (to report for which platform there are outdated dependencies), but it would be good to report all the target-specific dependencies :)
The text was updated successfully, but these errors were encountered:
i.e. not only are such dependencies not recognized, but they also make the whole Cargo.toml file fail to parse.
Nevermind, it looks like it was a temporary glitch. Reverted back to the original issue title.
gendx
changed the title
Platform-specific dependencies are not shown
Platform-specific dependencies cause an analysis failure for the whole repository
Sep 18, 2024
gendx
changed the title
Platform-specific dependencies cause an analysis failure for the whole repository
Platform-specific dependencies are not shown
Sep 18, 2024
Besides the usual
[dependencies]
,[dev-dependencies]
and[build-dependencies]
sections, Cargo allows specifying per-platform dependencies with the following syntax:The general syntax is
target.*.(dev-|build-)?dependencies
, where the middle part*
may represent the platform in arbitrarily complex ways (cfg()
, custom target, etc.).Currently, such dependencies are not recognized by deps.rs, see this example Cargo.toml:
I don't think deps.rs should try to parse the platform part (to report for which platform there are outdated dependencies), but it would be good to report all the target-specific dependencies :)
The text was updated successfully, but these errors were encountered: