Commit Graph

21 Commits

Author SHA1 Message Date
Matthias Beyer 090dd361fc
Use toml instead of diff for toml code snippets (#743)
Use the toml syntax highlighter and format the code snippets as toml
instead of diff, so users can copy-paste it more easily, without having
to edit out the diff makers (+) by hand when they add the snippets to
their Cargo.toml / etc.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2024-03-19 10:32:04 -07:00
John Vandenberg 51db1278ed
Mention cli and httpmock in README.md (#475)
* Mention cli and httpmock in README.md

* Add fix by @ahirner

Co-authored-by: Alexander Hirner <6055037+ahirner@users.noreply.github.com>

---------

Co-authored-by: Alexander Hirner <6055037+ahirner@users.noreply.github.com>
2024-01-06 09:06:22 -08:00
Everett Pompeii 7b8ef7049a
Fix typo README.md (#512)
Fix `are will`
2023-07-03 16:09:17 -07:00
iliana etaoin 787cc14b64
Move the crate generator to cargo-progenitor (#476)
Co-authored-by: Adam Leventhal <ahl@oxide.computer>
2023-05-17 09:46:17 -07:00
Jakob Klepp b2e1eee042
remove generate_text from build.rs example (#441) 2023-04-26 07:55:49 -07:00
John Vandenberg 91ca1a3125
make README.md build.rs compile (#340) 2023-02-20 16:10:22 -08:00
Adam H. Leventhal 302d281075 mention regress in the README 2023-01-18 14:40:02 -08:00
John Vandenberg 87e01ff32f
add --registry-name and --license (#233) 2023-01-18 00:06:35 -08:00
John Vandenberg 44b5ad695d
allow using published client crate (#246) 2023-01-17 14:24:44 -08:00
John Vandenberg 1ef131a244
Add yaml support (#227) 2023-01-14 08:58:57 -08:00
bnaecker ba189e6323
Add docstrings to the generated Client (#295)
- Add docstring to the `Client`, based on the OpenAPI title and
  description, if provided.
- Add docstrings to the constructors and getters shared by all generated
  clients.
- Update expectorate tests.
- Small typo-fix in README.
2023-01-07 18:05:33 -08:00
Shane Witbeck a90b528497
Just one add, thank you (#85) 2023-01-04 16:46:54 -08:00
bnaecker 61a59d4c8f
Note that futures is also a dep (#294) 2023-01-04 09:29:42 -08:00
liffy 4e2dcc5365
Generate a Client method for Dropshot websocket channels (#183)
Generated methods return `ResponseValue<reqwest::Upgrade`, which may be
passed to a websocket protocol implementation such as
`tokio_tungstenite::WebSocketStream::from_raw_stream(rv.into_inner(), ...)`
for the purpose of implementing against the raw websocket connection, but
may later be extended as a generic to allow higher-level channel message
definitions.

Per the changelog, consumers will need to depend on reqwest 0.11.12 or
newer for HTTP Upgrade support, as well as base64 and rand if any
endpoints are websocket channels:
```
[dependencies]
reqwest = { version = "0.11.12" features = ["json", "stream"] }
base64 = "0.13"
rand = "0.8"
```

Co-authored-by: lif <>
2022-09-28 13:40:07 -07:00
Adam Leventhal 7e5dc6586c
gussy up docs for release (#193)
make TryInto use fully specified as std::convert::TryInto
2022-09-10 17:15:14 -07:00
Adam Leventhal 9b28ac87c6
add an optional builder pattern as well as extension traits for tags when using the builder interface (#86) 2022-07-02 19:09:38 -07:00
Corey Farwell bacaac3db9
Fix macro typo in README (#74) 2022-06-01 18:22:51 -07:00
Adam Leventhal 3cd1eae3f5
improve docs and uuid version handling (#65) 2022-05-20 14:52:37 -07:00
Nixon Enraght-Moony 39177c5c0c
Fix typo (#27) 2022-03-07 22:44:51 -08:00
Adam H. Leventhal 24aa57a243 typo 2022-02-08 09:02:00 -08:00
Adam Leventhal 25192b5dc1
Add a wrapper types for success and error responses (#26) 2022-02-08 08:59:38 -08:00