Commit fcf511a8 authored by Xat_MassacrE's avatar Xat_MassacrE Committed by Hero Bird

Fix undeclared ink_prelude bug (#289)

* Fix undeclared ink_prelude bug

Add examples used ink_prelude crate can not work

* Add ink_prelude/std to all Cargo.toml files used ink_prelude
parent b6996ff2
Pipeline #70795 passed with stages
in 10 minutes and 3 seconds
......@@ -9,6 +9,7 @@ ink_abi = { path = "../../../abi", default-features = false, features = ["derive
ink_core = { path = "../../../core", default-features = false }
ink_model = { path = "../../../model", default-features = false }
ink_lang = { path = "../../../lang", default-features = false }
ink_prelude = { path = "../../../prelude", default-features = false }
scale = { package = "parity-scale-codec", version = "1.1", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }
......@@ -33,6 +34,7 @@ std = [
"ink_core/std",
"ink_model/std",
"ink_lang/std",
"ink_prelude/std",
"scale/std",
"type-metadata/std",
......
......@@ -9,6 +9,7 @@ ink_abi = { path = "../../../../abi", default-features = false, features = ["der
ink_core = { path = "../../../../core", default-features = false }
ink_model = { path = "../../../../model", default-features = false }
ink_lang = { path = "../../../../lang", default-features = false }
ink_prelude = { path = "../../../../prelude", default-features = false }
scale = { package = "parity-scale-codec", version = "1.1", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }
......@@ -29,6 +30,7 @@ std = [
"ink_core/std",
"ink_model/std",
"ink_lang/std",
"ink_prelude/std",
"scale/std",
"type-metadata/std",
]
......
......@@ -9,6 +9,7 @@ ink_abi = { path = "../../../../abi", default-features = false, features = ["der
ink_core = { path = "../../../../core", default-features = false }
ink_model = { path = "../../../../model", default-features = false }
ink_lang = { path = "../../../../lang", default-features = false }
ink_prelude = { path = "../../../../prelude", default-features = false }
scale = { package = "parity-scale-codec", version = "1.1", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }
......@@ -31,6 +32,7 @@ std = [
"ink_core/std",
"ink_model/std",
"ink_lang/std",
"ink_prelude/std",
"scale/std",
"type-metadata/std",
......
......@@ -9,6 +9,7 @@ ink_abi = { path = "../../../../abi", default-features = false, features = ["der
ink_core = { path = "../../../../core", default-features = false }
ink_model = { path = "../../../../model", default-features = false }
ink_lang = { path = "../../../../lang", default-features = false }
ink_prelude = { path = "../../../../prelude", default-features = false }
scale = { package = "parity-scale-codec", version = "1.1", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }
......@@ -31,6 +32,7 @@ std = [
"ink_core/std",
"ink_model/std",
"ink_lang/std",
"ink_prelude/std",
"scale/std",
"type-metadata/std",
]
......
......@@ -9,6 +9,7 @@ ink_abi = { path = "../../../abi", default-features = false, features = ["derive
ink_core = { path = "../../../core", default-features = false }
ink_model = { path = "../../../model", default-features = false }
ink_lang = { path = "../../../lang", default-features = false }
ink_prelude = { path = "../../../prelude", default-features = false }
scale = { package = "parity-scale-codec", version = "1.1", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }
......@@ -29,6 +30,7 @@ std = [
"ink_core/std",
"ink_model/std",
"ink_lang/std",
"ink_prelude/std",
"type-metadata/std",
"scale/std",
]
......
......@@ -9,6 +9,7 @@ ink_abi = { path = "../../../abi", default-features = false, features = ["derive
ink_core = { path = "../../../core", default-features = false }
ink_model = { path = "../../../model", default-features = false }
ink_lang = { path = "../../../lang", default-features = false }
ink_prelude = { path = "../../../prelude", default-features = false }
scale = { package = "parity-scale-codec", version = "1.1", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }
......@@ -29,6 +30,7 @@ std = [
"ink_core/std",
"ink_model/std",
"ink_lang/std",
"ink_prelude/std",
"type-metadata/std",
"scale/std",
]
......
......@@ -9,6 +9,7 @@ ink_abi = { path = "../../../abi", default-features = false, features = ["derive
ink_core = { path = "../../../core", default-features = false }
ink_model = { path = "../../../model", default-features = false }
ink_lang = { path = "../../../lang", default-features = false }
ink_prelude = { path = "../../../prelude", default-features = false }
scale = { package = "parity-scale-codec", version = "1.1", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }
......@@ -29,6 +30,7 @@ std = [
"ink_core/std",
"ink_model/std",
"ink_lang/std",
"ink_prelude/std",
"scale/std",
"type-metadata/std",
]
......
......@@ -9,6 +9,7 @@ ink_abi = { path = "../../../abi", default-features = false, features = ["derive
ink_core = { path = "../../../core", default-features = false }
ink_model = { path = "../../../model", default-features = false }
ink_lang = { path = "../../../lang", default-features = false }
ink_prelude = { path = "../../../prelude", default-features = false }
scale = { package = "parity-scale-codec", version = "1.1", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }
......@@ -29,6 +30,7 @@ std = [
"ink_core/std",
"ink_model/std",
"ink_lang/std",
"ink_prelude/std",
"scale/std",
"type-metadata/std",
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment