Currently it gives
error: manifest path `/home/matklad/projects/vulkano/Cargo.toml` is a virtual manifest, but this command requires running against an actual package in this workspace
Ideally it should return the info in the same format as metadata command for the non-virtual manifest. The only obstacle seems to be the root node in the resolve.
And perhaps for any package that is a part of the workspace cargo metadata should indicate it.