Skip to content
This repository was archived by the owner on Oct 6, 2020. It is now read-only.

Commit 7f64987

Browse files
authored
Merge pull request #43 from MindFlavor/streaming_blob
Implemented block blob streaming get
2 parents f87b8cb + 9932ec1 commit 7f64987

30 files changed

+588
-409
lines changed

CHANGELOG.md

Lines changed: 0 additions & 225 deletions
This file was deleted.

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "azure_sdk_for_rust"
3-
version = "0.7.0"
3+
version = "0.7.1"
44
description = "Rust wrappers around Microsoft Azure REST APIs"
55
readme = "README.md"
66
authors = ["Francesco Cogno <[email protected]>", "Max Gortman <[email protected]>", "Dong Liu <[email protected]>"]
@@ -19,19 +19,19 @@ base64 = "0.9.1"
1919
chrono = "0.4.2"
2020
env_logger = "0.5.10"
2121
futures = "0.1.21"
22-
hyper = "0.11.26"
22+
hyper = "0.11.27"
2323
hyper-tls = "0.1.3"
2424
log = "0.4.1"
2525
mime = "0.3.7"
2626
native-tls = "0.1.5"
27-
quick-error = "1.2.1"
28-
serde = "1.0.54"
29-
serde_derive = "1.0.54"
30-
serde_json = "1.0.17"
27+
quick-error = "1.2.2"
28+
serde = "1.0.64"
29+
serde_derive = "1.0.64"
30+
serde_json = "1.0.19"
3131
time = "0.1.40"
32-
tokio-core = "0.1.12"
32+
tokio-core = "0.1.17"
3333
url = "1.7.0"
34-
uuid = "0.6.3"
34+
uuid = "0.6.5"
3535
smallvec = { version = "0.6", features = ["serde"] }
3636

3737
[features]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
[![Crate](https://img.shields.io/crates/v/azure_sdk_for_rust.svg)](https://crates.io/crates/azure_sdk_for_rust) [![cratedown](https://img.shields.io/crates/d/azure_sdk_for_rust.svg)](https://crates.io/crates/azure_sdk_for_rust) [![cratelastdown](https://img.shields.io/crates/dv/azure_sdk_for_rust.svg)](https://crates.io/crates/azure_sdk_for_rust)
77

8-
[![tag](https://img.shields.io/github/tag/mindflavor/AzureSDKForRust.svg)](https://github.com/MindFlavor/AzureSDKForRust/tree/0.7.0)
9-
[![release](https://img.shields.io/github/release/mindflavor/AzureSDKForRust.svg)](https://github.com/MindFlavor/AzureSDKForRust/tree/0.7.0)
10-
[![commitssince](https://img.shields.io/github/commits-since/mindflavor/AzureSDKForRust/0.7.0.svg)](https://img.shields.io/github/commits-since/mindflavor/AzureSDKForRust/0.7.0.svg)
8+
[![tag](https://img.shields.io/github/tag/mindflavor/AzureSDKForRust.svg)](https://github.com/MindFlavor/AzureSDKForRust/tree/0.7.1)
9+
[![release](https://img.shields.io/github/release/mindflavor/AzureSDKForRust.svg)](https://github.com/MindFlavor/AzureSDKForRust/tree/0.7.1)
10+
[![commitssince](https://img.shields.io/github/commits-since/mindflavor/AzureSDKForRust/0.7.1.svg)](https://img.shields.io/github/commits-since/mindflavor/AzureSDKForRust/0.7.1.svg)
1111

1212
![GitHub contributors](https://img.shields.io/github/contributors/mindflavor/AzureSDKForRust.svg)
1313

examples/blob00.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ use std::error::Error;
1313
use futures::future::*;
1414
use tokio_core::reactor::Core;
1515

16-
use azure_sdk_for_rust::storage::{
17-
blob::Blob,
18-
client::Client
19-
};
16+
use azure_sdk_for_rust::storage::{blob::Blob, client::Client};
2017

2118
fn main() {
2219
env_logger::init();

examples/blob01.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ use futures::future::*;
1616
use tokio_core::reactor::Core;
1717

1818
use azure_sdk_for_rust::{
19-
core::lease::{LeaseState, LeaseStatus},
20-
storage::blob::{Blob, BlobType, PUT_OPTIONS_DEFAULT},
21-
storage::client::Client
19+
core::lease::{LeaseState, LeaseStatus}, storage::blob::{Blob, BlobType, PUT_OPTIONS_DEFAULT},
20+
storage::client::Client,
2221
};
2322

2423
fn main() {
@@ -74,7 +73,8 @@ fn code() -> Result<(), Box<Error>> {
7473

7574
trace!("before put");
7675

77-
let future = b.put(&client, &PUT_OPTIONS_DEFAULT, Some(&data[..]))
76+
let future = b
77+
.put(&client, &PUT_OPTIONS_DEFAULT, Some(&data[..]))
7878
.then(move |res| {
7979
println!("{:?}", res);
8080
ok(())

examples/collection.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ use std::error::Error;
1010
use futures::future::*;
1111
use tokio_core::reactor::Core;
1212

13-
use azure_sdk_for_rust::cosmos::{AuthorizationToken, TokenType, Client};
14-
13+
use azure_sdk_for_rust::cosmos::{AuthorizationToken, Client, TokenType};
1514

1615
fn main() {
1716
code().unwrap();
1817
}
1918

20-
2119
// We run a separate method to use the elegant quotation mark operator.
2220
// A series of unwrap(), unwrap() would have achieved the same result.
2321
fn code() -> Result<(), Box<Error>> {
@@ -37,7 +35,6 @@ fn code() -> Result<(), Box<Error>> {
3735
// * This is something worth discussing *
3836
let mut core = Core::new()?;
3937

40-
4138
// This is how you construct an authorization token.
4239
// Remember to pick the correct token type.
4340
// Here we assume master.

examples/container00.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ use futures::future::*;
1111
use tokio_core::reactor::Core;
1212

1313
use azure_sdk_for_rust::storage::{
14-
client::Client,
14+
blob::{Blob, LIST_BLOB_OPTIONS_DEFAULT}, client::Client,
1515
container::{Container, LIST_CONTAINER_OPTIONS_DEFAULT},
16-
blob::{Blob, LIST_BLOB_OPTIONS_DEFAULT}
1716
};
1817

1918
fn main() {

examples/create_delete_database.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ use std::error::Error;
1010
use futures::future::*;
1111
use tokio_core::reactor::Core;
1212

13-
use azure_sdk_for_rust::cosmos::{AuthorizationToken, TokenType, Client};
14-
13+
use azure_sdk_for_rust::cosmos::{AuthorizationToken, Client, TokenType};
1514

1615
fn main() {
1716
code().unwrap();
1817
}
1918

20-
2119
// We run a separate method to use the elegant quotation mark operator.
2220
// A series of unwrap(), unwrap() would have achieved the same result.
2321
fn code() -> Result<(), Box<Error>> {

0 commit comments

Comments
 (0)