Skip to content

Commit

Permalink
tests: fix update_valid_ee_certs Rust script syntax
Browse files Browse the repository at this point in the history
The syntax for this unstable cargo feature changed out from under us,
producing syntax errors with recent nightly tooling. This commit updates
the syntax to match the documented[0] example script.

[0]: https://github.com/rust-lang/cargo/blob/master/src/doc/src/reference/unstable.md#script
  • Loading branch information
cpu committed Jul 13, 2024
1 parent 6ae3a1b commit 8f0bc69
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env -S cargo +nightly -Z script
```cargo
package.edition = "2021"
dependencies.anyhow = "1"
dependencies.reqwest.version = "0.11"
dependencies.reqwest.default-features = false
dependencies.reqwest.features = ["blocking", "rustls-tls-webpki-roots"]
```
#!/usr/bin/env -S cargo -Z script
---cargo
[package]
edition = "2021"
[dependencies]
anyhow = "1"
reqwest = { version = "0.11", default-features = false, features = ["blocking", "rustls-tls-webpki-roots"] }
---

use std::{fs, path::Path};

Expand Down

0 comments on commit 8f0bc69

Please sign in to comment.