diff --git a/aws-lc-rs/util/process-criterion-csv.rs b/aws-lc-rs/util/process-criterion-csv.rs index 840a300ee494..b481e354ea7a 100755 --- a/aws-lc-rs/util/process-criterion-csv.rs +++ b/aws-lc-rs/util/process-criterion-csv.rs @@ -1,4 +1,9 @@ -#!/usr/bin/env rust-script +#!/usr/bin/env -S cargo +nightly -Zscript +---cargo +[dependencies] +clap = { version = "4.0.29", features = ["derive"] } +itertools = "0.10.5" +--- //! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. //! SPDX-License-Identifier: Apache-2.0 OR ISC //! To run, you will need to install rust-script: @@ -11,11 +16,7 @@ //! $ find ./target/criterion -name "raw.csv" | xargs cat | sort | egrep -v "^group" > bench-aarch64-AL2.csv //! ``` //! -//! ```cargo -//! [dependencies] -//! clap = { version = "4.0.29", features = ["derive"] } -//! itertools = "0.10.5" -//! ``` + use std::cmp::Ordering; use std::collections::HashMap; diff --git a/scripts/tools/cargo-dig.rs b/scripts/tools/cargo-dig.rs index 8c7b7320c9c5..7c4767732bca 100755 --- a/scripts/tools/cargo-dig.rs +++ b/scripts/tools/cargo-dig.rs @@ -1,9 +1,9 @@ #!/usr/bin/env -S cargo +nightly -Zscript -```cargo +---cargo [dependencies] toml = "0.8" clap = { version = "4", features = ["derive"] } -``` +--- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 OR ISC diff --git a/scripts/tools/semver.rs b/scripts/tools/semver.rs index 07daf371a6b1..a2164c6b78a0 100755 --- a/scripts/tools/semver.rs +++ b/scripts/tools/semver.rs @@ -1,10 +1,10 @@ #!/usr/bin/env -S cargo +nightly -Zscript -```cargo +---cargo [dependencies] clap = { version = "4", features = ["derive"] } regex = "1" semver = "1" -``` +--- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 OR ISC