Skip to content

Commit

Permalink
feat: enable no_std compatibility everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
romac committed Nov 10, 2023
1 parent 1ec7a94 commit b4443e2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Code/driver/src/client.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use alloc::boxed::Box;

use async_trait::async_trait;

use malachite_common::Context;
Expand Down
2 changes: 1 addition & 1 deletion Code/driver/src/driver.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::collections::BTreeMap;
use alloc::collections::BTreeMap;

use malachite_round::state_machine::RoundData;
use secrecy::{ExposeSecret, Secret};
Expand Down
3 changes: 3 additions & 0 deletions Code/driver/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Driver for the state machine of the Malachite consensus engine
#![no_std]
#![forbid(unsafe_code)]
#![deny(unused_crate_dependencies, trivial_casts, trivial_numeric_casts)]
#![warn(
Expand All @@ -11,6 +12,8 @@
#![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::panic))]
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

extern crate alloc;

mod client;
mod driver;
mod event;
Expand Down
3 changes: 3 additions & 0 deletions Code/round/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Per-round consensus state machine
#![no_std]
#![forbid(unsafe_code)]
#![deny(unused_crate_dependencies, trivial_casts, trivial_numeric_casts)]
#![warn(
Expand All @@ -11,6 +12,8 @@
#![cfg_attr(not(test), deny(clippy::unwrap_used, clippy::panic))]
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]

extern crate alloc;

pub mod events;
pub mod message;
pub mod state;
Expand Down
1 change: 1 addition & 0 deletions Code/vote/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Tally votes of the same type (eg. prevote or precommit)
#![no_std]
#![forbid(unsafe_code)]
#![deny(unused_crate_dependencies, trivial_casts, trivial_numeric_casts)]
#![warn(
Expand Down

0 comments on commit b4443e2

Please sign in to comment.