Use compiled binary output from forc
to build Rust bindings
#125
Labels
enhancement
New feature or request
forc
to build Rust bindings
#125
Currently, we have a method under
Contract
to compile Sway code:Although that works fine, it adds a dependency on
forc
as a library.fuels-rs
should be language agnostic: it should operate only on the compiled binary and the ABI, both targeting the FuelVM.Recently,
forc
was updated to output the binary data to an output directory.fuels-rs
can leverage that in order to remove the dependency onforc
as a library. Instead of callingforc::build
, take a path to the compiled binary data, the same way that it takes the path to the json ABI file.Then, it would be on the user to use
forc
to generate the compiled binary and the json ABI file, then pass both tofuels-rs
's deploy method and contract instantiation method (i.e.Contract::new()
).The text was updated successfully, but these errors were encountered: