Skip to content
Snippets Groups Projects
Select Git revision
22 results Searching

smithy-rs

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    david-perez authored and GitHub committed
    * Disallow `@uniqueItems`-constrained list shapes that reach a map shape
    
    The server SDK codegen generates Rust code that does not compile when a
    `@uniqueItems`-constrained list shape reaches a map shape, essentially
    because `std::collections::HashMap` does not implement
    `std::hash::Hash`.
    
    A ticket with the Smithy team was opened in awslabs/smithy#1567 to
    disallow such models.
    
    This commit makes it so that codegen aborts with an informative message
    when such models are encountered, instead of going ahead and producing
    code that does not compile.
    
    This commit also slightly adjusts the error messages produced when
    unsupported constraint traits are found.
    
    * ./gradlew ktlintFormat
    198c5009
    History
    Name Last commit Last update