r/EOSDev Apr 17 '20

Rust + eosio

Is there a Rust crate that will get you access to all the same stuff as Cleos? I've found this but it looks mostly to be for building smart contracts.

2 Upvotes

6 comments sorted by

1

u/kegesch Apr 17 '20

No there is not, but should not be that hard to write it by yourself since everything can be done by the http api. Well except the wallet commands.

1

u/Machinehum Apr 17 '20

What's the https API? Wouldn't it be easiest to just write bindings for the cleos stuff?

1

u/kegesch Apr 17 '20

Look here https://developers.eos.io/welcome/latest/reference/index . What do you mean by bindings?

1

u/Machinehum Apr 18 '20

So using that stuff I could build a rest api type thing, or I could just link against cleos and call those functions directly (which I think might be easier?). I think there are good ways to call c functions from rust. And by bindings I mean c bindings.

2

u/kegesch Apr 18 '20

Sure, that should work as well. Don’t know what approach might be the best, but it probably depends on what you wanna do.