Skip to content

Commit b829bb4

Browse files
Merge smithy-rs-release-1.x.y back into main (#3328)
2 parents 345624e + ef1e37d commit b829bb4

File tree

7 files changed

+175
-130
lines changed

7 files changed

+175
-130
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
<!-- Do not manually edit this file. Use the `changelogger` tool. -->
2+
December 13th, 2023
3+
===================
4+
5+
December 11th, 2023
6+
===================
7+
**New this release:**
8+
- :bug: (client, [smithy-rs#3305](https://github.com/smithy-lang/smithy-rs/issues/3305)) `crate::event_receiver::EventReceiver` is now re-exported as `crate::primitives::event_stream::EventReceiver` when a service supports event stream operations.
9+
10+
11+
December 8th, 2023
12+
==================
13+
**New this release:**
14+
- :tada: (all, [smithy-rs#3121](https://github.com/smithy-lang/smithy-rs/issues/3121), [smithy-rs#3295](https://github.com/smithy-lang/smithy-rs/issues/3295)) All generated docs now include docsrs labels when features are required
15+
- :bug: (client, [smithy-rs#3262](https://github.com/smithy-lang/smithy-rs/issues/3262)) Loading native TLS trusted certs for the default HTTP client now only occurs if the default HTTP client is not overridden in config.
16+
- (client, [smithy-rs#3277](https://github.com/smithy-lang/smithy-rs/issues/3277)) Improve the error messages for when auth fails to select an auth scheme for a request.
17+
- (client, [smithy-rs#3282](https://github.com/smithy-lang/smithy-rs/issues/3282)) Fix documentation and examples on HyperConnector and HyperClientBuilder.
18+
- (client, [aws-sdk-rust#990](https://github.com/awslabs/aws-sdk-rust/issues/990), @declanvk) Expose local socket address from ConnectionMetadata.
19+
- (all, [smithy-rs#3294](https://github.com/smithy-lang/smithy-rs/issues/3294)) [`Number`](https://docs.rs/aws-smithy-types/latest/aws_smithy_types/enum.Number.html) `TryInto` implementations now succesfully convert from `f64` to numeric types when no precision is lost. This fixes some deserialization issues where numbers like `25.0` were sent when `Byte` fields were expected.
20+
21+
**Contributors**
22+
Thank you for your contributions! ❤
23+
- @declanvk ([aws-sdk-rust#990](https://github.com/awslabs/aws-sdk-rust/issues/990))
24+
25+
226
December 1st, 2023
327
==================
428
**New this release:**

CHANGELOG.next.toml

Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -11,93 +11,6 @@
1111
# meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client | server | all"}
1212
# author = "rcoh"
1313

14-
[[aws-sdk-rust]]
15-
message = "Loading native TLS trusted certs for the default HTTP client now only occurs if the default HTTP client is not overridden in config."
16-
references = ["smithy-rs#3262"]
17-
meta = { "breaking" = false, "tada" = false, "bug" = true }
18-
author = "jdisanti"
19-
20-
[[smithy-rs]]
21-
message = "Loading native TLS trusted certs for the default HTTP client now only occurs if the default HTTP client is not overridden in config."
22-
references = ["smithy-rs#3262"]
23-
meta = { "breaking" = false, "tada" = false, "bug" = true, "target" = "client" }
24-
author = "jdisanti"
25-
26-
[[aws-sdk-rust]]
27-
message = """Client creation now takes microseconds instead of milliseconds.
28-
Previously, it would take 2-3 milliseconds for each client instantiation due to time spent compiling regexes.
29-
For applications that used several clients, this would increase start-up time in cases where it really matters,
30-
such as for AWS Lambda cold starts. This time was improved by both changing regex implementation and caching the
31-
result of the compilation."""
32-
references = ["aws-sdk-rust#975", "smithy-rs#3269"]
33-
meta = { "breaking" = false, "tada" = true, "bug" = false }
34-
author = "jdisanti"
35-
36-
[[aws-sdk-rust]]
37-
message = """Add `test_credentials` to `ConfigLoader` in `aws_config`. This allows the following pattern during tests:
38-
39-
```rust
40-
async fn main() {
41-
let conf = aws_config::defaults(BehaviorVersion::latest())
42-
.test_credentials()
43-
.await;
44-
}
45-
```
46-
47-
This is designed for unit tests and using local mocks like DynamoDB Local and LocalStack with the SDK.
48-
"""
49-
meta = { "breaking" = false, "tada" = true, "bug" = false }
50-
author = "rcoh"
51-
references = ["smithy-rs#3279", "aws-sdk-rust#971"]
52-
53-
[[aws-sdk-rust]]
54-
message = "Improve the error messages for when auth fails to select an auth scheme for a request."
55-
references = ["aws-sdk-rust#979", "smithy-rs#3277"]
56-
meta = { "breaking" = false, "tada" = false, "bug" = false }
57-
author = "jdisanti"
58-
59-
[[smithy-rs]]
60-
message = "Improve the error messages for when auth fails to select an auth scheme for a request."
61-
references = ["smithy-rs#3277"]
62-
meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client" }
63-
author = "jdisanti"
64-
65-
[[aws-sdk-rust]]
66-
message = "Fix documentation and examples on HyperConnector and HyperClientBuilder."
67-
references = ["aws-sdk-rust#986", "smithy-rs#3282"]
68-
meta = { "breaking" = false, "tada" = false, "bug" = false }
69-
author = "jdisanti"
70-
71-
[[smithy-rs]]
72-
message = "Fix documentation and examples on HyperConnector and HyperClientBuilder."
73-
references = ["smithy-rs#3282"]
74-
meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client" }
75-
author = "jdisanti"
76-
77-
[[smithy-rs]]
78-
message = "Expose local socket address from ConnectionMetadata."
79-
references = ["aws-sdk-rust#990"]
80-
meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client" }
81-
author = "declanvk"
82-
83-
[[smithy-rs]]
84-
message = "All generated docs now include docsrs labels when features are required"
85-
references = ["smithy-rs#3121", "smithy-rs#3295"]
86-
meta = { "breaking" = false, "tada" = true, "bug" = false, "target" = "all" }
87-
author = "rcoh"
88-
89-
[[aws-sdk-rust]]
90-
message = "All generated docs now include docsrs labels when features are required"
91-
references = ["smithy-rs#3121", "smithy-rs#3295"]
92-
meta = { "breaking" = false, "tada" = true, "bug" = false }
93-
author = "rcoh"
94-
95-
[[smithy-rs]]
96-
message = "[`Number`](https://docs.rs/aws-smithy-types/latest/aws_smithy_types/enum.Number.html) `TryInto` implementations now succesfully convert from `f64` to numeric types when no precision is lost. This fixes some deserialization issues where numbers like `25.0` were sent when `Byte` fields were expected."
97-
references = ["smithy-rs#3294"]
98-
meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "all" }
99-
author = "rcoh"
100-
10114
[[smithy-rs]]
10215
message = "Add support for constructing [`SdkBody`] and [`ByteStream`] from `http-body` 1.0 bodies. Note that this is initial support and works via a backwards compatibility shim to http-body 0.4. Hyper 1.0 is not supported."
10316
references = ["smithy-rs#3300", "aws-sdk-rust#977"]

aws/SDK_CHANGELOG.next.json

Lines changed: 106 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,91 +6,166 @@
66
"smithy-rs": [],
77
"aws-sdk-rust": [
88
{
9-
"message": "Make properties of S3Control PublicAccessBlockConfiguration optional. Previously, they defaulted to false, but this created invalid requests.",
9+
"message": "Retry additional classes of H2 errors (H2 GoAway & H2 ResetStream)",
10+
"meta": {
11+
"bug": false,
12+
"breaking": false,
13+
"tada": false
14+
},
15+
"author": "rcoh",
16+
"references": [
17+
"aws-sdk-rust#738",
18+
"aws-sdk-rust#858"
19+
],
20+
"since-commit": "88970ba88ef45266aade152c7c1da8e90b24c0d7",
21+
"age": 5
22+
},
23+
{
24+
"message": "Make some properties for IoT types optional. Previously, they defaulted to false, but that isn't how the service actual works.",
1025
"meta": {
1126
"bug": true,
1227
"breaking": true,
1328
"tada": false
1429
},
1530
"author": "milesziemer",
1631
"references": [
17-
"smithy-rs#3246"
32+
"smithy-rs#3256"
1833
],
19-
"since-commit": "e155c3048b9989fe406ef575d461ea01dfaf294c",
34+
"since-commit": "88970ba88ef45266aade152c7c1da8e90b24c0d7",
2035
"age": 5
2136
},
2237
{
23-
"message": "Allow `--` to be used in bucket names for S3",
38+
"message": "Fix `config::Builder::set_credentials_provider` to override a credentials provider previously set.",
2439
"meta": {
2540
"bug": true,
2641
"breaking": false,
2742
"tada": false
2843
},
29-
"author": "rcoh",
44+
"author": "ysaito1001",
3045
"references": [
31-
"smithy-rs#3253"
46+
"aws-sdk-rust#973",
47+
"smithy-rs#3278"
3248
],
33-
"since-commit": "48e3c95a3f10eebd5a637f8e7670c4232cdabbe4",
49+
"since-commit": "529b3f03e2b945ea2e5e879183ccfd8e74b7377c",
3450
"age": 4
3551
},
3652
{
37-
"message": "Retry additional classes of H2 errors (H2 GoAway & H2 ResetStream)",
53+
"message": "`config::Config::credentials_provider` has been broken since `release-2023-11-15` and is now marked as `deprecated` explicitly.",
3854
"meta": {
3955
"bug": false,
4056
"breaking": false,
4157
"tada": false
4258
},
43-
"author": "rcoh",
59+
"author": "ysaito1001",
4460
"references": [
45-
"aws-sdk-rust#738",
46-
"aws-sdk-rust#858"
61+
"smithy-rs#3251",
62+
"smithy-rs#3278"
4763
],
48-
"since-commit": "88970ba88ef45266aade152c7c1da8e90b24c0d7",
49-
"age": 2
64+
"since-commit": "529b3f03e2b945ea2e5e879183ccfd8e74b7377c",
65+
"age": 4
5066
},
5167
{
52-
"message": "Make some properties for IoT types optional. Previously, they defaulted to false, but that isn't how the service actual works.",
68+
"message": "Loading native TLS trusted certs for the default HTTP client now only occurs if the default HTTP client is not overridden in config.",
5369
"meta": {
5470
"bug": true,
55-
"breaking": true,
71+
"breaking": false,
5672
"tada": false
5773
},
58-
"author": "milesziemer",
74+
"author": "jdisanti",
5975
"references": [
60-
"smithy-rs#3256"
76+
"smithy-rs#3262"
6177
],
62-
"since-commit": "88970ba88ef45266aade152c7c1da8e90b24c0d7",
63-
"age": 2
78+
"since-commit": "fc335cbc87e70aa63895828fca55b51795b94a6c",
79+
"age": 3
6480
},
6581
{
66-
"message": "Fix `config::Builder::set_credentials_provider` to override a credentials provider previously set.",
82+
"message": "Client creation now takes microseconds instead of milliseconds.\nPreviously, it would take 2-3 milliseconds for each client instantiation due to time spent compiling regexes.\nFor applications that used several clients, this would increase start-up time in cases where it really matters,\nsuch as for AWS Lambda cold starts. This time was improved by both changing regex implementation and caching the\nresult of the compilation.",
6783
"meta": {
68-
"bug": true,
84+
"bug": false,
85+
"breaking": false,
86+
"tada": true
87+
},
88+
"author": "jdisanti",
89+
"references": [
90+
"aws-sdk-rust#975",
91+
"smithy-rs#3269"
92+
],
93+
"since-commit": "fc335cbc87e70aa63895828fca55b51795b94a6c",
94+
"age": 3
95+
},
96+
{
97+
"message": "Add `test_credentials` to `ConfigLoader` in `aws_config`. This allows the following pattern during tests:\n\n```rust\nasync fn main() {\n let conf = aws_config::defaults(BehaviorVersion::latest())\n .test_credentials()\n .await;\n}\n```\n\nThis is designed for unit tests and using local mocks like DynamoDB Local and LocalStack with the SDK.\n",
98+
"meta": {
99+
"bug": false,
100+
"breaking": false,
101+
"tada": true
102+
},
103+
"author": "rcoh",
104+
"references": [
105+
"smithy-rs#3279",
106+
"aws-sdk-rust#971"
107+
],
108+
"since-commit": "fc335cbc87e70aa63895828fca55b51795b94a6c",
109+
"age": 3
110+
},
111+
{
112+
"message": "Improve the error messages for when auth fails to select an auth scheme for a request.",
113+
"meta": {
114+
"bug": false,
69115
"breaking": false,
70116
"tada": false
71117
},
72-
"author": "ysaito1001",
118+
"author": "jdisanti",
73119
"references": [
74-
"aws-sdk-rust#973",
75-
"smithy-rs#3278"
120+
"aws-sdk-rust#979",
121+
"smithy-rs#3277"
76122
],
77-
"since-commit": "529b3f03e2b945ea2e5e879183ccfd8e74b7377c",
78-
"age": 1
123+
"since-commit": "fc335cbc87e70aa63895828fca55b51795b94a6c",
124+
"age": 3
79125
},
80126
{
81-
"message": "`config::Config::credentials_provider` has been broken since `release-2023-11-15` and is now marked as `deprecated` explicitly.",
127+
"message": "Fix documentation and examples on HyperConnector and HyperClientBuilder.",
82128
"meta": {
83129
"bug": false,
84130
"breaking": false,
85131
"tada": false
86132
},
133+
"author": "jdisanti",
134+
"references": [
135+
"aws-sdk-rust#986",
136+
"smithy-rs#3282"
137+
],
138+
"since-commit": "fc335cbc87e70aa63895828fca55b51795b94a6c",
139+
"age": 3
140+
},
141+
{
142+
"message": "All generated docs now include docsrs labels when features are required",
143+
"meta": {
144+
"bug": false,
145+
"breaking": false,
146+
"tada": true
147+
},
148+
"author": "rcoh",
149+
"references": [
150+
"smithy-rs#3121",
151+
"smithy-rs#3295"
152+
],
153+
"since-commit": "fc335cbc87e70aa63895828fca55b51795b94a6c",
154+
"age": 3
155+
},
156+
{
157+
"message": "`crate::event_receiver::EventReceiver` is now re-exported as `crate::primitives::event_stream::EventReceiver` when a service supports event stream operations.",
158+
"meta": {
159+
"bug": true,
160+
"breaking": false,
161+
"tada": false
162+
},
87163
"author": "ysaito1001",
88164
"references": [
89-
"smithy-rs#3251",
90-
"smithy-rs#3278"
165+
"smithy-rs#3305"
91166
],
92-
"since-commit": "529b3f03e2b945ea2e5e879183ccfd8e74b7377c",
93-
"age": 1
167+
"since-commit": "9f0ba850e03241f657e2e40ca185780e0a5878cb",
168+
"age": 2
94169
}
95170
],
96171
"aws-sdk-model": []

aws/sdk/integration-tests/transcribestreaming/tests/test.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ use async_stream::stream;
77
use aws_sdk_transcribestreaming::config::{Credentials, Region};
88
use aws_sdk_transcribestreaming::error::SdkError;
99
use aws_sdk_transcribestreaming::operation::start_stream_transcription::StartStreamTranscriptionOutput;
10+
#[allow(unused)] // making sure `EventReceiver` is re-exported
11+
use aws_sdk_transcribestreaming::primitives::event_stream::EventReceiver;
1012
use aws_sdk_transcribestreaming::primitives::event_stream::{HeaderValue, Message};
1113
use aws_sdk_transcribestreaming::primitives::Blob;
1214
use aws_sdk_transcribestreaming::types::error::{AudioStreamError, TranscriptResultStreamError};

codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/customizations/SmithyTypesPubUseExtra.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import software.amazon.smithy.rust.codegen.core.rustlang.rustTemplate
1414
import software.amazon.smithy.rust.codegen.core.rustlang.writable
1515
import software.amazon.smithy.rust.codegen.core.smithy.CodegenContext
1616
import software.amazon.smithy.rust.codegen.core.smithy.RuntimeType
17+
import software.amazon.smithy.rust.codegen.core.smithy.RuntimeType.Companion.eventReceiver
1718
import software.amazon.smithy.rust.codegen.core.smithy.RustCrate
1819
import software.amazon.smithy.rust.codegen.core.util.hasEventStreamMember
1920
import software.amazon.smithy.rust.codegen.core.util.hasEventStreamOperations
@@ -101,11 +102,13 @@ fun pubUseSmithyPrimitivesEventStream(
101102
if (codegenContext.serviceShape.hasEventStreamOperations(model)) {
102103
rustTemplate(
103104
"""
105+
pub use #{EventReceiver};
104106
pub use #{Header};
105107
pub use #{HeaderValue};
106108
pub use #{Message};
107109
pub use #{StrBytes};
108110
""",
111+
"EventReceiver" to eventReceiver(rc),
109112
"Header" to RuntimeType.smithyTypes(rc).resolve("event_stream::Header"),
110113
"HeaderValue" to RuntimeType.smithyTypes(rc).resolve("event_stream::HeaderValue"),
111114
"Message" to RuntimeType.smithyTypes(rc).resolve("event_stream::Message"),

0 commit comments

Comments
 (0)