ramon
ramon9mo ago

convex-rs but only the base client and dependencies?

Hi! Is there a way to pass a flag to the convex rust crate to only include the base client and sync features of tokio?
3 Replies
nipunn
nipunn9mo ago
There is not - but you are welcome to clone it and change the root Cargo.toml and work with that. Currently it shows
tokio = { features = [ "full" ], version = "1" }
tokio = { features = [ "full" ], version = "1" }
You can change the features and see what you can get compiling. let us know what you get working - perhaps there's an opportunity to upstream it to convex-rs
nipunn
nipunn9mo ago
I was able to get it to compile with this in dependencies (of convex-rs)
tokio = { features = [ "rt" ], version = "1" }
tokio = { features = [ "rt" ], version = "1" }
And this in dev-dependencies (of convex-rs)
tokio = { features = [ "rt", "macros", "rt-multi-thread" ], version = "1" }
tokio = { features = [ "rt", "macros", "rt-multi-thread" ], version = "1" }
https://github.com/get-convex/convex-rs/pull/2 Try it out and see if that works for you.
ramon
ramonOP9mo ago
yea I was going down this route! thanks

Did you find this page helpful?