diff options
author | Vincent Ambo <mail@tazj.in> | 2019-02-26T17·00+0100 |
---|---|---|
committer | Vincent Ambo <mail@tazj.in> | 2019-02-26T17·00+0100 |
commit | 481825672ef5396c0c1e10adcad412a34b3488ef (patch) | |
tree | 9babda2d68fdb80b818422444969f18608e85c48 /src/lib.rs | |
parent | a039908fc4696070936549304586af65a272cc12 (diff) |
feat: Re-export the `curl::init` method
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs index 978f21c6ad24..03baa127675a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -59,6 +59,13 @@ //! request/response bodies using `serde_json`. This feature adds a //! dependency on the `serde` and `serde_json` crates. //! +//! ## Initialisation +//! +//! It is recommended to call the underlying `curl::init` method +//! (re-exported as `crimp::init`) when launching your application to +//! initialise the cURL library. This is not required, but will +//! otherwise occur the first time a request is made. +//! //! [cURL Rust bindings]: https://docs.rs/curl //! [reqwest]: https://docs.rs/reqwest //! [file an issue]: https://github.com/tazjin/crimp/issues @@ -68,6 +75,8 @@ extern crate curl; #[cfg(feature = "json")] extern crate serde; #[cfg(feature = "json")] extern crate serde_json; +pub use curl::init; + use curl::easy::{Auth, Easy, Form, List, ReadError}; use std::collections::HashMap; use std::io::Write; |