Skip to content

Commit 72346e8

Browse files
committed
put borsh import behind feature flag
1 parent 9856b3d commit 72346e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdk/rust/types/src/tappd.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ use alloc::{
44
vec::Vec,
55
};
66
use anyhow::{bail, Context as _, Result};
7-
use borsh::{BorshDeserialize, BorshSerialize};
87
use hex::{encode as hex_encode, FromHexError};
98
use serde::{Deserialize, Serialize};
109
use sha2::Digest;
1110

11+
#[cfg(feature = "borsh")]
12+
use borsh::{BorshDeserialize, BorshSerialize};
13+
1214
use crate::dstack::EventLog;
1315

1416
const INIT_MR: &str = "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";

0 commit comments

Comments
 (0)