Skip to content

Commit f44b802

Browse files
authored
Merge pull request #3 from qiniu/releases/v0.1.1
Releases/v0.1.1
2 parents 4ce6d29 + e5339cb commit f44b802

File tree

149 files changed

+3695
-663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+3695
-663
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change log
22

3+
## v0.1.1
4+
5+
- 增加 `qiniu-download-manager` 插件负责对象的下载
6+
- 修复了 `Credential::sign_download_url()``lifetime` 参数实现不正确的 bug
7+
- 简化了设置 HTTP 协议的代码
8+
- 优化 HTTP Header 相关接口
9+
310
## v0.1.0
411

512
- 首个正式版本发布

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ members = [
1212
"http-client",
1313
"api-generator",
1414
"apis",
15-
"api-examples",
1615
"objects-manager",
1716
"upload-manager",
17+
"download-manager",
1818
"sdk",
19+
"sdk-examples",
1920
]
2021

2122
[profile.release]

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.PHONY: all build build_release build_test doc doc_test test clean clippy
2-
SUBDIRS := utils credential etag upload-token http http-ureq http-isahc http-reqwest http-client api-generator apis api-examples objects-manager upload-manager sdk
1+
.PHONY: all build build_release build_test doc doc_test test clean clippy publish
2+
SUBDIRS := utils credential etag upload-token http http-ureq http-isahc http-reqwest http-client api-generator apis sdk-examples objects-manager upload-manager download-manager sdk
33

44
all: build doc
55
build:
@@ -33,3 +33,8 @@ clean:
3333
cargo clean
3434
clippy:
3535
cargo +nightly clippy --examples --tests --all-features -- -D warnings --no-deps
36+
publish:
37+
set -e; \
38+
for i in utils/ etag/ credential/ http/ upload-token/ http-isahc/ http-reqwest/ http-ureq/ http-client/ apis/ objects-manager/ upload-manager/ download-manager sdk/ ; do \
39+
(cd $i && cargo publish && sleep 300) || break ; \
40+
done

README.md

Lines changed: 53 additions & 56 deletions
Large diffs are not rendered by default.

api-generator/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "qiniu-api-generator"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
authors = ["Rong Zhou <[email protected]>", "Shanghai Qiniu Information Technologies Co., Ltd."]
55
edition = "2021"
66
license = "MIT"
@@ -28,8 +28,8 @@ walkdir = "2.3.2"
2828

2929
[dev-dependencies]
3030
serde_json = "1.0.68"
31-
qiniu-http = { version = "0.1.0", path = "../http" }
32-
qiniu-http-client = { version = "0.1.0", path = "../http-client" }
33-
qiniu-upload-token = { version = "0.1.0", path = "../upload-token" }
34-
qiniu-utils = { version = "0.1.0", path = "../utils" }
31+
qiniu-http = { version = "0.1.1", path = "../http" }
32+
qiniu-http-client = { version = "0.1.1", path = "../http-client" }
33+
qiniu-upload-token = { version = "0.1.1", path = "../upload-token" }
34+
qiniu-utils = { version = "0.1.1", path = "../utils" }
3535
indexmap = "1.7.0"

api-generator/src/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ impl ApiDetailedDescription {
376376
#[doc = "添加 HTTP 请求头"]
377377
pub fn set_header(
378378
&mut self,
379-
header_name: impl Into<qiniu_http_client::http::HeaderName>,
379+
header_name: impl qiniu_http_client::http::header::IntoHeaderName,
380380
header_value: impl Into<qiniu_http_client::http::HeaderValue>,
381381
) -> &mut Self {
382382
self.0.set_header(header_name, header_value);

apis/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "qiniu-apis"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
authors = ["Rong Zhou <[email protected]>", "Shanghai Qiniu Information Technologies Co., Ltd."]
55
edition = "2021"
66
rust-version = "1.60.0"
@@ -21,8 +21,8 @@ indexmap = "1.7.0"
2121
futures = { version = "0.3.5", optional = true }
2222
async-std = { version = "1.9.0", optional = true }
2323

24-
qiniu-http-client = { version = "0.1.0", path = "../http-client" }
25-
qiniu-utils = { version = "0.1.0", path = "../utils" }
24+
qiniu-http-client = { version = "0.1.1", path = "../http-client" }
25+
qiniu-utils = { version = "0.1.1", path = "../utils" }
2626

2727
[dev-dependencies]
2828
anyhow = "1.0.43"

apis/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@
2424

2525
```toml
2626
[dependencies]
27-
qiniu-apis = { version = "0.1.0", features = ["ureq"] }
27+
qiniu-apis = { version = "0.1.1", features = ["ureq"] }
2828
```
2929

3030
### 启用 Isahc 异步接口
3131

3232
```toml
3333
[dependencies]
34-
qiniu-apis = { version = "0.1.0", features = ["async", "isahc"] }
34+
qiniu-apis = { version = "0.1.1", features = ["async", "isahc"] }
3535
```
3636

3737
### 启用 Reqwest 异步接口
3838

3939
```toml
4040
[dependencies]
41-
qiniu-apis = { version = "0.1.0", features = ["async", "reqwest"] }
41+
qiniu-apis = { version = "0.1.1", features = ["async", "reqwest"] }
4242
```
4343

4444
### 其他功能

apis/src/storage/async_fetch_object.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ impl<'req, B, E> RequestBuilder<'req, B, E> {
442442
#[doc = "添加 HTTP 请求头"]
443443
pub fn set_header(
444444
&mut self,
445-
header_name: impl Into<qiniu_http_client::http::HeaderName>,
445+
header_name: impl qiniu_http_client::http::header::IntoHeaderName,
446446
header_value: impl Into<qiniu_http_client::http::HeaderValue>,
447447
) -> &mut Self {
448448
self.0.set_header(header_name, header_value);

apis/src/storage/batch_ops.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ impl<'req, B, E> RequestBuilder<'req, B, E> {
716716
#[doc = "添加 HTTP 请求头"]
717717
pub fn set_header(
718718
&mut self,
719-
header_name: impl Into<qiniu_http_client::http::HeaderName>,
719+
header_name: impl qiniu_http_client::http::header::IntoHeaderName,
720720
header_value: impl Into<qiniu_http_client::http::HeaderValue>,
721721
) -> &mut Self {
722722
self.0.set_header(header_name, header_value);

0 commit comments

Comments
 (0)