I currently working with wasm on one of my personal projects. I'm would like to use serenity to get access to the discord API response models, but currently the library can not the compiled to wasm, because the tokio/fs feature is not supported in that target.
I went ahead and removed the need to include that feature by default. By the looks of it, it only was used with the builder and model features, so I conditionally added tokio/fs back when those features are being used (the model feature already depends on builder so that doesn't need to be changed).
I currently working with wasm on one of my personal projects. I'm would like to use
serenity
to get access to the discord API response models, but currently the library can not the compiled to wasm, because thetokio/fs
feature is not supported in that target.I went ahead and removed the need to include that feature by default. By the looks of it, it only was used with the
builder
andmodel
features, so I conditionally addedtokio/fs
back when those features are being used (themodel
feature already depends onbuilder
so that doesn't need to be changed).