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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// #![deny(warnings)]
// #![warn(rust_2018_idioms)]
//! An async Rust library implementation to interact with the
//! [Wistia API](https://wistia.com/support/developers).
//!
//! ## Example
//!
//! ```no_run
//! use rust_wistia::UrlUploader;
//!
//! #[tokio::main]
//! async fn main() -> std::result::Result<(), Box<dyn std::error::Error + Send + Sync>> {
//! let res = UrlUploader::new("my-url-link")?
//! .name("My Video Name")
//! .send()
//! .await?;
//!
//! println!("Response: {res:#?}");
//!
//! // Print out some useful attributes
//! println!("Video ID: {}", res.hashed_id);
//!
//! Ok(())
//! }
//! ```
//!
//! ## Dependencies and Features
//!
//! This library uses only the minimum required dependencies, in order
//! to keep the overall size small. This crate uses [hyper] and
//! [hyper-rustls] internally, to make HTTPS requests to the Wistia API.
//!
//! While `hyper-rustls` was chosen as the default TLS implementation
//! because it works without issue when cross-compiling for the
//! **x86_64-unknown-linux-musl** target as is common for [AWS Lambda][]
//! deployments, it is still possible to instead use the native [`hyper-tls`][]
//! implementation, which relies on OpenSSL.
//!
//! To do this, disable the default "rust-tls" feature and enable the "native-tls" feature:
//!
//! ```toml
//! [dependencies]
//! rust-wistia = { version = "0.1", default-features = false, features = ["native-tls", "logging", "serde-std"] }
//! ```
//!
//! [hyper]: https://docs.rs/hyper
//! [hyper-rustls]: https://docs.rs/hyper-rustls
//! [`hyper-tls`]: https://docs.rs/hyper-tls
//! [AWS Lambda]: https://docs.aws.amazon.com/sdk-for-rust/latest/dg/lambda.html
//!
pub use *;
pub use *;