Skip to content

Conversation

@thomas-k-cameron
Copy link
Contributor

@thomas-k-cameron thomas-k-cameron commented Jan 7, 2023

Motivation and Context

part of RFC30

Description

Implements serde to Blob datatype as described in RFC30.

also refactors it to another file

Testing

  • checks if the result of serialized data matches the intended result
  • checks if the result of de-serialized data matches the intended result
  • checks if the result of serialized data can be de-serialized as intended
  • checks the above three for both human-readable and non-human readable formats.

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@thomas-k-cameron thomas-k-cameron marked this pull request as ready for review January 7, 2023 09:17
@thomas-k-cameron thomas-k-cameron requested review from a team as code owners January 7, 2023 09:17
@Velfi
Copy link
Contributor

Velfi commented Jan 10, 2023

@thomas-k-cameron Once we get the other RFC30/* PRs approved, I'll merge all of them at once.

@thomas-k-cameron
Copy link
Contributor Author

Do you think you want to create a dedicated branch for temporary merging RFC30/*?

I'm pretty sure there will be some merge conflict when you do it.

@Velfi
Copy link
Contributor

Velfi commented Jan 11, 2023

Do you think you want to create a dedicated branch for temporary merging RFC30/*?
If you want to create one then I'd welcome the help. Otherwise, I'll just deal with the conflict when we get there.

@thomas-k-cameron
Copy link
Contributor Author

I prefer having a dedicated branch on this repository.

In addition to the merge conflict, it helps me keep track of my progress, write tests... etc

I could make a branch on my repo but I think it's less error prone to have it on this repository.

Would you mind creating a branch for me?

@jdisanti
Copy link
Contributor

I created the unstable-serde-support branch that you can target these PRs to.

@thomas-k-cameron thomas-k-cameron changed the base branch from main to unstable-serde-support January 13, 2023 00:26
@thomas-k-cameron
Copy link
Contributor Author

@Velfi @jdisanti
Would you kindly merge my PR?

*/

#[cfg(all(test, aws_sdk_unstable, feature = "serialize", feature = "deserialize"))]
mod test;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind moving the tests into a module in this same file?

@Velfi Velfi merged commit b5de4b6 into smithy-lang:unstable-serde-support Jan 19, 2023
thomas-k-cameron added a commit to thomas-k-cameron/smithy-rs that referenced this pull request Apr 20, 2023
* Rfc30/document (smithy-lang#2196)

* impl/refactor documet

* impl serde/desr for document

* fix

* add anchor end

* precommit fix

* Rfc30/cargo.toml update (smithy-lang#2180)

* add serde under aws_sdk_unstable

* changelog.next.toml

* Apply suggestions from code review

Co-authored-by: Julian Antonielli <[email protected]>

Co-authored-by: Julian Antonielli <[email protected]>
Co-authored-by: Zelda Hessler <[email protected]>

* Rfc30/blob (smithy-lang#2181)

* rfc30 blob

* blob import fix
add license header
pre commit

* change unstable keyword to aws_sdk_unstable

* change unstable keyword to aws_sdk_unstable

* add test

* updater changelog

* Update CHANGELOG.next.toml

* Update lib.rs

remove extra Document declaration from bad merge

* remove/unused import

Co-authored-by: Zelda Hessler <[email protected]>
Co-authored-by: Zelda Hessler <[email protected]>

* RFC30/datetime (smithy-lang#2184)

* serde support for datetime with testing

* add ciborium to cargo.toml

* update changelog

* refactor
impl suggestions from

* refacotring
better err message

* Revert "update changelog"

This reverts commit d58abfa.

* add/license header

* add: license header

* remove unnecessary returns

Co-authored-by: Zelda Hessler <[email protected]>

* fix: changelog entries

* fix: some serde stuff broken by Zelda in the merges

* Fix unused imports

* Implement serde support for `aws_smithy_types::Number` (smithy-lang#2185)

* add line (smithy-lang#2311)

* RFC30/Set fields to fluent builder (smithy-lang#2310)

* fn set_fields

* add fn set_fields to fluent builder

* better docs

* fix

* improve document
cfg to Attribute class

* Rfc30/feature gate for generated crates (smithy-lang#2183)

* add CfgUnstable for feature-gate

* add features

* add feature-gate

* strings for feature gate

* Revert "strings for feature gate"

This reverts commit 1f33a5c.

* Update codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/RuntimeType.kt

Co-authored-by: Zelda Hessler <[email protected]>

* fix dependency thing on cargo

* add OutputShape to builder

* EnumGenerator

* StructureGenerator

* UnionGenerator

* todo

* fixed?

* SerdeDecorator

* codegen stuff

* update

* fix

* Apply suggestions from code review

Co-authored-by: Zelda Hessler <[email protected]>

* - refactoring
- pre-commit
- https://github.com/awslabs/smithy-rs/pull/2183/files#r1080594621

* adds serde-serialize/deserialize

* this one causes null pointer exception

* interim solution

* new push

* fix

* add Sensitive Warning

* add test for CargoTomlGeneratorTest
pre-commit fix

* Update codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/smithy/generators/BuilderGenerator.kt

Co-authored-by: Zelda Hessler <[email protected]>

---------

Co-authored-by: Zelda Hessler <[email protected]>

* Upgrade the smithy-rs runtime crates version to 0.55.0

* Update changelog

* merge

* Revert "merge"

This reverts commit 6f00505.

* squash commit

* update: gradle.properties

---------

Co-authored-by: Julian Antonielli <[email protected]>
Co-authored-by: Zelda Hessler <[email protected]>
Co-authored-by: Zelda Hessler <[email protected]>
Co-authored-by: John DiSanti <[email protected]>
Co-authored-by: AWS SDK Rust Bot <[email protected]>
@thomas-k-cameron thomas-k-cameron deleted the rfc30/blob branch April 27, 2023 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants