Skip to content

Commit

Permalink
Fix recent change to rust-script syntax (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth authored May 9, 2024
1 parent d6efe09 commit e8ae35d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
13 changes: 7 additions & 6 deletions aws-lc-rs/util/process-criterion-csv.rs
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions scripts/tools/cargo-dig.rs
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions scripts/tools/semver.rs
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit e8ae35d

Please sign in to comment.