mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-05 19:16:24 +01:00
chore(cargo): compilation without local overrides
Also checked in code for groupsmigration to allow others to test it simply by checking out the right commit.
This commit is contained in:
@@ -25,6 +25,4 @@ cargo:
|
||||
keywords: [protocol, web, api]
|
||||
dependencies:
|
||||
- url = "*"
|
||||
- serde = ">= 0.3.0"
|
||||
- serde_macros = "*"
|
||||
- json-tools = ">= 0.3.0"
|
||||
|
||||
@@ -27,7 +27,9 @@ cargo:
|
||||
is_executable: YES
|
||||
dependencies:
|
||||
- strsim = "*"
|
||||
- yup-hyper-mock = "*"
|
||||
- serde = ">= 0.3.0"
|
||||
- serde_macros = "*"
|
||||
- clap = "*"
|
||||
- |
|
||||
[dependencies.yup-hyper-mock]
|
||||
version = "*"
|
||||
git = "https://github.com/Byron/yup-hyper-mock"
|
||||
rev = "ee56de4dead136b3ca5a3eda6ca7057f9074e261"
|
||||
|
||||
@@ -17,14 +17,30 @@ keywords = ["groupsmigration", "google", "cli"]
|
||||
name = "groupsmigration1"
|
||||
|
||||
[dependencies]
|
||||
hyper = ">= 0.4.0"
|
||||
mime = "*"
|
||||
yup-oauth2 = "*"
|
||||
strsim = "*"
|
||||
yup-hyper-mock = "*"
|
||||
|
||||
serde = ">= 0.3.0"
|
||||
serde_macros = "*"
|
||||
strsim = "*"
|
||||
clap = "*"
|
||||
[dependencies.yup-hyper-mock]
|
||||
version = "*"
|
||||
git = "https://github.com/Byron/yup-hyper-mock"
|
||||
rev = "ee56de4dead136b3ca5a3eda6ca7057f9074e261"
|
||||
|
||||
|
||||
# Needed for latest fix in macros !
|
||||
[dependencies.hyper]
|
||||
version = ">= 0.4.0"
|
||||
git = "https://github.com/hyperium/hyper"
|
||||
rev = "871f37a5605d433e5699ed2f16631001d86d7805"
|
||||
|
||||
# to adapt to hyper changes ...
|
||||
[dependencies.yup-oauth2]
|
||||
version = "*"
|
||||
git = "https://github.com/Byron/yup-oauth2"
|
||||
rev = "94d5b7c2cac02ad67da8504504364b3081a9a866"
|
||||
|
||||
|
||||
[dependencies.google-groupsmigration1]
|
||||
path = "../groupsmigration1"
|
||||
|
||||
@@ -13,6 +13,15 @@ If data-structures are requested, these will be returned as pretty-printed JSON,
|
||||
Everything else about the *Groups Migration* API can be found at the
|
||||
[official documentation site](https://developers.google.com/google-apps/groups-migration/).
|
||||
|
||||
# Downloads
|
||||
|
||||
You can download the pre-compiled 64bit binaries for the following platforms:
|
||||
|
||||
*  [ubuntu](http://dl.byronimo.de/google.rs/cli/0.2.0/ubuntu/groupsmigration1.tar.gz)
|
||||
*  [osx](http://dl.byronimo.de/google.rs/cli/0.2.0/osx/groupsmigration1.tar.gz)
|
||||
|
||||
Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/master/gen/groupsmigration1-cli).
|
||||
|
||||
# Usage
|
||||
|
||||
This documentation was generated from the *Groups Migration* API at revision *20140416*. The CLI is at version *0.2.0*.
|
||||
|
||||
@@ -61,9 +61,11 @@ impl<'n, 'a> Engine<'n, 'a> {
|
||||
}
|
||||
}
|
||||
if !found {
|
||||
err.issues.push(CLIError::UnknownParameter(key.to_string(),
|
||||
Vec::new() + &self.gp + &[]
|
||||
));
|
||||
err.issues.push(CLIError::UnknownParameter(key.to_string(),
|
||||
{let mut v = Vec::new();
|
||||
v.extend(self.gp.iter().map(|v|*v));
|
||||
v.extend([].iter().map(|v|*v));
|
||||
v } ));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,10 +15,22 @@ keywords = ["groupsmigration", "google", "protocol", "web", "api"]
|
||||
|
||||
|
||||
[dependencies]
|
||||
hyper = ">= 0.4.0"
|
||||
mime = "*"
|
||||
yup-oauth2 = "*"
|
||||
url = "*"
|
||||
|
||||
serde = ">= 0.3.0"
|
||||
serde_macros = "*"
|
||||
url = "*"
|
||||
json-tools = ">= 0.3.0"
|
||||
|
||||
# Needed for latest fix in macros !
|
||||
[dependencies.hyper]
|
||||
version = ">= 0.4.0"
|
||||
git = "https://github.com/hyperium/hyper"
|
||||
rev = "871f37a5605d433e5699ed2f16631001d86d7805"
|
||||
|
||||
# to adapt to hyper changes ...
|
||||
[dependencies.yup-oauth2]
|
||||
version = "*"
|
||||
git = "https://github.com/Byron/yup-oauth2"
|
||||
rev = "94d5b7c2cac02ad67da8504504364b3081a9a866"
|
||||
|
||||
|
||||
@@ -668,12 +668,14 @@ impl<'a, A> ResumableUploadHelper<'a, A>
|
||||
if self.delegate.cancel_chunk_upload(&range_header) {
|
||||
return None
|
||||
}
|
||||
match self.client.post(self.url)
|
||||
.header(range_header)
|
||||
.header(ContentType(self.media_type.clone()))
|
||||
.header(UserAgent(self.user_agent.to_string()))
|
||||
.body(&mut section_reader)
|
||||
.send() {
|
||||
// workaround https://github.com/rust-lang/rust/issues/22252
|
||||
let res = self.client.post(self.url)
|
||||
.header(range_header)
|
||||
.header(ContentType(self.media_type.clone()))
|
||||
.header(UserAgent(self.user_agent.to_string()))
|
||||
.body(&mut section_reader)
|
||||
.send();
|
||||
match res {
|
||||
Ok(mut res) => {
|
||||
if res.status == StatusCode::PermanentRedirect {
|
||||
continue
|
||||
|
||||
@@ -23,12 +23,26 @@ name = "${util.program_name()}"
|
||||
% endif
|
||||
|
||||
[dependencies]
|
||||
hyper = ">= 0.4.0"
|
||||
mime = "*"
|
||||
yup-oauth2 = "*"
|
||||
|
||||
serde = ">= 0.3.0"
|
||||
serde_macros = "*"
|
||||
% for dep in cargo.get('dependencies', list()):
|
||||
${dep}
|
||||
% endfor
|
||||
|
||||
# Needed for latest fix in macros !
|
||||
[dependencies.hyper]
|
||||
version = ">= 0.4.0"
|
||||
git = "https://github.com/hyperium/hyper"
|
||||
rev = "871f37a5605d433e5699ed2f16631001d86d7805"
|
||||
|
||||
# to adapt to hyper changes ...
|
||||
[dependencies.yup-oauth2]
|
||||
version = "*"
|
||||
git = "https://github.com/Byron/yup-oauth2"
|
||||
rev = "94d5b7c2cac02ad67da8504504364b3081a9a866"
|
||||
|
||||
% if make.depends_on_suffix is not None:
|
||||
|
||||
<% api_name = util.library_name() %>\
|
||||
|
||||
Reference in New Issue
Block a user