Skip to content

Commit 7cbb3d9

Browse files
authored
move to published dropshot crate (#983)
1 parent b4b2271 commit 7cbb3d9

File tree

11 files changed

+33
-26
lines changed

11 files changed

+33
-26
lines changed

Cargo.lock

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ built = { version = "0.7.5", features = ["cargo-lock", "git2"] }
2424
bytes = "1.8.0"
2525
chrono = { version = "0.4.0", default-features = false, features = ["serde"] }
2626
clap = { version = "4.5.21", default-features = false, features = ["derive", "std"] }
27-
dropshot = { git = "https://github.com/oxidecomputer/dropshot", default-features = false }
27+
dropshot = { version = "0.13.0", default-features = false }
2828
env_logger = "0.10.2"
2929
expectorate = "1.1.0"
3030
futures = "0.3.31"
@@ -44,6 +44,7 @@ regress = "0.10.1"
4444
reqwest = { version = "0.12.4", default-features = false, features = ["json", "stream"] }
4545
rustfmt-wrapper = "0.2.1"
4646
schemars = { version = "0.8.21", features = ["chrono", "uuid1"] }
47+
semver = "1.0.23"
4748
serde = { version = "1.0.215", features = ["derive"] }
4849
serde_json = "1.0.133"
4950
serde_urlencoded = "0.7.1"
@@ -57,9 +58,6 @@ typify = { git = "https://github.com/oxidecomputer/typify" }
5758
unicode-ident = "1.0.14"
5859
uuid = { version = "1.11.0", features = ["serde", "v4"] }
5960

60-
#[patch."https://github.com/oxidecomputer/dropshot"]
61-
#dropshot = { path = "../dropshot/dropshot" }
62-
6361
#[patch."https://github.com/oxidecomputer/typify"]
6462
#typify = { path = "../typify/typify" }
6563

example-wasm/tests/client.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
use wasm_bindgen_test::*;
1+
// Copyright 2024 Oxide Computer Company
22

33
wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);
44

55
include!(concat!(env!("OUT_DIR"), "/codegen.rs"));
66

7-
#[wasm_bindgen_test]
7+
#[cfg(target_arch = "wasm32")]
8+
#[wasm_bindgen_test::wasm_bindgen_test]
89
fn test_client_new() {
910
let client = Client::new("http://foo/bar");
1011
assert!(client.baseurl == "http://foo/bar");

progenitor-impl/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ http = { workspace = true }
3131
hyper = { workspace = true }
3232
reqwest = { workspace = true }
3333
rustfmt-wrapper = { workspace = true }
34+
semver = { workspace = true }
3435
serde_yaml = { workspace = true }
3536
tokio = { workspace = true }
3637

progenitor-impl/tests/output/src/test_default_params_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ pub mod types {
319319
#[derive(Clone, Debug)]
320320
///Client for pagination-demo
321321
///
322-
///Version: 9000
322+
///Version: 9000.0.0
323323
pub struct Client {
324324
pub(crate) baseurl: String,
325325
pub(crate) client: reqwest::Client,
@@ -372,7 +372,7 @@ impl Client {
372372
/// This string is pulled directly from the source OpenAPI
373373
/// document and may be in any format the API selects.
374374
pub fn api_version(&self) -> &'static str {
375-
"9000"
375+
"9000.0.0"
376376
}
377377
}
378378

progenitor-impl/tests/output/src/test_default_params_positional.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub mod types {
148148
#[derive(Clone, Debug)]
149149
///Client for pagination-demo
150150
///
151-
///Version: 9000
151+
///Version: 9000.0.0
152152
pub struct Client {
153153
pub(crate) baseurl: String,
154154
pub(crate) client: reqwest::Client,
@@ -201,7 +201,7 @@ impl Client {
201201
/// This string is pulled directly from the source OpenAPI
202202
/// document and may be in any format the API selects.
203203
pub fn api_version(&self) -> &'static str {
204-
"9000"
204+
"9000.0.0"
205205
}
206206
}
207207

progenitor-impl/tests/output/src/test_freeform_response.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub mod types {
8181
#[derive(Clone, Debug)]
8282
///Client for pagination-demo
8383
///
84-
///Version: 9000
84+
///Version: 9000.0.0
8585
pub struct Client {
8686
pub(crate) baseurl: String,
8787
pub(crate) client: reqwest::Client,
@@ -134,7 +134,7 @@ impl Client {
134134
/// This string is pulled directly from the source OpenAPI
135135
/// document and may be in any format the API selects.
136136
pub fn api_version(&self) -> &'static str {
137-
"9000"
137+
"9000.0.0"
138138
}
139139
}
140140

progenitor-impl/tests/output/src/test_renamed_parameters.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub mod types {
8181
#[derive(Clone, Debug)]
8282
///Client for pagination-demo
8383
///
84-
///Version: 9000
84+
///Version: 9000.0.0
8585
pub struct Client {
8686
pub(crate) baseurl: String,
8787
pub(crate) client: reqwest::Client,
@@ -134,7 +134,7 @@ impl Client {
134134
/// This string is pulled directly from the source OpenAPI
135135
/// document and may be in any format the API selects.
136136
pub fn api_version(&self) -> &'static str {
137-
"9000"
137+
"9000.0.0"
138138
}
139139
}
140140

progenitor-impl/tests/output/src/test_stream_pagination_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ pub mod types {
272272
#[derive(Clone, Debug)]
273273
///Client for test_stream_pagination
274274
///
275-
///Version: 1
275+
///Version: 1.0.0
276276
pub struct Client {
277277
pub(crate) baseurl: String,
278278
pub(crate) client: reqwest::Client,
@@ -325,7 +325,7 @@ impl Client {
325325
/// This string is pulled directly from the source OpenAPI
326326
/// document and may be in any format the API selects.
327327
pub fn api_version(&self) -> &'static str {
328-
"1"
328+
"1.0.0"
329329
}
330330
}
331331

progenitor-impl/tests/output/src/test_stream_pagination_positional.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ pub mod types {
129129
#[derive(Clone, Debug)]
130130
///Client for test_stream_pagination
131131
///
132-
///Version: 1
132+
///Version: 1.0.0
133133
pub struct Client {
134134
pub(crate) baseurl: String,
135135
pub(crate) client: reqwest::Client,
@@ -182,7 +182,7 @@ impl Client {
182182
/// This string is pulled directly from the source OpenAPI
183183
/// document and may be in any format the API selects.
184184
pub fn api_version(&self) -> &'static str {
185-
"1"
185+
"1.0.0"
186186
}
187187
}
188188

0 commit comments

Comments
 (0)