From b6f7c5e44ac58a4effbc4c20707272c0aafab765 Mon Sep 17 00:00:00 2001 From: Shawn Tian Date: Thu, 17 Oct 2024 11:15:25 +0800 Subject: [PATCH] fix cargo check errors --- Cargo.toml | 4 ++-- src/verify.rs | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d66bb74..afdd551 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -48,7 +48,7 @@ futures = { version = "0.3", optional = true } getrandom = { version = "0.2", optional = true, features = ["js"] } serde-wasm-bindgen = { version = "0.4", optional = true} wasm-bindgen = { version = "0.2.95", optional = true } -serde_bytes = { version = "0.11", optional = true } +serde_bytes = { version = "0.11" } [dependencies.webpki] version = "0.102.8" @@ -81,4 +81,4 @@ std = [ "urlencoding", ] report = ["std", "tracing", "futures"] -js = ["ring/wasm32_unknown_unknown_js", "getrandom", "serde-wasm-bindgen", "wasm-bindgen", "serde_bytes"] +js = ["ring/wasm32_unknown_unknown_js", "getrandom", "serde-wasm-bindgen", "wasm-bindgen"] diff --git a/src/verify.rs b/src/verify.rs index bca7761..237e5b7 100644 --- a/src/verify.rs +++ b/src/verify.rs @@ -12,6 +12,8 @@ use crate::{ }; use crate::{Error, QuoteCollateralV3}; use serde::{Deserialize, Serialize}; + +#[cfg(feature = "js")] use wasm_bindgen::prelude::*; #[derive(Debug, Clone, Deserialize, Serialize)]