From 13bb6fbd8fec67c2626d44fdf4a8903ef1d07d06 Mon Sep 17 00:00:00 2001 From: "hinto.janai" Date: Fri, 27 Sep 2024 20:21:08 -0400 Subject: [PATCH] fixes --- constants/src/lib.rs | 1 + constants/src/output.rs | 2 ++ constants/src/rpc.rs | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/constants/src/lib.rs b/constants/src/lib.rs index 3a99c00..d53bde5 100644 --- a/constants/src/lib.rs +++ b/constants/src/lib.rs @@ -1,5 +1,6 @@ #![doc = include_str!("../README.md")] #![deny(missing_docs, reason = "all constants should document what they are")] +#![no_std] // This can be removed if we eventually need `std`. mod macros; diff --git a/constants/src/output.rs b/constants/src/output.rs index 2a02840..f3ce7a0 100644 --- a/constants/src/output.rs +++ b/constants/src/output.rs @@ -1,5 +1,7 @@ //! Output related. +use crate::macros::monero_definition_link; + /// The minimum amount of blocks a coinbase output is locked for. #[doc = monero_definition_link!(a1dc85c5373a30f14aaf7dcfdd95f5a7375d3623, "/src/cryptonote_config.h", 40)] pub const COINBASE_LOCK_WINDOW: usize = 60; diff --git a/constants/src/rpc.rs b/constants/src/rpc.rs index 5456bcf..1130eb7 100644 --- a/constants/src/rpc.rs +++ b/constants/src/rpc.rs @@ -1,6 +1,6 @@ //! RPC related. -use std::time::Duration; +use core::time::Duration; use crate::macros::monero_definition_link;