1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Twitch Helix requests
//!
//! This library offers a list of requests supported by twitch's `Helix`API.
//!
//! Each request is it's it's own submodule, typically following it's url.
//!
//! # Client
//! This library also offers a client to help with the connections.
//! It is not mandatory to use the client, as all requests do not depend
//! on it, however.

// Lints
#![warn(clippy::restriction, clippy::pedantic, clippy::nursery, clippy::cargo)]
// We have fine-grained modules, which causes this to happen often
#![allow(clippy::module_name_repetitions)]
// No need to mark EVERY public function as `inline`
#![allow(clippy::missing_inline_in_public_items)]
// We prefer implicit returns
#![allow(clippy::implicit_return)]
// We shadow variables, as long as they have the same meaning
#![allow(clippy::shadow_reuse)]
// We have fine-grained error types, which are self-explanatory
#![allow(clippy::missing_errors_doc)]
// False positive, we have them all
#![allow(clippy::cargo_common_metadata)]

// Modules
pub mod client;
pub mod request;
pub mod response;
#[macro_use]
pub mod url;

// Exports
pub use client::Client;
pub use request::{HelixRequest, OAuthRequest};
pub use response::{HelixResponse, OAuthResponse};