Remove the no_std feature from the WASM builder (#3640)

* Remove the no_std feature from the WASM builder

* Address review

* More fixing

* Address review again

* Fix missing Cargo.lock
This commit is contained in:
Pierre Krieger
2019-09-18 22:00:44 +02:00
committed by Bastian Köcher
parent 49ad0dbdff
commit 9ea3d8fc52
14 changed files with 11 additions and 26 deletions
@@ -25,7 +25,6 @@
//!
//! 1. Add a `build.rs` file.
//! 2. Add `substrate-wasm-builder-runner` as dependency into `build-dependencies`.
//! 3. Add a feature called `no-std`.
//!
//! The `build.rs` file needs to contain the following code:
//!
@@ -42,8 +41,6 @@
//! }
//! ```
//!
//! The `no-std` feature will be enabled by WASM builder while compiling your project to WASM.
//!
//! As the final step, you need to add the following to your project:
//!
//! ```ignore
@@ -270,7 +270,7 @@ fn create_project(cargo_manifest: &Path, wasm_workspace: &Path) -> PathBuf {
crate-type = ["cdylib"]
[dependencies]
wasm_project = {{ package = "{crate_name}", path = "{crate_path}", default-features = false, features = [ "no_std" ] }}
wasm_project = {{ package = "{crate_name}", path = "{crate_path}", default-features = false }}
"#,
crate_name = crate_name,
crate_path = crate_path.display(),