-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
292: Migrate to 2018 edition r=ordian a=DCjanus There was function `get_with_timeout`, re-create a client each time this function is called, and "timeout" always 'default', I merged these two functions and reuse reqwest::Client to reuse TCP connection. Other mirror change: + move to 2018 edition + work with rustfmt Recommended review way: commit by commit. Co-authored-by: DCjanus <[email protected]>
- Loading branch information
Showing
17 changed files
with
160 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
error_chain!{ | ||
error_chain! { | ||
errors { | ||
/// Failed to fetch crate from crates.io | ||
FetchVersionFailure { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
//! Show and Edit Cargo's Manifest Files | ||
#![cfg_attr(test, allow(dead_code))] | ||
#![warn( | ||
missing_docs, missing_debug_implementations, missing_copy_implementations, trivial_casts, | ||
trivial_numeric_casts, unsafe_code, unstable_features, unused_import_braces, | ||
missing_docs, | ||
missing_debug_implementations, | ||
missing_copy_implementations, | ||
trivial_casts, | ||
trivial_numeric_casts, | ||
unsafe_code, | ||
unstable_features, | ||
unused_import_braces, | ||
unused_qualifications | ||
)] | ||
|
||
extern crate cargo_metadata; | ||
extern crate env_proxy; | ||
#[macro_use] | ||
extern crate error_chain; | ||
extern crate regex; | ||
extern crate reqwest; | ||
extern crate semver; | ||
extern crate serde; | ||
#[macro_use] | ||
extern crate serde_derive; | ||
extern crate serde_json; | ||
extern crate termcolor; | ||
extern crate toml_edit; | ||
|
||
mod crate_name; | ||
mod dependency; | ||
mod errors; | ||
mod fetch; | ||
mod manifest; | ||
|
||
pub use crate_name::CrateName; | ||
pub use dependency::Dependency; | ||
pub use errors::*; | ||
pub use fetch::{get_crate_name_from_github, get_crate_name_from_gitlab, get_crate_name_from_path, | ||
get_latest_dependency}; | ||
pub use manifest::{find, LocalManifest, Manifest}; | ||
pub use crate::crate_name::CrateName; | ||
pub use crate::dependency::Dependency; | ||
pub use crate::errors::*; | ||
pub use crate::fetch::{ | ||
get_crate_name_from_github, get_crate_name_from_gitlab, get_crate_name_from_path, | ||
get_latest_dependency, | ||
}; | ||
pub use crate::manifest::{find, LocalManifest, Manifest}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.