AWS SDK

AWS SDK

rev. 28315cd99b8fea9ec945d1e65cf06d6e928e0515 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/Cargo.toml

@@ -15,15 +152,152 @@
   35     35   
path = "../aws-smithy-json"
   36     36   
version = "0.62.5"
   37     37   
   38     38   
[dependencies.aws-smithy-observability]
   39     39   
path = "../aws-smithy-observability"
   40     40   
version = "0.2.6"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime]
   43     43   
path = "../aws-smithy-runtime"
   44     44   
features = ["client"]
   45         -
version = "1.10.3"
          45  +
version = "1.10.4"
   46     46   
   47     47   
[dependencies.aws-smithy-runtime-api]
   48     48   
path = "../aws-smithy-runtime-api"
   49     49   
features = ["client", "http-1x"]
   50         -
version = "1.11.6"
          50  +
version = "1.11.7"
   51     51   
   52     52   
[dependencies.aws-smithy-types]
   53     53   
path = "../aws-smithy-types"
   54     54   
features = ["http-body-1-x"]
   55         -
version = "1.4.7"
          55  +
version = "1.4.8"
   56     56   
   57     57   
[dependencies.aws-types]
   58     58   
path = "../aws-types"
   59     59   
version = "1.4.0"
   60     60   
   61     61   
[dependencies.bytes]
   62     62   
version = "1.4.0"
   63     63   
   64     64   
[dependencies.fastrand]
   65     65   
version = "2.0.0"
   66     66   
   67     67   
[dependencies.http]
   68     68   
version = "0.2.9"
   69     69   
   70     70   
[dependencies.http-1x]
   71     71   
version = "1"
   72     72   
package = "http"
   73     73   
   74     74   
[dependencies.regex-lite]
   75     75   
version = "0.1.5"
   76     76   
   77     77   
[dependencies.tokio]
   78     78   
version = "1.23.1"
   79     79   
features = ["sync"]
   80     80   
   81     81   
[dependencies.tracing]
   82     82   
version = "0.1"
   83     83   
[dev-dependencies.aws-config]
   84     84   
path = "../aws-config"
   85     85   
version = "1.9.0"
   86     86   
   87     87   
[dev-dependencies.aws-credential-types]
   88     88   
path = "../aws-credential-types"
   89     89   
features = ["test-util"]
   90     90   
version = "1.2.14"
   91     91   
   92     92   
[dev-dependencies.aws-runtime]
   93     93   
path = "../aws-runtime"
   94     94   
features = ["test-util"]
   95     95   
version = "1.7.3"
   96     96   
   97     97   
[dev-dependencies.aws-smithy-async]
   98     98   
path = "../aws-smithy-async"
   99     99   
features = ["test-util"]
  100    100   
version = "1.2.14"
  101    101   
  102    102   
[dev-dependencies.aws-smithy-http-client]
  103    103   
path = "../aws-smithy-http-client"
  104    104   
features = ["test-util", "wire-mock"]
  105    105   
version = "1.1.12"
  106    106   
  107    107   
[dev-dependencies.aws-smithy-protocol-test]
  108    108   
path = "../aws-smithy-protocol-test"
  109    109   
version = "0.63.14"
  110    110   
  111    111   
[dev-dependencies.aws-smithy-runtime]
  112    112   
path = "../aws-smithy-runtime"
  113    113   
features = ["test-util"]
  114         -
version = "1.10.3"
         114  +
version = "1.10.4"
  115    115   
  116    116   
[dev-dependencies.aws-smithy-runtime-api]
  117    117   
path = "../aws-smithy-runtime-api"
  118    118   
features = ["test-util"]
  119         -
version = "1.11.6"
         119  +
version = "1.11.7"
  120    120   
  121    121   
[dev-dependencies.aws-smithy-types]
  122    122   
path = "../aws-smithy-types"
  123    123   
features = ["http-body-1-x", "test-util"]
  124         -
version = "1.4.7"
         124  +
version = "1.4.8"
  125    125   
  126    126   
[dev-dependencies.futures-util]
  127    127   
version = "0.3.25"
  128    128   
features = ["alloc"]
  129    129   
default-features = false
  130    130   
  131    131   
[dev-dependencies.proptest]
  132    132   
version = "1"
  133    133   
  134    134   
[dev-dependencies.serde_json]

tmp-codegen-diff/aws-sdk/sdk/timestreamquery/src/endpoint_lib/host.rs

@@ -1,1 +72,101 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/*
    3      3   
 *  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    4      4   
 *  SPDX-License-Identifier: Apache-2.0
    5      5   
 */
    6      6   
    7      7   
use crate::endpoint_lib::diagnostic::DiagnosticCollector;
    8      8   
    9      9   
pub(crate) fn is_valid_host_label(label: &str, allow_dots: bool, e: &mut DiagnosticCollector) -> bool {
          10  +
    let bytes = label.as_bytes();
   10     11   
    if allow_dots {
   11         -
        for part in label.split('.') {
   12         -
            if !is_valid_host_label(part, false, e) {
          12  +
        let mut start = 0;
          13  +
        for i in 0..bytes.len() {
          14  +
            if bytes[i] == b'.' {
          15  +
                if !is_valid_segment(bytes, start, i, e) {
   13     16   
                    return false;
   14     17   
                }
          18  +
                start = i + 1;
   15     19   
            }
   16         -
        true
          20  +
        }
          21  +
        is_valid_segment(bytes, start, bytes.len(), e)
   17     22   
    } else {
   18         -
        if label.is_empty() || label.len() > 63 {
          23  +
        is_valid_segment(bytes, 0, bytes.len(), e)
          24  +
    }
          25  +
}
          26  +
          27  +
#[inline]
          28  +
fn is_valid_segment(bytes: &[u8], start: usize, end: usize, e: &mut DiagnosticCollector) -> bool {
          29  +
    let len = end - start;
          30  +
    if len == 0 || len > 63 {
   19     31   
        e.report_error("host was too short or too long");
   20     32   
        return false;
   21     33   
    }
   22         -
        label.chars().enumerate().all(|(idx, ch)| match (ch, idx) {
   23         -
            ('-', 0) => {
          34  +
    if bytes[start] == b'-' {
   24     35   
        e.report_error("cannot start with `-`");
   25         -
                false
          36  +
        return false;
   26     37   
    }
   27         -
            _ => ch.is_alphanumeric() || ch == '-',
   28         -
        })
          38  +
    for i in start..end {
          39  +
        let b = bytes[i];
          40  +
        if !b.is_ascii_alphanumeric() && b != b'-' {
          41  +
            return false;
   29     42   
        }
          43  +
    }
          44  +
    true
   30     45   
}
   31     46   
   32     47   
#[cfg(all(test, feature = "gated-tests"))]
   33     48   
mod test {
   34     49   
    use proptest::proptest;
   35     50   
   36     51   
    fn is_valid_host_label(label: &str, allow_dots: bool) -> bool {
   37     52   
        super::is_valid_host_label(label, allow_dots, &mut DiagnosticCollector::new())
   38     53   
    }
   39     54   
   40     55   
    #[allow(clippy::bool_assert_comparison)]
   41     56   
    #[test]
   42     57   
    fn basic_cases() {
   43     58   
        assert_eq!(is_valid_host_label("", false), false);
   44     59   
        assert_eq!(is_valid_host_label("", true), false);
   45     60   
        assert_eq!(is_valid_host_label(".", true), false);
   46     61   
        assert_eq!(is_valid_host_label("a.b", true), true);
   47     62   
        assert_eq!(is_valid_host_label("a.b", false), false);
   48     63   
        assert_eq!(is_valid_host_label("a.b.", true), false);
   49     64   
        assert_eq!(is_valid_host_label("a.b.c", true), true);
   50     65   
        assert_eq!(is_valid_host_label("a_b", true), false);
   51     66   
        assert_eq!(is_valid_host_label(&"a".repeat(64), false), false);
   52     67   
        assert_eq!(is_valid_host_label(&format!("{}.{}", "a".repeat(63), "a".repeat(63)), true), true);
   53     68   
    }
   54     69   
   55     70   
    #[allow(clippy::bool_assert_comparison)]
   56     71   
    #[test]
   57     72   
    fn start_bounds() {
   58     73   
        assert_eq!(is_valid_host_label("-foo", false), false);
   59     74   
        assert_eq!(is_valid_host_label("-foo", true), false);
   60     75   
        assert_eq!(is_valid_host_label(".foo", true), false);
   61     76   
        assert_eq!(is_valid_host_label("a-b.foo", true), true);
   62     77   
    }
   63     78   
          79  +
    #[allow(clippy::bool_assert_comparison)]
          80  +
    #[test]
          81  +
    fn non_ascii_rejected() {
          82  +
        // DNS host labels only allow ASCII alphanumeric and hyphens (RFC 952/1123)
          83  +
        assert_eq!(is_valid_host_label("café", false), false);
          84  +
        assert_eq!(is_valid_host_label("bücher", false), false);
          85  +
        assert_eq!(is_valid_host_label("日本語", false), false);
          86  +
        assert_eq!(is_valid_host_label("a.café.b", true), false);
          87  +
        assert_eq!(is_valid_host_label("🚀rocket", false), false);
          88  +
        // ASCII is fine
          89  +
        assert_eq!(is_valid_host_label("abc123", false), true);
          90  +
        assert_eq!(is_valid_host_label("a-b-c", false), true);
          91  +
    }
          92  +
   64     93   
    use crate::endpoint_lib::diagnostic::DiagnosticCollector;
   65     94   
    use proptest::prelude::*;
   66     95   
    proptest! {
   67     96   
        #[test]
   68     97   
        fn no_panics(s in any::<String>(), dots in any::<bool>()) {
   69     98   
            is_valid_host_label(&s, dots);
   70     99   
        }
   71    100   
    }
   72    101   
}

tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/Cargo.toml

@@ -15,15 +85,85 @@
   35     35   
path = "../aws-smithy-json"
   36     36   
version = "0.62.5"
   37     37   
   38     38   
[dependencies.aws-smithy-observability]
   39     39   
path = "../aws-smithy-observability"
   40     40   
version = "0.2.6"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime]
   43     43   
path = "../aws-smithy-runtime"
   44     44   
features = ["client"]
   45         -
version = "1.10.3"
          45  +
version = "1.10.4"
   46     46   
   47     47   
[dependencies.aws-smithy-runtime-api]
   48     48   
path = "../aws-smithy-runtime-api"
   49     49   
features = ["client", "http-1x"]
   50         -
version = "1.11.6"
          50  +
version = "1.11.7"
   51     51   
   52     52   
[dependencies.aws-smithy-types]
   53     53   
path = "../aws-smithy-types"
   54     54   
features = ["http-body-1-x"]
   55         -
version = "1.4.7"
          55  +
version = "1.4.8"
   56     56   
   57     57   
[dependencies.aws-types]
   58     58   
path = "../aws-types"
   59     59   
version = "1.4.0"
   60     60   
   61     61   
[dependencies.bytes]
   62     62   
version = "1.4.0"
   63     63   
   64     64   
[dependencies.fastrand]
   65     65   
version = "2.0.0"

tmp-codegen-diff/aws-sdk/sdk/timestreamwrite/src/endpoint_lib/host.rs

@@ -1,1 +72,101 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/*
    3      3   
 *  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    4      4   
 *  SPDX-License-Identifier: Apache-2.0
    5      5   
 */
    6      6   
    7      7   
use crate::endpoint_lib::diagnostic::DiagnosticCollector;
    8      8   
    9      9   
pub(crate) fn is_valid_host_label(label: &str, allow_dots: bool, e: &mut DiagnosticCollector) -> bool {
          10  +
    let bytes = label.as_bytes();
   10     11   
    if allow_dots {
   11         -
        for part in label.split('.') {
   12         -
            if !is_valid_host_label(part, false, e) {
          12  +
        let mut start = 0;
          13  +
        for i in 0..bytes.len() {
          14  +
            if bytes[i] == b'.' {
          15  +
                if !is_valid_segment(bytes, start, i, e) {
   13     16   
                    return false;
   14     17   
                }
          18  +
                start = i + 1;
   15     19   
            }
   16         -
        true
          20  +
        }
          21  +
        is_valid_segment(bytes, start, bytes.len(), e)
   17     22   
    } else {
   18         -
        if label.is_empty() || label.len() > 63 {
          23  +
        is_valid_segment(bytes, 0, bytes.len(), e)
          24  +
    }
          25  +
}
          26  +
          27  +
#[inline]
          28  +
fn is_valid_segment(bytes: &[u8], start: usize, end: usize, e: &mut DiagnosticCollector) -> bool {
          29  +
    let len = end - start;
          30  +
    if len == 0 || len > 63 {
   19     31   
        e.report_error("host was too short or too long");
   20     32   
        return false;
   21     33   
    }
   22         -
        label.chars().enumerate().all(|(idx, ch)| match (ch, idx) {
   23         -
            ('-', 0) => {
          34  +
    if bytes[start] == b'-' {
   24     35   
        e.report_error("cannot start with `-`");
   25         -
                false
          36  +
        return false;
   26     37   
    }
   27         -
            _ => ch.is_alphanumeric() || ch == '-',
   28         -
        })
          38  +
    for i in start..end {
          39  +
        let b = bytes[i];
          40  +
        if !b.is_ascii_alphanumeric() && b != b'-' {
          41  +
            return false;
   29     42   
        }
          43  +
    }
          44  +
    true
   30     45   
}
   31     46   
   32     47   
#[cfg(all(test, feature = "gated-tests"))]
   33     48   
mod test {
   34     49   
    use proptest::proptest;
   35     50   
   36     51   
    fn is_valid_host_label(label: &str, allow_dots: bool) -> bool {
   37     52   
        super::is_valid_host_label(label, allow_dots, &mut DiagnosticCollector::new())
   38     53   
    }
   39     54   
   40     55   
    #[allow(clippy::bool_assert_comparison)]
   41     56   
    #[test]
   42     57   
    fn basic_cases() {
   43     58   
        assert_eq!(is_valid_host_label("", false), false);
   44     59   
        assert_eq!(is_valid_host_label("", true), false);
   45     60   
        assert_eq!(is_valid_host_label(".", true), false);
   46     61   
        assert_eq!(is_valid_host_label("a.b", true), true);
   47     62   
        assert_eq!(is_valid_host_label("a.b", false), false);
   48     63   
        assert_eq!(is_valid_host_label("a.b.", true), false);
   49     64   
        assert_eq!(is_valid_host_label("a.b.c", true), true);
   50     65   
        assert_eq!(is_valid_host_label("a_b", true), false);
   51     66   
        assert_eq!(is_valid_host_label(&"a".repeat(64), false), false);
   52     67   
        assert_eq!(is_valid_host_label(&format!("{}.{}", "a".repeat(63), "a".repeat(63)), true), true);
   53     68   
    }
   54     69   
   55     70   
    #[allow(clippy::bool_assert_comparison)]
   56     71   
    #[test]
   57     72   
    fn start_bounds() {
   58     73   
        assert_eq!(is_valid_host_label("-foo", false), false);
   59     74   
        assert_eq!(is_valid_host_label("-foo", true), false);
   60     75   
        assert_eq!(is_valid_host_label(".foo", true), false);
   61     76   
        assert_eq!(is_valid_host_label("a-b.foo", true), true);
   62     77   
    }
   63     78   
          79  +
    #[allow(clippy::bool_assert_comparison)]
          80  +
    #[test]
          81  +
    fn non_ascii_rejected() {
          82  +
        // DNS host labels only allow ASCII alphanumeric and hyphens (RFC 952/1123)
          83  +
        assert_eq!(is_valid_host_label("café", false), false);
          84  +
        assert_eq!(is_valid_host_label("bücher", false), false);
          85  +
        assert_eq!(is_valid_host_label("日本語", false), false);
          86  +
        assert_eq!(is_valid_host_label("a.café.b", true), false);
          87  +
        assert_eq!(is_valid_host_label("🚀rocket", false), false);
          88  +
        // ASCII is fine
          89  +
        assert_eq!(is_valid_host_label("abc123", false), true);
          90  +
        assert_eq!(is_valid_host_label("a-b-c", false), true);
          91  +
    }
          92  +
   64     93   
    use crate::endpoint_lib::diagnostic::DiagnosticCollector;
   65     94   
    use proptest::prelude::*;
   66     95   
    proptest! {
   67     96   
        #[test]
   68     97   
        fn no_panics(s in any::<String>(), dots in any::<bool>()) {
   69     98   
            is_valid_host_label(&s, dots);
   70     99   
        }
   71    100   
    }
   72    101   
}

tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/Cargo.toml

@@ -25,25 +95,95 @@
   45     45   
path = "../aws-smithy-json"
   46     46   
version = "0.62.5"
   47     47   
   48     48   
[dependencies.aws-smithy-observability]
   49     49   
path = "../aws-smithy-observability"
   50     50   
version = "0.2.6"
   51     51   
   52     52   
[dependencies.aws-smithy-runtime]
   53     53   
path = "../aws-smithy-runtime"
   54     54   
features = ["client"]
   55         -
version = "1.10.3"
          55  +
version = "1.10.4"
   56     56   
   57     57   
[dependencies.aws-smithy-runtime-api]
   58     58   
path = "../aws-smithy-runtime-api"
   59     59   
features = ["client", "http-1x"]
   60         -
version = "1.11.6"
          60  +
version = "1.11.7"
   61     61   
   62     62   
[dependencies.aws-smithy-types]
   63     63   
path = "../aws-smithy-types"
   64     64   
features = ["http-body-1-x"]
   65         -
version = "1.4.7"
          65  +
version = "1.4.8"
   66     66   
   67     67   
[dependencies.aws-types]
   68     68   
path = "../aws-types"
   69     69   
version = "1.4.0"
   70     70   
   71     71   
[dependencies.bytes]
   72     72   
version = "1.4.0"
   73     73   
   74     74   
[dependencies.fastrand]
   75     75   
version = "2.0.0"
@@ -101,101 +171,171 @@
  121    121   
features = ["test-util", "wire-mock"]
  122    122   
version = "1.1.12"
  123    123   
  124    124   
[dev-dependencies.aws-smithy-protocol-test]
  125    125   
path = "../aws-smithy-protocol-test"
  126    126   
version = "0.63.14"
  127    127   
  128    128   
[dev-dependencies.aws-smithy-runtime]
  129    129   
path = "../aws-smithy-runtime"
  130    130   
features = ["test-util"]
  131         -
version = "1.10.3"
         131  +
version = "1.10.4"
  132    132   
  133    133   
[dev-dependencies.aws-smithy-runtime-api]
  134    134   
path = "../aws-smithy-runtime-api"
  135    135   
features = ["test-util"]
  136         -
version = "1.11.6"
         136  +
version = "1.11.7"
  137    137   
  138    138   
[dev-dependencies.aws-smithy-types]
  139    139   
path = "../aws-smithy-types"
  140    140   
features = ["http-body-1-x", "test-util"]
  141         -
version = "1.4.7"
         141  +
version = "1.4.8"
  142    142   
  143    143   
[dev-dependencies.futures-core]
  144    144   
version = "0.3.25"
  145    145   
  146    146   
[dev-dependencies.futures-util]
  147    147   
version = "0.3.25"
  148    148   
features = ["alloc"]
  149    149   
default-features = false
  150    150   
  151    151   
[dev-dependencies.hound]

tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/src/endpoint_lib/host.rs

@@ -1,1 +72,101 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
/*
    3      3   
 *  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
    4      4   
 *  SPDX-License-Identifier: Apache-2.0
    5      5   
 */
    6      6   
    7      7   
use crate::endpoint_lib::diagnostic::DiagnosticCollector;
    8      8   
    9      9   
pub(crate) fn is_valid_host_label(label: &str, allow_dots: bool, e: &mut DiagnosticCollector) -> bool {
          10  +
    let bytes = label.as_bytes();
   10     11   
    if allow_dots {
   11         -
        for part in label.split('.') {
   12         -
            if !is_valid_host_label(part, false, e) {
          12  +
        let mut start = 0;
          13  +
        for i in 0..bytes.len() {
          14  +
            if bytes[i] == b'.' {
          15  +
                if !is_valid_segment(bytes, start, i, e) {
   13     16   
                    return false;
   14     17   
                }
          18  +
                start = i + 1;
   15     19   
            }
   16         -
        true
          20  +
        }
          21  +
        is_valid_segment(bytes, start, bytes.len(), e)
   17     22   
    } else {
   18         -
        if label.is_empty() || label.len() > 63 {
          23  +
        is_valid_segment(bytes, 0, bytes.len(), e)
          24  +
    }
          25  +
}
          26  +
          27  +
#[inline]
          28  +
fn is_valid_segment(bytes: &[u8], start: usize, end: usize, e: &mut DiagnosticCollector) -> bool {
          29  +
    let len = end - start;
          30  +
    if len == 0 || len > 63 {
   19     31   
        e.report_error("host was too short or too long");
   20     32   
        return false;
   21     33   
    }
   22         -
        label.chars().enumerate().all(|(idx, ch)| match (ch, idx) {
   23         -
            ('-', 0) => {
          34  +
    if bytes[start] == b'-' {
   24     35   
        e.report_error("cannot start with `-`");
   25         -
                false
          36  +
        return false;
   26     37   
    }
   27         -
            _ => ch.is_alphanumeric() || ch == '-',
   28         -
        })
          38  +
    for i in start..end {
          39  +
        let b = bytes[i];
          40  +
        if !b.is_ascii_alphanumeric() && b != b'-' {
          41  +
            return false;
   29     42   
        }
          43  +
    }
          44  +
    true
   30     45   
}
   31     46   
   32     47   
#[cfg(all(test, feature = "gated-tests"))]
   33     48   
mod test {
   34     49   
    use proptest::proptest;
   35     50   
   36     51   
    fn is_valid_host_label(label: &str, allow_dots: bool) -> bool {
   37     52   
        super::is_valid_host_label(label, allow_dots, &mut DiagnosticCollector::new())
   38     53   
    }
   39     54   
   40     55   
    #[allow(clippy::bool_assert_comparison)]
   41     56   
    #[test]
   42     57   
    fn basic_cases() {
   43     58   
        assert_eq!(is_valid_host_label("", false), false);
   44     59   
        assert_eq!(is_valid_host_label("", true), false);
   45     60   
        assert_eq!(is_valid_host_label(".", true), false);
   46     61   
        assert_eq!(is_valid_host_label("a.b", true), true);
   47     62   
        assert_eq!(is_valid_host_label("a.b", false), false);
   48     63   
        assert_eq!(is_valid_host_label("a.b.", true), false);
   49     64   
        assert_eq!(is_valid_host_label("a.b.c", true), true);
   50     65   
        assert_eq!(is_valid_host_label("a_b", true), false);
   51     66   
        assert_eq!(is_valid_host_label(&"a".repeat(64), false), false);
   52     67   
        assert_eq!(is_valid_host_label(&format!("{}.{}", "a".repeat(63), "a".repeat(63)), true), true);
   53     68   
    }
   54     69   
   55     70   
    #[allow(clippy::bool_assert_comparison)]
   56     71   
    #[test]
   57     72   
    fn start_bounds() {
   58     73   
        assert_eq!(is_valid_host_label("-foo", false), false);
   59     74   
        assert_eq!(is_valid_host_label("-foo", true), false);
   60     75   
        assert_eq!(is_valid_host_label(".foo", true), false);
   61     76   
        assert_eq!(is_valid_host_label("a-b.foo", true), true);
   62     77   
    }
   63     78   
          79  +
    #[allow(clippy::bool_assert_comparison)]
          80  +
    #[test]
          81  +
    fn non_ascii_rejected() {
          82  +
        // DNS host labels only allow ASCII alphanumeric and hyphens (RFC 952/1123)
          83  +
        assert_eq!(is_valid_host_label("café", false), false);
          84  +
        assert_eq!(is_valid_host_label("bücher", false), false);
          85  +
        assert_eq!(is_valid_host_label("日本語", false), false);
          86  +
        assert_eq!(is_valid_host_label("a.café.b", true), false);
          87  +
        assert_eq!(is_valid_host_label("🚀rocket", false), false);
          88  +
        // ASCII is fine
          89  +
        assert_eq!(is_valid_host_label("abc123", false), true);
          90  +
        assert_eq!(is_valid_host_label("a-b-c", false), true);
          91  +
    }
          92  +
   64     93   
    use crate::endpoint_lib::diagnostic::DiagnosticCollector;
   65     94   
    use proptest::prelude::*;
   66     95   
    proptest! {
   67     96   
        #[test]
   68     97   
        fn no_panics(s in any::<String>(), dots in any::<bool>()) {
   69     98   
            is_valid_host_label(&s, dots);
   70     99   
        }
   71    100   
    }
   72    101   
}

tmp-codegen-diff/aws-sdk/tests/no-default-features/Cargo.toml

@@ -2,2 +54,54 @@
   22     22   
default-features = false
   23     23   
version = "0.0.0-local"
   24     24   
   25     25   
[dev-dependencies.aws-smithy-async]
   26     26   
path = "../../sdk/aws-smithy-async"
   27     27   
version = "1.2.14"
   28     28   
   29     29   
[dev-dependencies.aws-smithy-runtime]
   30     30   
path = "../../sdk/aws-smithy-runtime"
   31     31   
features = ["test-util"]
   32         -
version = "1.10.3"
          32  +
version = "1.10.4"
   33     33   
   34     34   
[dev-dependencies.aws-smithy-http-client]
   35     35   
path = "../../sdk/aws-smithy-http-client"
   36     36   
features = ["test-util"]
   37     37   
version = "1.1.12"
   38     38   
   39     39   
[dev-dependencies.aws-credential-types]
   40     40   
path = "../../sdk/aws-credential-types"
   41     41   
features = ["test-util"]
   42     42   
version = "1.2.14"

tmp-codegen-diff/aws-sdk/tests/telemetry/Cargo.toml

@@ -19,19 +65,65 @@
   39     39   
path = "../../sdk/aws-smithy-observability"
   40     40   
version = "0.2.6"
   41     41   
   42     42   
[dev-dependencies.aws-smithy-observability-otel]
   43     43   
path = "../../sdk/aws-smithy-observability-otel"
   44     44   
version = "0.1.11"
   45     45   
   46     46   
[dev-dependencies.aws-smithy-runtime]
   47     47   
path = "../../sdk/aws-smithy-runtime"
   48     48   
features = ["client", "test-util"]
   49         -
version = "1.10.3"
          49  +
version = "1.10.4"
   50     50   
   51     51   
[dev-dependencies.aws-smithy-types]
   52     52   
path = "../../sdk/aws-smithy-types"
   53         -
version = "1.4.7"
          53  +
version = "1.4.8"
   54     54   
   55     55   
[dev-dependencies.opentelemetry]
   56     56   
version = "0.26.0"
   57     57   
features = ["metrics"]
   58     58   
   59     59   
[dev-dependencies.opentelemetry_sdk]
   60     60   
version = "0.26.0"
   61     61   
features = ["metrics", "testing"]
   62     62   
   63     63   
[dev-dependencies.tokio]