Client Crate Reorganization Upgrade Guidance #2449
jdisanti
announced in
Change Log
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Generated clients now follow a new module organization scheme by default, but it is possible to turn this new scheme off via the
smithy-build.json
using theenableNewCrateOrganizationScheme
codegen flag, as shown below:To upgrade, it is recommended to first disable the new organization scheme, fix all the compiler errors from other breaking changes that came with this release, and then enable it again to adopt the new scheme.
If you are using an IDE, the easiest way to upgrade will be to delete all imports from your generated client, and use the IDE features to automatically re-import the types. Otherwise, consider running
rustdoc
against the generated client and searching the docs to find the new module for any given type that fails to resolve.Specific changes:
crate::types
=>crate::primitives
crate::model
=>crate::types
XyzInput
,XyzOutput
,XyzError
=>crate::operation::xyz::{XyzInput, XyzOutput, XyzError}
crate::error
have moved tocrate::types::error
Beta Was this translation helpful? Give feedback.
All reactions