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 #463

Merged
merged 36 commits into from
Jun 11, 2021
Merged
Show file tree
Hide file tree
Changes from 33 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b41bb4f
Implement Debug for more things
Jun 3, 2021
ac926ef
Extract out generic hyper client to smithy-hyper
Jun 3, 2021
c468458
Add generic fluent client generation
Jun 3, 2021
c85d046
Make the bounds nicer
Jun 4, 2021
5917587
Make smithy-hyper hyper dep optional
Jun 4, 2021
7a3cfa7
Rename smithy-hyper to smithy-client
Jun 4, 2021
a2181cd
Enable rustls by default
Jun 4, 2021
2f23050
Also warn on rust 2018 idioms
Jun 4, 2021
10ad30d
Add type-erased middleware
Jun 4, 2021
65427b0
Restore old DispatchLayer tracing
Jun 4, 2021
bfde222
Add connection type-erasure
Jun 4, 2021
fdeed6d
Fix rustdoc link
Jun 4, 2021
2f3d664
Split up lib.rs
Jun 4, 2021
48c9b77
Make Builder a little nicer to use
Jun 4, 2021
ccdaaf4
Make aws_hyper simply wrap smithy_client
Jun 4, 2021
ec22f48
Make it clear that bounds:: should never be implemented
Jun 4, 2021
e5b8ba6
Finish adjusting aws fluent generator
Jun 4, 2021
c8c34ba
Make clippy happy
Jun 4, 2021
499a96c
Also re-expose test_connection in aws_hyper
Jun 4, 2021
7751a24
Make ktlint happy
Jun 4, 2021
04254e1
No Builder::native_tls with default features
Jun 4, 2021
20c45dd
Work around rustdoc bug
Jun 4, 2021
186056e
Better names for type-erase methods
Jun 7, 2021
cc24f66
Add middleware_fn
Jun 7, 2021
6dcf508
Better docs for client
Jun 7, 2021
ddb6f63
Fix remaining erase_connector
Jun 7, 2021
af3d662
Better name for service in docs
Jun 7, 2021
d5397f3
Correct send+sync test name
Jun 7, 2021
f6319ee
Use crate name with _ in Rust code
Jun 7, 2021
9993ab0
Merge remote-tracking branch 'upstream/main' into generic-client
Jun 7, 2021
9c587b7
Fix up relative links
Jun 7, 2021
d6071a8
Merge remote-tracking branch 'upstream/main' into generic-client
Jun 8, 2021
d1a599a
Fix the new integration test
Jun 8, 2021
fd38332
Hide temporary Operation type aliases
Jun 9, 2021
fbffa81
Don't bound middleware_fn as it also bounds C
Jun 10, 2021
3f59c58
Merge branch 'main' of github.com:awslabs/smithy-rs into generic-client
rcoh Jun 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aws/rust-runtime/aws-endpoint/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ pub fn set_endpoint_resolver(config: &mut PropertyBag, provider: AwsEndpointReso
/// 3. Apply the endpoint to the URI in the request
/// 4. Set the `SigningRegion` and `SigningService` in the property bag to drive downstream
/// signing middleware.
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct AwsEndpointStage;

#[derive(Debug)]
Expand Down
2 changes: 1 addition & 1 deletion aws/rust-runtime/aws-http/src/user_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ impl Display for ExecEnvMetadata {
}

#[non_exhaustive]
#[derive(Default, Clone)]
#[derive(Default, Clone, Debug)]
pub struct UserAgentStage;

impl UserAgentStage {
Expand Down
5 changes: 3 additions & 2 deletions aws/rust-runtime/aws-hyper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ license = "Apache-2.0"
[features]
test-util = ["protocol-test-helpers"]
default = ["test-util"]
native-tls = ["hyper-tls"]
rustls = ["hyper-rustls"]
native-tls = ["hyper-tls", "smithy-client/native-tls"]
rustls = ["hyper-rustls", "smithy-client/rustls"]

[dependencies]
hyper = { version = "0.14.2", features = ["client", "http1", "http2", "tcp", "runtime"] }
Expand All @@ -28,6 +28,7 @@ http-body = "0.4.0"
smithy-http = { path = "../../../rust-runtime/smithy-http" }
smithy-types = { path = "../../../rust-runtime/smithy-types" }
smithy-http-tower = { path = "../../../rust-runtime/smithy-http-tower" }
smithy-client = { path = "../../../rust-runtime/smithy-client" }
fastrand = "1.4.0"
tokio = { version = "1", features = ["time"] }

Expand Down
203 changes: 0 additions & 203 deletions aws/rust-runtime/aws-hyper/src/conn.rs

This file was deleted.

Loading