Unverified Commit cbbbec4a authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Check external types for runtime and SDK crates in CI (#1625)

* Rename `cargo-api-linter` to `cargo-check-external-types`
* Run `cargo-check-external-types` on Smithy client/shared runtime crates
* Run `cargo-check-external-types` on SDK runtime crates
* Fix bug in determining crate name
* Run `cargo-check-external-types` on generated SDK crates
parent 6e1d1f6c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -17,10 +17,14 @@ allowed_external_types = [
   "aws_smithy_types::timeout::error::ConfigError",
   "aws_types::*",
   "http::response::Response",
   "http::uri::InvalidUri",
   "http::uri::Uri",
   "tower_service::Service",

   # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Decide if `InvalidUri` should be exposed
   "http::uri::InvalidUri",

   # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Decide if the following should be exposed
   "hyper::client::connect::Connection",
   "tokio::io::async_read::AsyncRead",
   "tokio::io::async_write::AsyncWrite",
   "tower_service::Service",
]
+10 −0
Original line number Diff line number Diff line
allowed_external_types = [
    "aws_smithy_http::*",
    "aws_smithy_types::*",
    "aws_types::*",
    "bytes::bytes::Bytes",
    "http_body::Body",

    # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Decide if the following should be exposed
    "http::header::value::InvalidHeaderValue",
]
+2 −0
Original line number Diff line number Diff line
allowed_external_types = [
]
+1 −1
Original line number Diff line number Diff line
[package]
name = "inlineable-aws"
name = "aws-inlineable"
version = "0.0.0-smithy-rs-head"
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Russell Cohen <rcoh@amazon.com>"]
description = """
+15 −0
Original line number Diff line number Diff line
allowed_external_types = [
    "aws_smithy_client::*",
    "aws_smithy_http::*",
    "aws_smithy_types::*",
    "aws_types::*",
    "http::header::map::HeaderMap",
    "http::header::value::HeaderValue",
    "http::request::Request",
    "http::error::Error",
    "http::uri::Uri",
    "http::method::Method",

    # TODO(https://github.com/awslabs/smithy-rs/issues/1193): Decide if we want to continue exposing tower_layer
    "tower_layer::Layer",
]
Loading