Skip to content
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

Introduce generic fluent client generator to non-sdk codegen — take 2 #496

Merged
merged 40 commits into from
Jun 11, 2021

Conversation

jonhoo
Copy link
Contributor

@jonhoo jonhoo commented Jun 11, 2021

This is #463 again, but with a fix for the infinite recursion that triggered #493, and a change to address the fact that #[doc(inline)] isn't allowed for type aliases.

Jon Gjengset added 8 commits June 7, 2021 16:12
The standard syntax doesn't work:
rust-lang/rust#86120
With the extra "helpful" bound, we also end up enforcing that C
implements Service, but since we're in a builder, C may not have been
set yet, and may be (), which in turn means that it isn't Service. So
users would end up with an error if they write:

    Builder::new().middleware_fn(|r| r).https().build()

but it would work with

    Builder::new().https().middleware_fn(|r| r).build()

which is silly.
@rcoh rcoh enabled auto-merge (squash) June 11, 2021 21:03
@rcoh rcoh merged commit 4ad0d22 into smithy-lang:main Jun 11, 2021
@jonhoo jonhoo deleted the generic-client-v2 branch June 11, 2021 21:15
#[doc(inline)]
/// AWS Service Client builder.
///
/// See [`smithy_client::Builder`] for details.
Copy link
Contributor Author

@jonhoo jonhoo Jul 6, 2021

Choose a reason for hiding this comment

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

These type aliases can both be #[doc(inline)] again once rust-lang/rust#86120 hits stable (or subject to the MSRV policy). @rcoh

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.

2 participants