Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add features
  • Loading branch information
bkchr committed Apr 17, 2020
commit 9bf9880b2f3634b6546f22ad4ccb8eebd727fd14
10 changes: 10 additions & 0 deletions message-broker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,13 @@ codec = { package = "parity-scale-codec", version = "1.3.0", features = [ "deriv

# Cumulus dependencies
cumulus-primitives = { path = "../primitives" }

[features]
default = [ "std" ]
std = [
"frame-support/std",
"frame-system/std",
"sp-inherents/std",
"codec/std",
"cumulus-primitives/std",
]
2 changes: 2 additions & 0 deletions message-broker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
//!
//! This pallet provides support for handling downward and upward messages.

#![cfg_attr(not(feature = "std"), no_std)]

use cumulus_primitives::{
inherents::{DownwardMessagesType, DOWNWARD_MESSAGES_IDENTIFIER},
well_known_keys, DownwardMessageHandler, UpwardMessageSender,
Expand Down
6 changes: 6 additions & 0 deletions primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,9 @@ sp-inherents = { git = "https://github.com/paritytech/substrate", branch = "cumu

# Other dependencies
impl-trait-for-tuples = "0.1.3"

[features]
default = [ "std" ]
std = [
"sp-inherents/std",
]
2 changes: 2 additions & 0 deletions primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

//! Cumulus related primitive types and traits.

#![cfg_attr(not(feature = "std"), no_std)]

/// Inherents identifiers and types related to
pub mod inherents {
use sp_inherents::InherentIdentifier;
Expand Down
3 changes: 2 additions & 1 deletion runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.

///! The Cumulus runtime to make a runtime a parachain.

#![cfg_attr(not(feature = "std"), no_std)]

use codec::{Decode, Encode};
use sp_runtime::traits::Block as BlockT;
///! The Cumulus runtime to make a runtime a parachain.
use sp_std::vec::Vec;

#[cfg(not(feature = "std"))]
Expand Down