# apollo-client **Repository Path**: C-BAND/apollo-client ## Basic Information - **Project Name**: apollo-client - **Description**: Rust client for Apollo. - **Primary Language**: Rust - **License**: Unlicense - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 5 - **Created**: 2022-04-22 - **Last Updated**: 2022-04-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Apollo-client [![Rustc Version](https://img.shields.io/badge/rustc-1.39+-lightgray.svg)](https://blog.rust-lang.org/2019/11/07/Rust-1.39.0.html) [![Actions](https://github.com/jmjoy/apollo-client/workflows/Rust/badge.svg?branch=master&event=push)](https://github.com/jmjoy/apollo-client/actions?query=workflow%3ARust+branch%3Amaster+event%3Apush++) [![Crate](https://img.shields.io/crates/v/apollo-client.svg)](https://crates.io/crates/apollo-client) [![API](https://docs.rs/apollo-client/badge.svg)](https://docs.rs/apollo-client) Rust🦀 client for [Apollo](https://github.com/ctripcorp/apollo). Power by Rust `async/await`. ## Installation With [cargo add](https://github.com/killercup/cargo-edit) installed run: ```sh $ cargo add -s apollo-client ``` ## Features 1. Not all features are default, you can read the `[features]` section of [Cargo.toml](https://github.com/jmjoy/apollo-client/blob/master/Cargo.toml) to know all the features. 1. 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"] } ``` 1. 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`. ## Usage You can find some examples in [the examples directory](https://github.com/jmjoy/apollo-client/tree/master/examples). ## License Unlicense.