Skip to content

Commit d18625f

Browse files
committed
Add reqwest-trait crate to workspace and rename it
1 parent fcc83db commit d18625f

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

bin/configs/rust-reqwest-trait-petstore.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputSpec: modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml
55
templateDir: modules/openapi-generator/src/main/resources/rust
66
additionalProperties:
77
topLevelApiClient: true
8-
packageName: petstore-reqwest
8+
packageName: petstore-reqwest-trait
99
mockall: true
1010
enumNameMappings:
1111
delivered: shipped
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[workspace]
2-
members = ["hyper/*", "reqwest/*"]
2+
members = ["hyper/*", "reqwest/*", "reqwest-trait/*"]
33
resolver = "2"

samples/client/petstore/rust/reqwest-trait/petstore/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "petstore-reqwest"
2+
name = "petstore-reqwest-trait"
33
version = "1.0.0"
44
authors = ["OpenAPI Generator team and contributors"]
55
description = "This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters."

samples/client/petstore/rust/reqwest-trait/petstore/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Rust API client for petstore-reqwest
1+
# Rust API client for petstore-reqwest-trait
22

33
This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
44

@@ -14,10 +14,10 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat
1414

1515
## Installation
1616

17-
Put the package under your project folder in a directory named `petstore-reqwest` and add the following to `Cargo.toml` under `[dependencies]`:
17+
Put the package under your project folder in a directory named `petstore-reqwest-trait` and add the following to `Cargo.toml` under `[dependencies]`:
1818

1919
```
20-
petstore-reqwest = { path = "./petstore-reqwest" }
20+
petstore-reqwest-trait = { path = "./petstore-reqwest-trait" }
2121
```
2222

2323
## Documentation for API Endpoints

0 commit comments

Comments
 (0)