You need to enable an extra feature in tokio to be able to use tokio::main.
Try adding the full feature to the tokio dependency in your Cargo.toml file:
[dependencies]
tokio = { version = "0.2.22", features = ["full"] }
This also applies to later versions of Tokio.