Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
wasm compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Jan 2, 2019
1 parent fd507ca commit 350821d
Show file tree
Hide file tree
Showing 14 changed files with 38 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/executor/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions core/sr-primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ extern crate substrate_metadata_derive;

extern crate num_traits;
extern crate integer_sqrt;
#[macro_use]
extern crate sr_std as rstd;
extern crate sr_io as runtime_io;
#[doc(hidden)]
Expand Down
27 changes: 27 additions & 0 deletions core/test-runtime/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
1 change: 1 addition & 0 deletions node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ extern crate substrate_metadata;
#[macro_use]
extern crate substrate_metadata_derive;

#[macro_use]
extern crate sr_std as rstd;
extern crate srml_aura as aura;
extern crate srml_balances as balances;
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions srml/balances/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#[macro_use]
extern crate srml_support as runtime_support;

#[macro_use]
extern crate sr_std as rstd;

#[macro_use]
Expand Down
1 change: 1 addition & 0 deletions srml/democracy/src/vote_threshold.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

use primitives::traits::{Zero, IntegerSquareRoot};
use rstd::ops::{Add, Mul, Div, Rem};
use rstd::prelude::*;

/// A means of determining if a vote is past pass threshold.
#[derive(Clone, Copy, PartialEq, Eq, Encode, Decode, EncodeMetadata)]
Expand Down
1 change: 1 addition & 0 deletions srml/session/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

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

#[macro_use]
extern crate sr_std as rstd;

#[macro_use]
Expand Down
1 change: 1 addition & 0 deletions srml/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ extern crate serde;
#[macro_use]
extern crate srml_support as runtime_support;

#[macro_use]
extern crate sr_std as rstd;

#[macro_use]
Expand Down
1 change: 1 addition & 0 deletions srml/sudo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

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

#[macro_use]
extern crate sr_std;
#[cfg(test)]
extern crate sr_io;
Expand Down
2 changes: 1 addition & 1 deletion srml/system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

extern crate substrate_primitives;

#[cfg_attr(any(feature = "std", test), macro_use)]
#[macro_use]
extern crate sr_std as rstd;

#[macro_use]
Expand Down
1 change: 1 addition & 0 deletions srml/treasury/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

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

#[macro_use]
extern crate sr_std as rstd;

#[macro_use]
Expand Down
1 change: 1 addition & 0 deletions srml/upgrade-key/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

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

#[macro_use]
extern crate sr_std;
#[cfg(test)]
extern crate sr_io;
Expand Down

0 comments on commit 350821d

Please sign in to comment.