The configuration for rustflags should not be in the Cargo.toml file, it should be in the file .cargo/config.toml. See the documentation.
rustflags
Cargo.toml
.cargo/config.toml