Consuming Rust API

How should I consume the client API as a library in Rust, in a dependant package?

In Cargo.toml, I tried using:

[dependencies.libra-client]
package = "client"
git = "https://github.com/libra/libra"

That seems to fail.

2 Likes

I don’t think you can do it like that, its an api for cli commands, the client_proxy contains the functions that you need to call. Also most of them requires more parameters, where the first one is the cli command es. [balance, address]. grpc_client contains the actual methods. I’m following this post if someone already played with it and can share his thoughts