Skip to content

Commit 1d61f8f

Browse files
committed
feat: regenerate rust sdk with full coverage
1 parent 8b3fe47 commit 1d61f8f

File tree

568 files changed

+24382
-76
lines changed

Some content is hidden

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

568 files changed

+24382
-76
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "uapi-sdk-rust"
3-
version = "0.1.1"
3+
version = "0.1.0"
44
edition = "2021"
55
license = "MIT OR Apache-2.0"
66
description = "UAPI Rust SDK - idiomatic, typed, domain-driven API client."
@@ -23,6 +23,7 @@ thiserror = "1.0"
2323
tracing = "0.1"
2424
url = "2.5"
2525
time = { version = "0.3", features = ["parsing", "formatting"] }
26+
urlencoding = "2.1"
2627

2728
[dev-dependencies]
2829
tokio = { version = "1.39", features = ["macros", "rt-multi-thread"] }

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ cargo add uapi-sdk-rust
1515
```
1616

1717
```rust
18-
use uapi_sdk_rust::Client;
18+
use _::Client;
1919

2020
#[tokio::main]
21-
async fn main() -> Result<(), uapi_sdk_rust::Error> {
21+
async fn main() -> Result<(), _::Error> {
2222
let client = Client::new("");
2323
let result = client.social().get_social_qq_userinfo("10001").await?;
2424
println!("{result:?}");
@@ -70,3 +70,4 @@ async fn main() -> Result<(), uapi_sdk_rust::Error> {
7070
访问 [UApi文档首页](https://uapis.cn/docs/introduction) 并选择任意接口,向下滚动到 **快速启动** 区块即可看到最新的 Rust 示例代码。
7171

7272

73+

internal/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target/
2+
**/*.rs.bk
3+
Cargo.lock

internal/.openapi-generator-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

0 commit comments

Comments
 (0)