Skip to content

Commit e8ae35d

Browse files
authored
Fix recent change to rust-script syntax (#419)
1 parent d6efe09 commit e8ae35d

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

aws-lc-rs/util/process-criterion-csv.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
#!/usr/bin/env rust-script
1+
#!/usr/bin/env -S cargo +nightly -Zscript
2+
---cargo
3+
[dependencies]
4+
clap = { version = "4.0.29", features = ["derive"] }
5+
itertools = "0.10.5"
6+
---
27
//! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
38
//! SPDX-License-Identifier: Apache-2.0 OR ISC
49
//! To run, you will need to install rust-script:
@@ -11,11 +16,7 @@
1116
//! $ find ./target/criterion -name "raw.csv" | xargs cat | sort | egrep -v "^group" > bench-aarch64-AL2.csv
1217
//! ```
1318
//!
14-
//! ```cargo
15-
//! [dependencies]
16-
//! clap = { version = "4.0.29", features = ["derive"] }
17-
//! itertools = "0.10.5"
18-
//! ```
19+
1920

2021
use std::cmp::Ordering;
2122
use std::collections::HashMap;

scripts/tools/cargo-dig.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env -S cargo +nightly -Zscript
2-
```cargo
2+
---cargo
33
[dependencies]
44
toml = "0.8"
55
clap = { version = "4", features = ["derive"] }
6-
```
6+
---
77
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
88
// SPDX-License-Identifier: Apache-2.0 OR ISC
99

scripts/tools/semver.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env -S cargo +nightly -Zscript
2-
```cargo
2+
---cargo
33
[dependencies]
44
clap = { version = "4", features = ["derive"] }
55
regex = "1"
66
semver = "1"
7-
```
7+
---
88
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
99
// SPDX-License-Identifier: Apache-2.0 OR ISC
1010

0 commit comments

Comments
 (0)