#is it possible to use tokio fs crate with tauri?
8 messages · Page 1 of 1 (latest)
If you're inside tauri commands (https://tauri.app/v1/guides/features/command/) you really only have to make them async and then you can use tokio inside them, simple as that 🤷
yeah this i know, but do i have to explicitly add tokio to my cargo.toml?
yes
and it will work just fine?
yes
oh i see, i thought if i add it explicitly i would accidentally fuck something
nah, as long you don't do the #[tokio::main] thing you're good. and if you do, that's also fine but you need to use https://docs.rs/tauri/latest/tauri/async_runtime/fn.set.html then