Our API exposes rand types. E.g. Context.rand() returns a rand::prelude::StdRng of a specific rand version. In order to use some of its functionality, one needs to import the trait Rng. However, if users add the wrong rand dependency to their projects, they might import the wrong trait. I ran into this problem when using our official templates (restatedev/examples@f241113). I think it would be nicer if the restate-sdk crate would re-export the required types/traits for types it exposes from other dependencies.
Our API exposes rand types. E.g.
Context.rand()returns arand::prelude::StdRngof a specificrandversion. In order to use some of its functionality, one needs to import the traitRng. However, if users add the wrongranddependency to their projects, they might import the wrong trait. I ran into this problem when using our official templates (restatedev/examples@f241113). I think it would be nicer if therestate-sdkcrate would re-export the required types/traits for types it exposes from other dependencies.