Skip to content

Commit

Permalink
bump msrv, fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Dec 17, 2024
1 parent a318f0a commit 703e900
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- main

env:
MSRV: "1.63"
MSRV: "1.81"
RUST_BACKTRACE: 1
RUSTFLAGS: -Dwarnings
IROH_FORCE_STAGING_RELAYS: "1"
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ repository = "https://github.com/n0-computer/dumbpipe"
description = "A cli tool to pipe data over the network, with NAT hole punching"
readme = "README.md"

# Sadly this also needs to be updated in .github/workflows/ci.yml
rust-version = "1.81"

[dependencies]
anyhow = "1.0.75"
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ fn get_or_create_secret() -> anyhow::Result<SecretKey> {
match std::env::var("IROH_SECRET") {
Ok(secret) => SecretKey::from_str(&secret).context("invalid secret"),
Err(_) => {
let key = SecretKey::generate(rand::thread_rng());
let key = SecretKey::generate(rand::rngs::OsRng);
eprintln!("using secret key {}", key);
Ok(key)
}
Expand Down

0 comments on commit 703e900

Please sign in to comment.