Description
Attempting to include the flagsmith crate in a project that has a build target of wasm32-wasip1 (or wasm32-wasip2), will cause the build to fail.
Version Information
Reproduction
Cause
flagsmith makes use of the blocking feature of the reqwest crate, as seen here. reqwest cannot be compiled with the blocking feature enabled in async environments (see reqwest issue #891), this means flagsmith cannot be used when targeting wasm32-wasip1.
Desired Outcome
I am admittedly unaware of how important the use of reqwest::blocking is for the flagsmith crate, or if it could be updated to use the non-blocking reqwest client - however that would be the best case scenario.
If that is not possible, adding something to the documentation of flagsmith stating that it cannot be built to target wasm would possibly help someone some time in the future if they are attempting to make use of flagsmith while targeting wasm.
Description
Attempting to include the
flagsmithcrate in a project that has a build target ofwasm32-wasip1(orwasm32-wasip2), will cause the build to fail.Version Information
flagsmith = "~2.0.0"Reproduction
Cause
flagsmithmakes use of theblockingfeature of thereqwestcrate, as seen here.reqwestcannot be compiled with theblockingfeature enabled in async environments (seereqwestissue #891), this meansflagsmithcannot be used when targetingwasm32-wasip1.Desired Outcome
I am admittedly unaware of how important the use of
reqwest::blockingis for theflagsmithcrate, or if it could be updated to use the non-blockingreqwestclient - however that would be the best case scenario.If that is not possible, adding something to the documentation of
flagsmithstating that it cannot be built to targetwasmwould possibly help someone some time in the future if they are attempting to make use offlagsmithwhile targetingwasm.