fuels-rs icon indicating copy to clipboard operation
fuels-rs copied to clipboard

Possible to make `fuels_core` WASM compatible?

Open ra0x3 opened this issue 1 year ago • 2 comments

  • On the indexer team we have a really really old bug/hack that we'd like to finally fix
    • https://github.com/FuelLabs/fuel-indexer/issues/408
  • The issue is related to some dependency that the indexer uses, pulling in fuel-tx default features
  • On the indexer, we always specify default-features = false for fuel-tx
  • However, due to cargo workspace dependency unification if some other dependency pulls in fuel-tx default features, it doesn't matter that the indexer doesn't directly import fuel-tx default features
    • The default features will still be pulled in, even if any indexer dependency is pulling in the default features
  • As of now, the culprit seems to be fuels_core
  • Is it possible to make fuels_core not pull in these default features from fuel-tx?
  • We won't be able to fix our issue/hack ☝🏽 until this is possible
  • Without fixing this hack, users won't be able to use WASM-friendly crates such as tai64 or chrono - so there's user impact

CC @digorithm @segfault-magnet

ra0x3 avatar Jun 14 '23 14:06 ra0x3

~~blocked by: https://github.com/FuelLabs/fuel-vm/issues/443~~

hal3e avatar Jun 18 '23 09:06 hal3e

Now it is blocked by: https://github.com/FuelLabs/fuel-core/issues/1370

xgreenx avatar Sep 27 '23 11:09 xgreenx