Skip to content

Commit

Permalink
fix core build
Browse files Browse the repository at this point in the history
  • Loading branch information
LimpidCrypto committed Nov 20, 2024
1 parent 4d25cd5 commit 6f72169
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utils/exceptions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
use alloc::string::String;
use thiserror_no_std::Error;

use crate::{core::exceptions::XRPLCoreException, models::XRPLModelException, XRPLSerdeJsonError};
#[cfg(feature = "models")]
use crate::models::XRPLModelException;
use crate::{core::exceptions::XRPLCoreException, XRPLSerdeJsonError};

pub type XRPLUtilsResult<T, E = XRPLUtilsException> = core::result::Result<T, E>;

Expand All @@ -18,6 +20,7 @@ pub enum XRPLUtilsException {
XRPLNFTIdError(#[from] XRPLNFTIdException),
#[error("XRPL Core error: {0}")]
XRPLCoreError(#[from] XRPLCoreException),
#[cfg(feature = "models")]
#[error("XRPL Model error: {0}")]
XRPLModelError(#[from] XRPLModelException),
#[error("ISO Code error: {0}")]
Expand Down
2 changes: 2 additions & 0 deletions src/utils/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
//! Convenience utilities for the XRP Ledger
pub mod exceptions;
#[cfg(feature = "models")]
pub mod get_nftoken_id;
#[cfg(feature = "models")]
pub mod parse_nftoken_id;
pub mod time_conversion;
#[cfg(feature = "models")]
Expand Down

0 comments on commit 6f72169

Please sign in to comment.