Skip to content

Commit 58b60a9

Browse files
authored
Update emitter to 0.20.0 (#2858)
* Update emitter to 0.20.0 * Update NoFormat signatures
1 parent 3a7d924 commit 58b60a9

File tree

11 files changed

+270
-167
lines changed

11 files changed

+270
-167
lines changed

eng/emitter-package-lock.json

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

eng/emitter-package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"main": "dist/src/index.js",
33
"dependencies": {
4-
"@azure-tools/typespec-rust": "0.19.0"
4+
"@azure-tools/typespec-rust": "0.20.0"
55
},
66
"devDependencies": {
7-
"@azure-tools/typespec-azure-core": "0.57.0",
8-
"@azure-tools/typespec-azure-rulesets": "0.57.0",
9-
"@azure-tools/typespec-client-generator-core": "0.57.2",
10-
"@typespec/compiler": "1.1.0",
11-
"@typespec/http": "1.1.0",
12-
"@typespec/openapi": "1.1.0",
13-
"@typespec/rest": "0.71.0",
14-
"@typespec/versioning": "0.71.0",
15-
"@typespec/xml": "0.71.0"
7+
"@azure-tools/typespec-azure-core": "0.58.0",
8+
"@azure-tools/typespec-azure-rulesets": "0.58.0",
9+
"@azure-tools/typespec-client-generator-core": "0.58.0",
10+
"@typespec/compiler": "1.2.1",
11+
"@typespec/http": "1.2.1",
12+
"@typespec/openapi": "1.2.1",
13+
"@typespec/rest": "0.72.1",
14+
"@typespec/versioning": "0.72.1",
15+
"@typespec/xml": "0.72.1"
1616
}
17-
}
17+
}

sdk/core/azure_core_test/src/stream.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use azure_core::stream::SeekableStream;
77
#[cfg(not(target_arch = "wasm32"))]
88
use azure_core::{
9-
http::{Body, RequestContent},
9+
http::{Body, NoFormat, RequestContent},
1010
Bytes,
1111
};
1212
use futures::{io::AsyncRead, stream::Stream};
@@ -208,7 +208,7 @@ where
208208

209209
#[cfg(not(target_arch = "wasm32"))]
210210
impl<I, const LENGTH: usize, const CHUNK: usize> From<&GeneratedStream<I, LENGTH, CHUNK>>
211-
for RequestContent<Bytes>
211+
for RequestContent<Bytes, NoFormat>
212212
where
213213
for<'a> I: Clone + Send + Sync + 'a,
214214
Cycle<I>: Iterator<Item = u8> + Unpin,
@@ -220,7 +220,7 @@ where
220220

221221
#[cfg(not(target_arch = "wasm32"))]
222222
impl<I, const LENGTH: usize, const CHUNK: usize> From<GeneratedStream<I, LENGTH, CHUNK>>
223-
for RequestContent<Bytes>
223+
for RequestContent<Bytes, NoFormat>
224224
where
225225
for<'a> I: Clone + Send + Sync + 'a,
226226
Cycle<I>: Iterator<Item = u8> + Unpin,

sdk/storage/azure_storage_blob/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
### Breaking Changes
88

9-
* Changed `RequestContent<T>` models in client methods to `RequestContent<T, XmlFormat>` to provide parity with `Response<T, XmlFormat>`.
9+
* Changed `RequestContent<Bytes>` request methods to `RequestContent<T, NoFormat>` to provide parity with `Response<T, NoFormat>`.
10+
* Changed `RequestContent<T>` XML models in client methods to `RequestContent<T, XmlFormat>` to provide parity with `Response<T, XmlFormat>`.
1011

1112
### Bugs Fixed
1213

sdk/storage/azure_storage_blob/src/clients/append_blob_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl AppendBlobClient {
103103
/// * `options` - Optional configuration for the request.
104104
pub async fn append_block(
105105
&self,
106-
data: RequestContent<Bytes>,
106+
data: RequestContent<Bytes, NoFormat>,
107107
content_length: u64,
108108
options: Option<AppendBlobClientAppendBlockOptions<'_>>,
109109
) -> Result<Response<AppendBlobClientAppendBlockResult, NoFormat>> {

sdk/storage/azure_storage_blob/src/clients/blob_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl BlobClient {
168168
/// * `options` - Optional configuration for the request.
169169
pub async fn upload(
170170
&self,
171-
data: RequestContent<Bytes>,
171+
data: RequestContent<Bytes, NoFormat>,
172172
overwrite: bool,
173173
content_length: u64,
174174
options: Option<BlockBlobClientUploadOptions<'_>>,

sdk/storage/azure_storage_blob/src/clients/block_blob_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl BlockBlobClient {
114114
&self,
115115
block_id: &[u8],
116116
content_length: u64,
117-
body: RequestContent<Bytes>,
117+
body: RequestContent<Bytes, NoFormat>,
118118
options: Option<BlockBlobClientStageBlockOptions<'_>>,
119119
) -> Result<Response<BlockBlobClientStageBlockResult, NoFormat>> {
120120
self.client

sdk/storage/azure_storage_blob/src/clients/page_blob_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl PageBlobClient {
137137
/// * `options` - Optional configuration for the request.
138138
pub async fn upload_page(
139139
&self,
140-
data: RequestContent<Bytes>,
140+
data: RequestContent<Bytes, NoFormat>,
141141
content_length: u64,
142142
range: String,
143143
options: Option<PageBlobClientUploadPagesOptions<'_>>,

sdk/storage/azure_storage_blob/src/generated/clients/append_blob_client.rs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/storage/azure_storage_blob/src/generated/clients/block_blob_client.rs

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

0 commit comments

Comments
 (0)