Is it likely that the STS provider will eventually include the auto refreshing behavior itself? It seems pretty counterintuitive to have to wrap it before getting sensible behavior, but I could see some argument for the current behavior.
Yes, the STS provider should get auto refreshing and caching behavior. Nobody's gotten around to doing that yet. 😄
I think it could be done by using the re-exported rusoto_credential crate from rusoto_core and making some custom code for STS. Making the workaround part of the STS crate so it can be found and used. 👍