You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the enableNewCrateOrganizationScheme 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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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