Size

An async generated Future (tree) is “the perfectly sized stack”, with everything it needs across yields.

The lint large_futures checks for such sizes, as they can become unexpectedly large. You’ll have to enable the lint manually as it’s in the group clippy::pedantic.

See examples/src/bin/large-future.rs for an example. To examine the warning, in the “examples” directory, execute:

cargo clippy -- -W clippy::pedantic