Rust🦀 client for Apollo.
Power by Rust async/await
.
With cargo add installed run:
sh
$ cargo add -s apollo-client
Not all features are default, you can read the [features]
section of Cargo.toml to know all the features.
The xml
and yaml
features aren't enable by default, if you have such kind namespace, you should add features
in Cargo.toml
, just like:
toml
apollo-client = { version = "0.5", features = ["yaml", "xml"] }
Or simply enable all features:
toml
apollo-client = { version = "0.5", features = ["full"] }
By default, using curl client isahc
to handle http request, you can switch to hyper
by enable the with-hyper
feature.
toml
apollo-client = { version = "0.5", default-features = false, features = ["with-hyper"] }
Or:
toml
apollo-client = { version = "0.5", default-features = false, features = ["full-hyper"] }
Or specify the Scenario
.
You can find some examples in the examples directory.
Unlicense.