Skip to content

Commit

Permalink
Downgrade rand to 0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Sky-NiniKo committed Apr 1, 2023
1 parent 82e4e47 commit f6a4c0d
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 7 deletions.
40 changes: 37 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ log = "0.4.6"
wasm-logger = "0.2.0"
wasm-bindgen-futures = "0.4.34"

# Temporary until this is fix in magic-wormhole
rand = { version = "0.7", features = ["wasm-bindgen"] }

[profile.release]
opt-level = 'z' # Optimize for size.
lto = true # Enable Link Time Optimization
Expand Down
8 changes: 4 additions & 4 deletions src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::path::PathBuf;
use std::pin::Pin;
use std::task::{Context, Poll};

use magic_wormhole::{Code, transfer, transit, Wormhole};
use magic_wormhole::{Code, transfer, transit, Wormhole, AppConfig, rendezvous::DEFAULT_RENDEZVOUS_SERVER};


pub async fn send(file: web_sys::File) {
Expand Down Expand Up @@ -49,10 +49,10 @@ fn gen_relay_hints() -> Vec<transit::RelayHint> {
}
relay_hints
}
pub fn gen_app_config() -> magic_wormhole::AppConfig<transfer::AppVersion> {
magic_wormhole::AppConfig {
pub fn gen_app_config() -> AppConfig<transfer::AppVersion> {
AppConfig {
id: transfer::APPID,
rendezvous_url: Cow::from(magic_wormhole::rendezvous::DEFAULT_RENDEZVOUS_SERVER),
rendezvous_url: Cow::from(DEFAULT_RENDEZVOUS_SERVER),
app_version: transfer::AppVersion {},
}
}
Expand Down

0 comments on commit f6a4c0d

Please sign in to comment.