This commit is contained in:
2020-01-09 01:53:07 +08:00
parent b58af4400d
commit d102a95f1d
3 changed files with 33 additions and 22 deletions

View File

@@ -5,5 +5,12 @@ Simple Alibaba Cloud OSS Client in Rust
```rust
let oss_client = OSSClient::new("<endpoint>", "<access_key_id>", "<access_key_secret>");
oss_cleint.put_file_content("<bucket>", "helloworld.txt", "hello world!")?;
```
oss_cleint.put_file_content("<bucket>", "helloworld.txt", "hello world!").await?;
```
#### Changelog
* v0.2.0
* Use `async/await` by `reqwest v0.10.0`