I was working with a workspace where my project structure was as given below,
my project structure
and I found that removing the [package] from the general Cargo.toml seemed to be the solution, for me atleast.