mirror of
https://github.com/Cuprate/cuprate.git
synced 2025-02-02 03:06:36 +00:00
fix errors
This commit is contained in:
parent
1b255f4fa5
commit
3bd7981d5f
8 changed files with 14 additions and 9 deletions
5
.github/workflows/hack.yml
vendored
5
.github/workflows/hack.yml
vendored
|
@ -27,5 +27,6 @@ jobs:
|
|||
|
||||
- name: Install dependencies
|
||||
run: cargo install cargo-hack --locked
|
||||
- name: Deny
|
||||
run: cargo deny check
|
||||
- name: Hack Check
|
||||
# TODO: remove the exclude when `cuprate-blockchain` errors are fixed
|
||||
run: argo hack --workspace --exclude cuprate-blockchain check --feature-powerset --no-dev-deps
|
|
@ -6,7 +6,7 @@
|
|||
use crossbeam::atomic::AtomicCell;
|
||||
|
||||
#[allow(unused_imports)] // docs
|
||||
use std::sync::atomic::{Ordering, Ordering::Acquire, Ordering::Release};
|
||||
use core::sync::atomic::{Ordering, Ordering::Acquire, Ordering::Release};
|
||||
|
||||
//---------------------------------------------------------------------------------------------------- Atomic Float
|
||||
/// Compile-time assertion that our floats are
|
||||
|
|
|
@ -43,7 +43,7 @@ pub mod atomic;
|
|||
#[cfg(feature = "constants")]
|
||||
pub mod constants;
|
||||
|
||||
#[cfg(feature = "fs")]
|
||||
#[cfg(all(feature = "fs", feature = "std"))]
|
||||
pub mod fs;
|
||||
|
||||
pub mod network;
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
use alloc::{string::ToString, vec, vec::Vec};
|
||||
|
||||
use bytes::{Buf, BufMut, Bytes, BytesMut};
|
||||
use ref_cast::RefCast;
|
||||
use sealed::sealed;
|
||||
|
@ -72,7 +74,7 @@ pub trait Containerable {
|
|||
macro_rules! int_container_able {
|
||||
($int:ty ) => {
|
||||
impl Containerable for $int {
|
||||
const SIZE: usize = std::mem::size_of::<$int>();
|
||||
const SIZE: usize = core::mem::size_of::<$int>();
|
||||
|
||||
fn from_bytes(bytes: &[u8]) -> Self {
|
||||
<$int>::from_le_bytes(bytes.try_into().unwrap())
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
use alloc::string::{String, ToString};
|
||||
use core::{
|
||||
fmt::{Debug, Formatter},
|
||||
num::TryFromIntError,
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
|
||||
extern crate alloc;
|
||||
|
||||
use alloc::string::ToString;
|
||||
use core::{ops::Deref, str::from_utf8 as str_from_utf8};
|
||||
|
||||
use bytes::{Buf, BufMut, Bytes, BytesMut};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use alloc::{string::String, vec::Vec};
|
||||
/// This module contains a `sealed` [`EpeeValue`] trait and different impls for
|
||||
/// the different possible base epee values.
|
||||
//! This module contains a `sealed` [`EpeeValue`] trait and different impls for
|
||||
//! the different possible base epee values.
|
||||
use alloc::{string::String, vec, vec::Vec};
|
||||
use core::fmt::Debug;
|
||||
|
||||
use bytes::{Buf, BufMut, Bytes, BytesMut};
|
||||
|
|
|
@ -14,7 +14,7 @@ cuprate-helper = { path = "../../helper" }
|
|||
monero-wire = { path = "../../net/monero-wire", features = ["tracing"] }
|
||||
monero-pruning = { path = "../../pruning" }
|
||||
|
||||
tokio = { workspace = true, features = ["net", "sync", "macros", "time"]}
|
||||
tokio = { workspace = true, features = ["net", "sync", "macros", "time", "rt"]}
|
||||
tokio-util = { workspace = true, features = ["codec"] }
|
||||
tokio-stream = { workspace = true, features = ["sync"]}
|
||||
futures = { workspace = true, features = ["std"] }
|
||||
|
|
Loading…
Reference in a new issue