Skip to content

Commit 9e997b6

Browse files
update
1 parent e6dbd97 commit 9e997b6

File tree

2 files changed

+15
-15
lines changed
  • codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/customize
  • codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators

2 files changed

+15
-15
lines changed

codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/customize/SerdeDecorator.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ class SerdeDocGenerator(private val codegenContext: ClientCodegenContext) : LibR
4242
return if (section is LibRsSection.ModuleDoc && section.subsection is ModuleDocSection.UnstableFeature) {
4343
writable {
4444
"""
45-
## How to enable `Serialize` and `Deserialize`
46-
This data type implements `Serialize` and `Deserialize` traits from the popular serde crate,
47-
but those traits are behind feature gate.
48-
49-
As they increase it's compile time dramatically, you should not turn them on unless it's necessary.
50-
""".trimIndent()
45+
## How to enable `Serialize` and `Deserialize`
46+
This data type implements `Serialize` and `Deserialize` traits from the popular serde crate,
47+
but those traits are behind feature gate.
48+
49+
As they increase it's compile time dramatically, you should not turn them on unless it's necessary.
50+
""".trimIndent()
5151
}
5252
} else {
5353
emptySection

codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/LibRsGenerator.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ class LibRsGenerator(
6767
docSection(ModuleDocSection.UnstableFeature).also { docs ->
6868
if (docs.isNotEmpty()) {
6969
val awsSdkUnstable = """
70-
# Unstable Features
71-
Some highly experimental features requires passing `aws_sdk_unstable` to RUSTFLAGS.
72-
e.g.
73-
```bash
74-
export RUSTFLAGS="--cfg aws_sdk_unstable"
75-
cargo build --features serde-serialize
76-
```
77-
78-
If you enable unstable features without enabling `RUSTFLAGS="--cfg aws_sdk_unstable"`, compilation will fail with a message describing the reason.
70+
# Unstable Features
71+
Some highly experimental features requires passing `aws_sdk_unstable` to RUSTFLAGS.
72+
e.g.
73+
```bash
74+
export RUSTFLAGS="--cfg aws_sdk_unstable"
75+
cargo build --features serde-serialize
76+
```
77+
78+
If you enable unstable features without enabling `RUSTFLAGS="--cfg aws_sdk_unstable"`, compilation will fail with a message describing the reason.
7979
""".trimIndent()
8080
containerDocs(awsSdkUnstable)
8181
docs.forEach { writeTo ->

0 commit comments

Comments
 (0)