Skip to content

Commit 9578626

Browse files
committed
wasm family
1 parent 5be7b14 commit 9578626

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/jormungandr/jormungandr-lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ hex = "0.4"
2929
bech32 = "0.8"
3030
base64 = "0.13.0"
3131
http = "0.2.2"
32-
[target.'cfg(not(target_arch = "wasm32-unknown-unknown"))'.dependencies]
32+
[target.'cfg(not(target_family = "wasm"))'.dependencies]
3333
local-ip-address = "0.4.9"
3434

3535
[dev-dependencies]

src/jormungandr/jormungandr-lib/src/interfaces/fragment_log.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::net::{IpAddr, Ipv4Addr};
22

33
use crate::{crypto::hash::Hash, interfaces::BlockDate, time::SystemTime};
44
use chain_impl_mockchain::key;
5-
#[cfg(not(target_arch = "wasm32-unknown-unknown"))]
5+
#[cfg(not(target_family = "wasm"))]
66
use local_ip_address::local_ip;
77
use serde::{Deserialize, Serialize};
88

@@ -25,7 +25,7 @@ pub enum FragmentOrigin {
2525

2626
impl FragmentOrigin {
2727
pub fn default_origin_addr() -> Self {
28-
#[cfg(not(target_arch = "wasm32-unknown-unknown"))]
28+
#[cfg(not(target_family = "wasm"))]
2929
match local_ip() {
3030
Ok(ip) => FragmentOrigin::Network { addr: ip },
3131
Err(_err) => FragmentOrigin::Network {

0 commit comments

Comments
 (0)