JakeChampion opened PR #3794 from configure-fuel-issue-3779 to main:
This flag is expected to be used with the
--consume-fuelflag.The way this has been implemented is by:
adding a
fuel_amountu64 field to theTunablesstruct with a default
value of 0.adding a
Config::fuel_amountmethod, which setsfuel_amounton it's
tunablesfield.updating
Store::newto callStoreOpaque::add_fuelifconsume_fuelis
true.The
fuelexamples to use the newConfig::fuel_amountinstead of calling
Store::add_fueldirectlyI've only added a test for the CLI flag and nothing else as I could not locate
tests for Tunables, Config, or Store.This should resolve https://github.com/bytecodealliance/wasmtime/issues/3779
JakeChampion closed without merge PR #3794.
Last updated: Dec 13 2025 at 21:03 UTC