-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not generate public empty modules #1803
Changes from 4 commits
ce22621
17d87fb
afafbcc
3e5a56c
8f1b0a8
b836237
91533fe
a98d41e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,7 +175,6 @@ open class RustCrate( | |
*/ | ||
val DefaultPublicModules = setOf( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think a better approach is to move There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In 8f1b0a8 I removed |
||
RustModule.Error, | ||
RustModule.Operation, | ||
RustModule.public("model", documentation = "Data structures used by operation inputs/outputs."), | ||
RustModule.public("input", documentation = "Input structures for operations."), | ||
RustModule.public("output", documentation = "Output structures for operations."), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would have expected this to be enough to get the module to show up in
lib.rs
aspub mod operation
, but apparently it wasn't - I had to add https://github.com/awslabs/smithy-rs/pull/1803/files#diff-f7da198414ffe3cefc591164d3b1bb41d67e22812d7ba3a86b8abd6d798cec49R87I'd be curious to understand why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From reading the code, it definitely seems like it should emit the
mod
statement when it's missing fromDefaultPublicModules
.