From c57847f9871b848c8b4d287da888aef24ab5b7d4 Mon Sep 17 00:00:00 2001
From: Shamil <66209982+shamilsan@users.noreply.github.com>
Date: Tue, 22 Aug 2023 11:57:08 +0400
Subject: [PATCH 1/5] chore: clean up example manifests
---
examples/async-custom-entry/Cargo.toml | 7 +-
examples/async-init/Cargo.toml | 1 -
examples/async-recursion/Cargo.toml | 1 -
examples/async-signal-entry/Cargo.toml | 7 +-
examples/async-tester/Cargo.toml | 5 +-
examples/async/Cargo.toml | 1 -
examples/calc-hash/Cargo.toml | 5 +-
examples/calc-hash/in-one-block/Cargo.toml | 5 +-
examples/calc-hash/over-blocks/Cargo.toml | 5 +-
examples/compose/Cargo.toml | 7 +-
examples/constructor/Cargo.toml | 1 -
examples/custom/Cargo.toml | 1 -
examples/delayed-sender/Cargo.toml | 5 +-
examples/distributor/Cargo.toml | 7 +-
examples/fungible-token/Cargo.toml | 1 -
examples/fungible-token/io/Cargo.toml | 1 -
examples/futures-unordered/Cargo.toml | 1 -
examples/gas-burned/Cargo.toml | 5 +-
examples/incomplete-async-payloads/Cargo.toml | 1 -
examples/init-fail-sender/Cargo.toml | 7 +-
examples/init-wait-reply-exit/Cargo.toml | 7 +-
examples/init-wait/Cargo.toml | 7 +-
examples/messager/Cargo.toml | 3 +-
examples/mul-by-const/Cargo.toml | 7 +-
examples/ncompose/Cargo.toml | 7 +-
examples/new-meta/Cargo.toml | 5 +-
examples/new-meta/io/Cargo.toml | 1 -
examples/new-meta/state-v1/Cargo.toml | 1 -
examples/new-meta/state-v2/Cargo.toml | 1 -
examples/new-meta/state-v3/Cargo.toml | 1 -
examples/node/Cargo.toml | 7 +-
examples/out-of-memory/Cargo.toml | 5 +-
examples/piggy-bank/Cargo.toml | 1 -
examples/ping/Cargo.toml | 1 -
examples/program-factory/Cargo.toml | 7 +-
examples/program-generator/Cargo.toml | 1 -
examples/proxy-relay/Cargo.toml | 7 +-
.../proxy-reservation-with-gas/Cargo.toml | 7 +-
examples/proxy/Cargo.toml | 7 +-
examples/read-big-state/Cargo.toml | 1 -
examples/reservation-manager/Cargo.toml | 1 -
examples/reserve-gas/Cargo.toml | 1 -
examples/rwlock/Cargo.toml | 1 -
examples/send-from-reservation/Cargo.toml | 7 +-
examples/signal-entry/Cargo.toml | 7 +-
examples/stack-allocations/Cargo.toml | 1 -
examples/state-rollback/Cargo.toml | 1 -
examples/sync-duplicate/Cargo.toml | 1 -
examples/sys-calls/Cargo.toml | 7 +-
examples/syscall-error/Cargo.toml | 7 +-
examples/vec/Cargo.toml | 1 -
examples/wait-timeout/Cargo.toml | 9 +-
examples/wait/Cargo.toml | 1 -
examples/wait_wake/Cargo.toml | 1 -
examples/waiter/Cargo.toml | 7 +-
examples/waiting-proxy/Cargo.toml | 7 +-
examples/wat/Cargo.toml | 1 -
tomls.txt | 1075 +++++++++++++++++
58 files changed, 1134 insertions(+), 160 deletions(-)
create mode 100644 tomls.txt
diff --git a/examples/async-custom-entry/Cargo.toml b/examples/async-custom-entry/Cargo.toml
index 7a059c0d776..d01a744a8b7 100644
--- a/examples/async-custom-entry/Cargo.toml
+++ b/examples/async-custom-entry/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-async-custom-entry"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"] }
@@ -16,8 +15,6 @@ gear-wasm-builder.workspace = true
[dev-dependencies]
gtest.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = ["parity-scale-codec/std"]
diff --git a/examples/async-init/Cargo.toml b/examples/async-init/Cargo.toml
index 950e247e59d..fde0965c821 100644
--- a/examples/async-init/Cargo.toml
+++ b/examples/async-init/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/async-recursion/Cargo.toml b/examples/async-recursion/Cargo.toml
index 8bdf01eb582..437490c3a54 100644
--- a/examples/async-recursion/Cargo.toml
+++ b/examples/async-recursion/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/async-signal-entry/Cargo.toml b/examples/async-signal-entry/Cargo.toml
index e60c5baaceb..ee5f1f51b62 100644
--- a/examples/async-signal-entry/Cargo.toml
+++ b/examples/async-signal-entry/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-async-signal-entry"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"] }
@@ -16,8 +15,6 @@ gear-wasm-builder.workspace = true
[dev-dependencies]
gtest.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = ["parity-scale-codec/std"]
diff --git a/examples/async-tester/Cargo.toml b/examples/async-tester/Cargo.toml
index 114ec3a62a3..bc1c8db4ad8 100644
--- a/examples/async-tester/Cargo.toml
+++ b/examples/async-tester/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-async-tester"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"] }
diff --git a/examples/async/Cargo.toml b/examples/async/Cargo.toml
index be01a96165c..47678ca0437 100644
--- a/examples/async/Cargo.toml
+++ b/examples/async/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/calc-hash/Cargo.toml b/examples/calc-hash/Cargo.toml
index b61fb33ecf3..fec4610bc79 100644
--- a/examples/calc-hash/Cargo.toml
+++ b/examples/calc-hash/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-calc-hash"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"]}
diff --git a/examples/calc-hash/in-one-block/Cargo.toml b/examples/calc-hash/in-one-block/Cargo.toml
index fcd0da368bb..59c1af47555 100644
--- a/examples/calc-hash/in-one-block/Cargo.toml
+++ b/examples/calc-hash/in-one-block/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-calc-hash-in-one-block"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"]}
diff --git a/examples/calc-hash/over-blocks/Cargo.toml b/examples/calc-hash/over-blocks/Cargo.toml
index f3795a7d0b0..95ed3387da6 100644
--- a/examples/calc-hash/over-blocks/Cargo.toml
+++ b/examples/calc-hash/over-blocks/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-calc-hash-over-blocks"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"]}
diff --git a/examples/compose/Cargo.toml b/examples/compose/Cargo.toml
index ed7edbd9bda..ea7dc3ce8d2 100644
--- a/examples/compose/Cargo.toml
+++ b/examples/compose/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-compose"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
gstd.workspace = true
@@ -13,8 +12,6 @@ hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
[build-dependencies]
gear-wasm-builder.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = []
diff --git a/examples/constructor/Cargo.toml b/examples/constructor/Cargo.toml
index 10782f0558e..90bd70352b0 100644
--- a/examples/constructor/Cargo.toml
+++ b/examples/constructor/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/custom/Cargo.toml b/examples/custom/Cargo.toml
index 164f8415084..fc80e7aabb8 100644
--- a/examples/custom/Cargo.toml
+++ b/examples/custom/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/delayed-sender/Cargo.toml b/examples/delayed-sender/Cargo.toml
index e23c5e2f310..fadf31febda 100644
--- a/examples/delayed-sender/Cargo.toml
+++ b/examples/delayed-sender/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-delayed-sender"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/distributor/Cargo.toml b/examples/distributor/Cargo.toml
index 00d2f03613f..e1e8085020b 100644
--- a/examples/distributor/Cargo.toml
+++ b/examples/distributor/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-distributor"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"] }
@@ -17,8 +16,6 @@ gear-wasm-builder.workspace = true
gstd = { workspace = true, features = ["debug"] }
gtest.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = ["parity-scale-codec/std"]
diff --git a/examples/fungible-token/Cargo.toml b/examples/fungible-token/Cargo.toml
index 11d3a446136..000959e208c 100644
--- a/examples/fungible-token/Cargo.toml
+++ b/examples/fungible-token/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.4"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd = { workspace = true }
diff --git a/examples/fungible-token/io/Cargo.toml b/examples/fungible-token/io/Cargo.toml
index 2f7fefeaa90..59d80d83486 100644
--- a/examples/fungible-token/io/Cargo.toml
+++ b/examples/fungible-token/io/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.4"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../../"
[dependencies]
gstd = { workspace = true }
diff --git a/examples/futures-unordered/Cargo.toml b/examples/futures-unordered/Cargo.toml
index df6d483f4a6..10fd6a80804 100644
--- a/examples/futures-unordered/Cargo.toml
+++ b/examples/futures-unordered/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/gas-burned/Cargo.toml b/examples/gas-burned/Cargo.toml
index 656a5b96c4c..c3bcbfb9aab 100644
--- a/examples/gas-burned/Cargo.toml
+++ b/examples/gas-burned/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-gas-burned"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/incomplete-async-payloads/Cargo.toml b/examples/incomplete-async-payloads/Cargo.toml
index 10dd073012e..733fb5b4f7d 100644
--- a/examples/incomplete-async-payloads/Cargo.toml
+++ b/examples/incomplete-async-payloads/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/init-fail-sender/Cargo.toml b/examples/init-fail-sender/Cargo.toml
index 7406dd2fd2d..5b1aa98a3c6 100644
--- a/examples/init-fail-sender/Cargo.toml
+++ b/examples/init-fail-sender/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-init-fail-sender"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
gstd.workspace = true
@@ -12,8 +11,6 @@ gstd.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = []
diff --git a/examples/init-wait-reply-exit/Cargo.toml b/examples/init-wait-reply-exit/Cargo.toml
index 52f98b3149b..234a5e0178f 100644
--- a/examples/init-wait-reply-exit/Cargo.toml
+++ b/examples/init-wait-reply-exit/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-init-wait-reply-exit"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
gstd.workspace = true
@@ -12,8 +11,6 @@ gstd.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = []
diff --git a/examples/init-wait/Cargo.toml b/examples/init-wait/Cargo.toml
index 8b0d9b0b238..05f2d67d4d3 100644
--- a/examples/init-wait/Cargo.toml
+++ b/examples/init-wait/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-init-wait"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
gstd.workspace = true
@@ -12,8 +11,6 @@ gstd.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = []
diff --git a/examples/messager/Cargo.toml b/examples/messager/Cargo.toml
index cc570e340ab..884b045bec8 100644
--- a/examples/messager/Cargo.toml
+++ b/examples/messager/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-messager"
version = "0.1.0"
authors.workspace = true
-license = "GPL-3.0"
+license.workspace = true
edition.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/mul-by-const/Cargo.toml b/examples/mul-by-const/Cargo.toml
index adbd0248877..57e2d376d0f 100644
--- a/examples/mul-by-const/Cargo.toml
+++ b/examples/mul-by-const/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-mul-by-const"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
gstd.workspace = true
@@ -13,8 +12,6 @@ hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
[build-dependencies]
gear-wasm-builder.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = []
diff --git a/examples/ncompose/Cargo.toml b/examples/ncompose/Cargo.toml
index c5ae98c9182..846db8f57f9 100644
--- a/examples/ncompose/Cargo.toml
+++ b/examples/ncompose/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-ncompose"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
gstd.workspace = true
@@ -13,8 +12,6 @@ hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
[build-dependencies]
gear-wasm-builder.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = []
diff --git a/examples/new-meta/Cargo.toml b/examples/new-meta/Cargo.toml
index fb1bb189f7c..1d7ae947885 100644
--- a/examples/new-meta/Cargo.toml
+++ b/examples/new-meta/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-new-meta"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec.workspace = true
diff --git a/examples/new-meta/io/Cargo.toml b/examples/new-meta/io/Cargo.toml
index 071bf9c8993..b4a3affb0ee 100644
--- a/examples/new-meta/io/Cargo.toml
+++ b/examples/new-meta/io/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../../"
[dependencies]
gmeta = { workspace = true }
diff --git a/examples/new-meta/state-v1/Cargo.toml b/examples/new-meta/state-v1/Cargo.toml
index 901bd45dde5..915bcfdf07f 100644
--- a/examples/new-meta/state-v1/Cargo.toml
+++ b/examples/new-meta/state-v1/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/new-meta/state-v2/Cargo.toml b/examples/new-meta/state-v2/Cargo.toml
index b5c0becefb6..da84f0b246b 100644
--- a/examples/new-meta/state-v2/Cargo.toml
+++ b/examples/new-meta/state-v2/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/new-meta/state-v3/Cargo.toml b/examples/new-meta/state-v3/Cargo.toml
index 379155bff3f..4e49d593ed0 100644
--- a/examples/new-meta/state-v3/Cargo.toml
+++ b/examples/new-meta/state-v3/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/node/Cargo.toml b/examples/node/Cargo.toml
index 097453824e4..80b859cde36 100644
--- a/examples/node/Cargo.toml
+++ b/examples/node/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-node"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"] }
@@ -17,8 +16,6 @@ gear-wasm-builder.workspace = true
gstd = { workspace = true, features = ["debug"] }
gtest.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = ["parity-scale-codec/std"]
diff --git a/examples/out-of-memory/Cargo.toml b/examples/out-of-memory/Cargo.toml
index ac2f3feaa37..e8b49e1699f 100644
--- a/examples/out-of-memory/Cargo.toml
+++ b/examples/out-of-memory/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-out-of-memory"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/piggy-bank/Cargo.toml b/examples/piggy-bank/Cargo.toml
index 77e2791deae..4a1cee16d5f 100644
--- a/examples/piggy-bank/Cargo.toml
+++ b/examples/piggy-bank/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/ping/Cargo.toml b/examples/ping/Cargo.toml
index fa79445e23f..46cabcd31e3 100644
--- a/examples/ping/Cargo.toml
+++ b/examples/ping/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/program-factory/Cargo.toml b/examples/program-factory/Cargo.toml
index 09539fd458c..e9af75b8c6f 100644
--- a/examples/program-factory/Cargo.toml
+++ b/examples/program-factory/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-program-factory"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"] }
@@ -17,8 +16,6 @@ gear-wasm-builder.workspace = true
[dev-dependencies]
gtest.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = ["parity-scale-codec/std"]
diff --git a/examples/program-generator/Cargo.toml b/examples/program-generator/Cargo.toml
index d3c686e1030..e3bd5a7049a 100644
--- a/examples/program-generator/Cargo.toml
+++ b/examples/program-generator/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/proxy-relay/Cargo.toml b/examples/proxy-relay/Cargo.toml
index b12547ba515..b009ba681b1 100644
--- a/examples/proxy-relay/Cargo.toml
+++ b/examples/proxy-relay/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-proxy-relay"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"] }
@@ -14,8 +13,6 @@ scale-info = { workspace = true, features = ["derive"] }
[build-dependencies]
gear-wasm-builder.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = ["parity-scale-codec/std", "scale-info/std"]
diff --git a/examples/proxy-reservation-with-gas/Cargo.toml b/examples/proxy-reservation-with-gas/Cargo.toml
index 4371dac5811..700c2ca6d32 100644
--- a/examples/proxy-reservation-with-gas/Cargo.toml
+++ b/examples/proxy-reservation-with-gas/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-proxy-reservation-with-gas"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"] }
@@ -14,8 +13,6 @@ scale-info = { workspace = true, features = ["derive"] }
[build-dependencies]
gear-wasm-builder.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = ["parity-scale-codec/std", "scale-info/std"]
diff --git a/examples/proxy/Cargo.toml b/examples/proxy/Cargo.toml
index e3603c7e609..2cde888e83d 100644
--- a/examples/proxy/Cargo.toml
+++ b/examples/proxy/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-proxy"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
gstd = { workspace = true }
@@ -14,8 +13,6 @@ scale-info = { workspace = true, features = ["derive"] }
[build-dependencies]
gear-wasm-builder.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
wasm-wrapper = []
diff --git a/examples/read-big-state/Cargo.toml b/examples/read-big-state/Cargo.toml
index 8468f7fcadd..956d2c7c54b 100644
--- a/examples/read-big-state/Cargo.toml
+++ b/examples/read-big-state/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/reservation-manager/Cargo.toml b/examples/reservation-manager/Cargo.toml
index df7f282d5ff..9e7cf0d5186 100644
--- a/examples/reservation-manager/Cargo.toml
+++ b/examples/reservation-manager/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/reserve-gas/Cargo.toml b/examples/reserve-gas/Cargo.toml
index aef27afb79c..4ebc3e193b2 100644
--- a/examples/reserve-gas/Cargo.toml
+++ b/examples/reserve-gas/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/rwlock/Cargo.toml b/examples/rwlock/Cargo.toml
index 2d9f2e5bf74..f82785132ca 100644
--- a/examples/rwlock/Cargo.toml
+++ b/examples/rwlock/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd = { workspace = true, features = ["debug"] }
diff --git a/examples/send-from-reservation/Cargo.toml b/examples/send-from-reservation/Cargo.toml
index 0cfee5b00e8..b095b852fe5 100644
--- a/examples/send-from-reservation/Cargo.toml
+++ b/examples/send-from-reservation/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-send-from-reservation"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"] }
@@ -16,8 +15,6 @@ gear-wasm-builder.workspace = true
[dev-dependencies]
gtest.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = ["parity-scale-codec/std"]
diff --git a/examples/signal-entry/Cargo.toml b/examples/signal-entry/Cargo.toml
index 4216fab2909..708b63893c9 100644
--- a/examples/signal-entry/Cargo.toml
+++ b/examples/signal-entry/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-signal-entry"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
gstd.workspace = true
@@ -16,8 +15,6 @@ gear-wasm-builder.workspace = true
[dev-dependencies]
gtest.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = []
diff --git a/examples/stack-allocations/Cargo.toml b/examples/stack-allocations/Cargo.toml
index 5cf923ff1e8..d3ec7a51e95 100644
--- a/examples/stack-allocations/Cargo.toml
+++ b/examples/stack-allocations/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/state-rollback/Cargo.toml b/examples/state-rollback/Cargo.toml
index 99d46e405c5..df652d9f995 100644
--- a/examples/state-rollback/Cargo.toml
+++ b/examples/state-rollback/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/sync-duplicate/Cargo.toml b/examples/sync-duplicate/Cargo.toml
index 8f9ae9d0e87..9d95387d7e1 100644
--- a/examples/sync-duplicate/Cargo.toml
+++ b/examples/sync-duplicate/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/sys-calls/Cargo.toml b/examples/sys-calls/Cargo.toml
index ba8908b4021..6ab1914d0fa 100644
--- a/examples/sys-calls/Cargo.toml
+++ b/examples/sys-calls/Cargo.toml
@@ -2,9 +2,8 @@
name = "test-syscalls"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
gstd = { workspace = true }
@@ -13,8 +12,6 @@ parity-scale-codec = { workspace = true, features = ["derive"] }
[build-dependencies]
gear-wasm-builder.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
wasm-wrapper = []
diff --git a/examples/syscall-error/Cargo.toml b/examples/syscall-error/Cargo.toml
index 885b3139f81..5c7155134f4 100644
--- a/examples/syscall-error/Cargo.toml
+++ b/examples/syscall-error/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-syscall-error"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"] }
@@ -17,8 +16,6 @@ gear-wasm-builder.workspace = true
[dev-dependencies]
gtest.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = ["parity-scale-codec/std"]
diff --git a/examples/vec/Cargo.toml b/examples/vec/Cargo.toml
index 1d9d8417fba..d428636ee9f 100644
--- a/examples/vec/Cargo.toml
+++ b/examples/vec/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd = { workspace = true, features = ["debug"] }
diff --git a/examples/wait-timeout/Cargo.toml b/examples/wait-timeout/Cargo.toml
index dcd5f2521bd..1650a625443 100644
--- a/examples/wait-timeout/Cargo.toml
+++ b/examples/wait-timeout/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-wait-timeout"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"] }
@@ -14,10 +13,6 @@ futures = { version = "0.3", default-features = false, features = ["alloc"] }
[build-dependencies]
gear-wasm-builder.workspace = true
-[dev-dependencies]
-
-[lib]
-
[features]
debug = ["gstd/debug"]
std = ["parity-scale-codec/std"]
diff --git a/examples/wait/Cargo.toml b/examples/wait/Cargo.toml
index 172e9f4cc06..c45a661cddc 100644
--- a/examples/wait/Cargo.toml
+++ b/examples/wait/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/wait_wake/Cargo.toml b/examples/wait_wake/Cargo.toml
index 0f23aad78dc..adf86e08c8f 100644
--- a/examples/wait_wake/Cargo.toml
+++ b/examples/wait_wake/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
gstd.workspace = true
diff --git a/examples/waiter/Cargo.toml b/examples/waiter/Cargo.toml
index a72ef94b3a5..f978e3d2fda 100644
--- a/examples/waiter/Cargo.toml
+++ b/examples/waiter/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-waiter"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
parity-scale-codec = { workspace = true, features = ["derive"] }
@@ -19,8 +18,6 @@ gtest.workspace = true
gear-core.workspace = true
demo-waiter = { path = ".", features = ["debug"] }
-[lib]
-
[features]
debug = ["gstd/debug"]
std = ["parity-scale-codec/std"]
diff --git a/examples/waiting-proxy/Cargo.toml b/examples/waiting-proxy/Cargo.toml
index 9ae7ce44ea6..381cc50e7e0 100644
--- a/examples/waiting-proxy/Cargo.toml
+++ b/examples/waiting-proxy/Cargo.toml
@@ -2,9 +2,8 @@
name = "demo-waiting-proxy"
version = "0.1.0"
authors.workspace = true
-edition = "2021"
-license = "GPL-3.0"
-workspace = "../../"
+edition.workspace = true
+license.workspace = true
[dependencies]
gstd.workspace = true
@@ -12,8 +11,6 @@ gstd.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
-[lib]
-
[features]
debug = ["gstd/debug"]
std = []
diff --git a/examples/wat/Cargo.toml b/examples/wat/Cargo.toml
index 9ea0380a9bb..c87112a7f83 100644
--- a/examples/wat/Cargo.toml
+++ b/examples/wat/Cargo.toml
@@ -4,7 +4,6 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
-workspace = "../../"
[dependencies]
hex = { workspace = true, features = ["alloc"] }
diff --git a/tomls.txt b/tomls.txt
new file mode 100644
index 00000000000..bf859419e7e
--- /dev/null
+++ b/tomls.txt
@@ -0,0 +1,1075 @@
+[package]
+name = "demo-read-big-state"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+parity-scale-codec = { workspace = true, features = ["derive"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+default = ["std"]
+std = []
+[package]
+name = "demo-wait"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+gcore.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug", "gcore/debug"]
+default = ["std"]
+std = []
+[package]
+name = "demo-ping"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+default = ["std"]
+std = []
+[package]
+name = "demo-program-generator"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+hex-literal.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+default = ["std"]
+std = []
+[package]
+name = "demo-calc-hash"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"]}
+sha2 = { version = "0.10.6", default-features = false }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+[package]
+name = "demo-calc-hash-over-blocks"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"]}
+gstd.workspace = true
+shared = { path = "../", package = "demo-calc-hash" }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-calc-hash-in-one-block"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"]}
+gstd.workspace = true
+shared = { path = "..", package = "demo-calc-hash" }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = [ "std" ]
+[package]
+name = "demo-init-wait-reply-exit"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-proxy"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd = { workspace = true }
+parity-scale-codec = { workspace = true, features = ["derive"] }
+scale-info = { workspace = true, features = ["derive"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+wasm-wrapper = []
+std = ["wasm-wrapper", "parity-scale-codec/std", "scale-info/std"]
+default = ["std"]
+[package]
+name = "demo-messager"
+version = "0.1.0"
+authors.workspace = true
+license.workspace = true
+edition.workspace = true
+
+[dependencies]
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+std = []
+default = ["std"]
+[package]
+name = "demo-sync-duplicate"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+default = ["std"]
+std = []
+[package]
+name = "demo-ncompose"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-init-wait"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-async-tester"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"] }
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-rwlock"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd = { workspace = true, features = ["debug"] }
+parity-scale-codec = { workspace = true, features = ["derive"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+default = ["std"]
+std = []
+[package]
+name = "demo-mul-by-const"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-async-custom-entry"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"] }
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gtest.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = ["parity-scale-codec/std"]
+default = ["std"]
+[package]
+name = "demo-piggy-bank"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+default = ["std"]
+std = []
+[package]
+name = "demo-compose"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-send-from-reservation"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"] }
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gtest.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = ["parity-scale-codec/std"]
+default = ["std"]
+[package]
+name = "demo-async"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+parity-scale-codec = { workspace = true, features = ["derive"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+default = ["std"]
+std = []
+[package]
+name = "demo-state-rollback"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+default = ["std"]
+std = []
+[package]
+name = "demo-async-init"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+parity-scale-codec = { workspace = true, features = ["derive"] }
+futures = { workspace = true, features = ["alloc"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+default = ["std"]
+std = []
+[package]
+name = "demo-reserve-gas"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+parity-scale-codec = { workspace = true, features = ["derive"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gtest.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-proxy-reservation-with-gas"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"] }
+gstd.workspace = true
+scale-info = { workspace = true, features = ["derive"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = ["parity-scale-codec/std", "scale-info/std"]
+default = ["std"]
+[package]
+name = "demo-gas-burned"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gtest.workspace = true
+log.workspace = true
+
+[features]
+std = []
+default = ["std"]
+[package]
+name = "demo-reservation-manager"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+parity-scale-codec = { workspace = true, features = ["derive"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gtest.workspace = true
+
+[features]
+std = ["parity-scale-codec/std"]
+default = ["std"]
+[package]
+name = "demo-vec"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd = { workspace = true, features = ["debug"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+default = ["std"]
+std = []
+[package]
+name = "demo-wait-wake"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+parity-scale-codec = { workspace = true, features = ["derive"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gtest.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-wait-timeout"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"] }
+gstd.workspace = true
+futures = { version = "0.3", default-features = false, features = ["alloc"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = ["parity-scale-codec/std"]
+default = ["std"]
+[package]
+name = "demo-waiter"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"] }
+futures.workspace = true
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gtest.workspace = true
+gear-core.workspace = true
+demo-waiter = { path = ".", features = ["debug"] }
+
+[features]
+debug = ["gstd/debug"]
+std = ["parity-scale-codec/std"]
+default = ["std"]
+[package]
+name = "demo-init-fail-sender"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "test-syscalls"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd = { workspace = true }
+parity-scale-codec = { workspace = true, features = ["derive"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+wasm-wrapper = []
+std = ["wasm-wrapper", "parity-scale-codec/std"]
+default = ["std"]
+[package]
+name = "demo-waiting-proxy"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-out-of-memory"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-distributor"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"] }
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gstd = { workspace = true, features = ["debug"] }
+gtest.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = ["parity-scale-codec/std"]
+default = ["std"]
+[package]
+name = "demo-delayed-sender"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = [ ]
+default = ["std"]
+[package]
+name = "demo-syscall-error"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"] }
+gstd.workspace = true
+gsys.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gtest.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = ["parity-scale-codec/std"]
+default = ["std"]
+[package]
+name = "demo-wat"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+hex = { workspace = true, features = ["alloc"] }
+wabt.workspace = true
+[package]
+name = "demo-proxy-relay"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"] }
+gstd.workspace = true
+scale-info = { workspace = true, features = ["derive"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = ["parity-scale-codec/std", "scale-info/std"]
+default = ["std"]
+[package]
+name = "demo-stack-allocations"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+parity-scale-codec = { workspace = true, features = ["derive"] }
+
+[dev-dependencies]
+gtest.workspace = true
+rand_pcg = { workspace = true }
+rand = "0.8"
+static_assertions.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-signal-entry"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+parity-scale-codec = { workspace = true, features = ["derive"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gtest.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-node"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"] }
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gstd = { workspace = true, features = ["debug"] }
+gtest.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = ["parity-scale-codec/std"]
+default = ["std"]
+[package]
+name = "demo-custom"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+gsys.workspace = true
+parity-scale-codec.workspace = true
+
+[dev-dependencies]
+gtest.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+default = ["std"]
+std = []
+[package]
+name = "demo-incomplete-async-payloads"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+parity-scale-codec = { workspace = true, features = ["derive"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+default = ["std"]
+std = []
+[package]
+name = "demo-async-recursion"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+async-recursion.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+default = ["std"]
+std = []
+[package]
+name = "demo-async-signal-entry"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"] }
+gstd.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gtest.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = ["parity-scale-codec/std"]
+default = ["std"]
+[package]
+name = "demo-program-factory"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec = { workspace = true, features = ["derive"] }
+gstd.workspace = true
+hex-literal = "*"
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gtest.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = ["parity-scale-codec/std"]
+default = ["std"]
+[package]
+name = "demo-new-meta"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+parity-scale-codec.workspace = true
+demo-meta-io = { path = "io" }
+demo-meta-state-v1 = { path = "state-v1", default-features = false, optional = true }
+demo-meta-state-v2 = { path = "state-v2", default-features = false, optional = true }
+demo-meta-state-v3 = { path = "state-v3", default-features = false, optional = true }
+gstd.workspace = true
+
+[build-dependencies]
+demo-meta-io = { path = "io" }
+gear-wasm-builder.workspace = true
+
+[dev-dependencies]
+gtest.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+default = ["std"]
+std = [
+ "demo-meta-state-v1/std",
+ "demo-meta-state-v2/std",
+ "demo-meta-state-v3/std",
+ "parity-scale-codec/std",
+]
+[package]
+name = "demo-meta-state-v2"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+# workspace = "../../../"
+
+[dependencies]
+gstd.workspace = true
+gmeta = { workspace = true, features = ["codegen"] }
+demo-meta-io = { path = "../io" }
+
+[build-dependencies]
+gear-wasm-builder = { workspace = true, features = ["metawasm"] }
+
+[features]
+default = ["std"]
+std = []
+[package]
+name = "demo-meta-state-v3"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+# workspace = "../../../"
+
+[dependencies]
+gstd.workspace = true
+gmeta = { workspace = true, features = ["codegen"] }
+demo-meta-io = { path = "../io" }
+
+[build-dependencies]
+gear-wasm-builder = { workspace = true, features = ["metawasm"] }
+
+[features]
+default = ["std"]
+std = []
+[package]
+name = "demo-meta-io"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gmeta = { workspace = true }
+scale-info = { workspace = true, features = ["derive"] }
+parity-scale-codec = { workspace = true, features = ["derive"] }
+[package]
+name = "demo-meta-state-v1"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+# workspace = "../../../"
+
+[dependencies]
+gstd.workspace = true
+gmeta = { workspace = true, features = ["codegen"] }
+demo-meta-io = { path = "../io" }
+
+[build-dependencies]
+gear-wasm-builder = { workspace = true, features = ["metawasm"] }
+
+[features]
+default = ["std"]
+std = []
+[package]
+name = "demo-constructor"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+parity-scale-codec = { workspace = true, features = ["derive"] }
+hex.workspace = true
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "demo-fungible-token"
+version = "0.1.4"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd = { workspace = true }
+hashbrown = { workspace = true }
+gmeta = { workspace = true }
+ft-io = { path = "io" }
+
+[dev-dependencies]
+gstd = { workspace = true, features = ["debug"] }
+gear-core.workspace = true
+tokio = { workspace = true, features = ["full", "test-util"] }
+gclient = { workspace = true }
+futures = "0.3"
+rand = { version = "0.8" }
+statrs = "0.16"
+
+[build-dependencies]
+gear-wasm-builder = { workspace = true }
+
+[features]
+debug = ["gstd/debug"]
+std = []
+default = ["std"]
+[package]
+name = "ft-io"
+version = "0.1.4"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd = { workspace = true }
+gmeta = { workspace = true }
+[package]
+name = "demo-futures-unordered"
+version = "0.1.0"
+authors.workspace = true
+edition.workspace = true
+license.workspace = true
+
+[dependencies]
+gstd.workspace = true
+parity-scale-codec = { workspace = true, features = ["derive"] }
+futures = { workspace = true, features = ["alloc", "async-await"] }
+
+[build-dependencies]
+gear-wasm-builder.workspace = true
+
+[features]
+debug = ["gstd/debug"]
+default = ["std"]
+std = []
From 60901f40a68acd273a31aab0d1f897ba8c573e1d Mon Sep 17 00:00:00 2001
From: Shamil <66209982+shamilsan@users.noreply.github.com>
Date: Tue, 22 Aug 2023 11:58:48 +0400
Subject: [PATCH 2/5] chore: remove crap
---
tomls.txt | 1075 -----------------------------------------------------
1 file changed, 1075 deletions(-)
delete mode 100644 tomls.txt
diff --git a/tomls.txt b/tomls.txt
deleted file mode 100644
index bf859419e7e..00000000000
--- a/tomls.txt
+++ /dev/null
@@ -1,1075 +0,0 @@
-[package]
-name = "demo-read-big-state"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-default = ["std"]
-std = []
-[package]
-name = "demo-wait"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-gcore.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug", "gcore/debug"]
-default = ["std"]
-std = []
-[package]
-name = "demo-ping"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-default = ["std"]
-std = []
-[package]
-name = "demo-program-generator"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-hex-literal.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-default = ["std"]
-std = []
-[package]
-name = "demo-calc-hash"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"]}
-sha2 = { version = "0.10.6", default-features = false }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-[package]
-name = "demo-calc-hash-over-blocks"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"]}
-gstd.workspace = true
-shared = { path = "../", package = "demo-calc-hash" }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-calc-hash-in-one-block"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"]}
-gstd.workspace = true
-shared = { path = "..", package = "demo-calc-hash" }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = [ "std" ]
-[package]
-name = "demo-init-wait-reply-exit"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-proxy"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd = { workspace = true }
-parity-scale-codec = { workspace = true, features = ["derive"] }
-scale-info = { workspace = true, features = ["derive"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-wasm-wrapper = []
-std = ["wasm-wrapper", "parity-scale-codec/std", "scale-info/std"]
-default = ["std"]
-[package]
-name = "demo-messager"
-version = "0.1.0"
-authors.workspace = true
-license.workspace = true
-edition.workspace = true
-
-[dependencies]
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-std = []
-default = ["std"]
-[package]
-name = "demo-sync-duplicate"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-default = ["std"]
-std = []
-[package]
-name = "demo-ncompose"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-init-wait"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-async-tester"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-rwlock"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd = { workspace = true, features = ["debug"] }
-parity-scale-codec = { workspace = true, features = ["derive"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-default = ["std"]
-std = []
-[package]
-name = "demo-mul-by-const"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-async-custom-entry"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gtest.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = ["parity-scale-codec/std"]
-default = ["std"]
-[package]
-name = "demo-piggy-bank"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-default = ["std"]
-std = []
-[package]
-name = "demo-compose"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-send-from-reservation"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gtest.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = ["parity-scale-codec/std"]
-default = ["std"]
-[package]
-name = "demo-async"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-default = ["std"]
-std = []
-[package]
-name = "demo-state-rollback"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-default = ["std"]
-std = []
-[package]
-name = "demo-async-init"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
-futures = { workspace = true, features = ["alloc"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-default = ["std"]
-std = []
-[package]
-name = "demo-reserve-gas"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gtest.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-proxy-reservation-with-gas"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
-gstd.workspace = true
-scale-info = { workspace = true, features = ["derive"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = ["parity-scale-codec/std", "scale-info/std"]
-default = ["std"]
-[package]
-name = "demo-gas-burned"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gtest.workspace = true
-log.workspace = true
-
-[features]
-std = []
-default = ["std"]
-[package]
-name = "demo-reservation-manager"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gtest.workspace = true
-
-[features]
-std = ["parity-scale-codec/std"]
-default = ["std"]
-[package]
-name = "demo-vec"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd = { workspace = true, features = ["debug"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-default = ["std"]
-std = []
-[package]
-name = "demo-wait-wake"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gtest.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-wait-timeout"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
-gstd.workspace = true
-futures = { version = "0.3", default-features = false, features = ["alloc"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = ["parity-scale-codec/std"]
-default = ["std"]
-[package]
-name = "demo-waiter"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
-futures.workspace = true
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gtest.workspace = true
-gear-core.workspace = true
-demo-waiter = { path = ".", features = ["debug"] }
-
-[features]
-debug = ["gstd/debug"]
-std = ["parity-scale-codec/std"]
-default = ["std"]
-[package]
-name = "demo-init-fail-sender"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "test-syscalls"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd = { workspace = true }
-parity-scale-codec = { workspace = true, features = ["derive"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-wasm-wrapper = []
-std = ["wasm-wrapper", "parity-scale-codec/std"]
-default = ["std"]
-[package]
-name = "demo-waiting-proxy"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-out-of-memory"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-distributor"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gstd = { workspace = true, features = ["debug"] }
-gtest.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = ["parity-scale-codec/std"]
-default = ["std"]
-[package]
-name = "demo-delayed-sender"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = [ ]
-default = ["std"]
-[package]
-name = "demo-syscall-error"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
-gstd.workspace = true
-gsys.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gtest.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = ["parity-scale-codec/std"]
-default = ["std"]
-[package]
-name = "demo-wat"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-hex = { workspace = true, features = ["alloc"] }
-wabt.workspace = true
-[package]
-name = "demo-proxy-relay"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
-gstd.workspace = true
-scale-info = { workspace = true, features = ["derive"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = ["parity-scale-codec/std", "scale-info/std"]
-default = ["std"]
-[package]
-name = "demo-stack-allocations"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
-
-[dev-dependencies]
-gtest.workspace = true
-rand_pcg = { workspace = true }
-rand = "0.8"
-static_assertions.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-signal-entry"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gtest.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-node"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gstd = { workspace = true, features = ["debug"] }
-gtest.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = ["parity-scale-codec/std"]
-default = ["std"]
-[package]
-name = "demo-custom"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-gsys.workspace = true
-parity-scale-codec.workspace = true
-
-[dev-dependencies]
-gtest.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-default = ["std"]
-std = []
-[package]
-name = "demo-incomplete-async-payloads"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-default = ["std"]
-std = []
-[package]
-name = "demo-async-recursion"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-async-recursion.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-default = ["std"]
-std = []
-[package]
-name = "demo-async-signal-entry"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
-gstd.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gtest.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = ["parity-scale-codec/std"]
-default = ["std"]
-[package]
-name = "demo-program-factory"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
-gstd.workspace = true
-hex-literal = "*"
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gtest.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = ["parity-scale-codec/std"]
-default = ["std"]
-[package]
-name = "demo-new-meta"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-parity-scale-codec.workspace = true
-demo-meta-io = { path = "io" }
-demo-meta-state-v1 = { path = "state-v1", default-features = false, optional = true }
-demo-meta-state-v2 = { path = "state-v2", default-features = false, optional = true }
-demo-meta-state-v3 = { path = "state-v3", default-features = false, optional = true }
-gstd.workspace = true
-
-[build-dependencies]
-demo-meta-io = { path = "io" }
-gear-wasm-builder.workspace = true
-
-[dev-dependencies]
-gtest.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-default = ["std"]
-std = [
- "demo-meta-state-v1/std",
- "demo-meta-state-v2/std",
- "demo-meta-state-v3/std",
- "parity-scale-codec/std",
-]
-[package]
-name = "demo-meta-state-v2"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-# workspace = "../../../"
-
-[dependencies]
-gstd.workspace = true
-gmeta = { workspace = true, features = ["codegen"] }
-demo-meta-io = { path = "../io" }
-
-[build-dependencies]
-gear-wasm-builder = { workspace = true, features = ["metawasm"] }
-
-[features]
-default = ["std"]
-std = []
-[package]
-name = "demo-meta-state-v3"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-# workspace = "../../../"
-
-[dependencies]
-gstd.workspace = true
-gmeta = { workspace = true, features = ["codegen"] }
-demo-meta-io = { path = "../io" }
-
-[build-dependencies]
-gear-wasm-builder = { workspace = true, features = ["metawasm"] }
-
-[features]
-default = ["std"]
-std = []
-[package]
-name = "demo-meta-io"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gmeta = { workspace = true }
-scale-info = { workspace = true, features = ["derive"] }
-parity-scale-codec = { workspace = true, features = ["derive"] }
-[package]
-name = "demo-meta-state-v1"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-# workspace = "../../../"
-
-[dependencies]
-gstd.workspace = true
-gmeta = { workspace = true, features = ["codegen"] }
-demo-meta-io = { path = "../io" }
-
-[build-dependencies]
-gear-wasm-builder = { workspace = true, features = ["metawasm"] }
-
-[features]
-default = ["std"]
-std = []
-[package]
-name = "demo-constructor"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
-hex.workspace = true
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "demo-fungible-token"
-version = "0.1.4"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd = { workspace = true }
-hashbrown = { workspace = true }
-gmeta = { workspace = true }
-ft-io = { path = "io" }
-
-[dev-dependencies]
-gstd = { workspace = true, features = ["debug"] }
-gear-core.workspace = true
-tokio = { workspace = true, features = ["full", "test-util"] }
-gclient = { workspace = true }
-futures = "0.3"
-rand = { version = "0.8" }
-statrs = "0.16"
-
-[build-dependencies]
-gear-wasm-builder = { workspace = true }
-
-[features]
-debug = ["gstd/debug"]
-std = []
-default = ["std"]
-[package]
-name = "ft-io"
-version = "0.1.4"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd = { workspace = true }
-gmeta = { workspace = true }
-[package]
-name = "demo-futures-unordered"
-version = "0.1.0"
-authors.workspace = true
-edition.workspace = true
-license.workspace = true
-
-[dependencies]
-gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
-futures = { workspace = true, features = ["alloc", "async-await"] }
-
-[build-dependencies]
-gear-wasm-builder.workspace = true
-
-[features]
-debug = ["gstd/debug"]
-default = ["std"]
-std = []
From a63211659bc1ea3b304e6589dde05a3d89e86871 Mon Sep 17 00:00:00 2001
From: Shamil <66209982+shamilsan@users.noreply.github.com>
Date: Tue, 22 Aug 2023 13:54:01 +0400
Subject: [PATCH 3/5] chore: address comments
---
examples/async-custom-entry/Cargo.toml | 4 +++-
examples/async-init/Cargo.toml | 6 ++++--
examples/async-recursion/Cargo.toml | 2 ++
examples/async-signal-entry/Cargo.toml | 4 +++-
examples/async-tester/Cargo.toml | 4 +++-
examples/async/Cargo.toml | 4 +++-
examples/calc-hash/Cargo.toml | 4 +++-
examples/calc-hash/in-one-block/Cargo.toml | 4 +++-
examples/calc-hash/over-blocks/Cargo.toml | 4 +++-
examples/compose/Cargo.toml | 4 +++-
examples/constructor/Cargo.toml | 4 +++-
examples/custom/Cargo.toml | 2 ++
examples/delayed-sender/Cargo.toml | 2 ++
examples/distributor/Cargo.toml | 4 +++-
examples/fungible-token/Cargo.toml | 18 ++++++++++--------
examples/fungible-token/io/Cargo.toml | 6 ++++--
examples/futures-unordered/Cargo.toml | 6 ++++--
examples/gas-burned/Cargo.toml | 2 ++
examples/incomplete-async-payloads/Cargo.toml | 4 +++-
examples/init-fail-sender/Cargo.toml | 2 ++
examples/init-wait-reply-exit/Cargo.toml | 2 ++
examples/init-wait/Cargo.toml | 2 ++
examples/mul-by-const/Cargo.toml | 4 +++-
examples/ncompose/Cargo.toml | 4 +++-
examples/new-meta/Cargo.toml | 4 +++-
examples/new-meta/io/Cargo.toml | 8 +++++---
examples/new-meta/state-v1/Cargo.toml | 2 ++
examples/new-meta/state-v2/Cargo.toml | 2 ++
examples/new-meta/state-v3/Cargo.toml | 2 ++
examples/node/Cargo.toml | 4 +++-
examples/out-of-memory/Cargo.toml | 2 ++
examples/piggy-bank/Cargo.toml | 2 ++
examples/ping/Cargo.toml | 2 ++
examples/program-factory/Cargo.toml | 6 ++++--
examples/program-generator/Cargo.toml | 2 ++
examples/proxy-relay/Cargo.toml | 6 ++++--
examples/proxy-reservation-with-gas/Cargo.toml | 6 ++++--
examples/proxy/Cargo.toml | 8 +++++---
examples/read-big-state/Cargo.toml | 4 +++-
examples/reservation-manager/Cargo.toml | 4 +++-
examples/reserve-gas/Cargo.toml | 4 +++-
examples/rwlock/Cargo.toml | 4 +++-
examples/send-from-reservation/Cargo.toml | 4 +++-
examples/signal-entry/Cargo.toml | 4 +++-
examples/stack-allocations/Cargo.toml | 8 +++++---
examples/state-rollback/Cargo.toml | 2 ++
examples/sync-duplicate/Cargo.toml | 2 ++
examples/sys-calls/Cargo.toml | 6 ++++--
examples/syscall-error/Cargo.toml | 4 +++-
examples/vec/Cargo.toml | 2 ++
examples/wait-timeout/Cargo.toml | 6 ++++--
examples/wait/Cargo.toml | 2 ++
examples/wait_wake/Cargo.toml | 4 +++-
examples/waiter/Cargo.toml | 8 +++++---
examples/waiting-proxy/Cargo.toml | 2 ++
examples/wat/Cargo.toml | 4 +++-
56 files changed, 172 insertions(+), 60 deletions(-)
diff --git a/examples/async-custom-entry/Cargo.toml b/examples/async-custom-entry/Cargo.toml
index d01a744a8b7..ce820c11930 100644
--- a/examples/async-custom-entry/Cargo.toml
+++ b/examples/async-custom-entry/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
gstd.workspace = true
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/async-init/Cargo.toml b/examples/async-init/Cargo.toml
index fde0965c821..eb2eb78d4b6 100644
--- a/examples/async-init/Cargo.toml
+++ b/examples/async-init/Cargo.toml
@@ -4,11 +4,13 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
-futures = { workspace = true, features = ["alloc"] }
+parity-scale-codec.workspace = true
+futures.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/async-recursion/Cargo.toml b/examples/async-recursion/Cargo.toml
index 437490c3a54..99fc3c4f579 100644
--- a/examples/async-recursion/Cargo.toml
+++ b/examples/async-recursion/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/async-signal-entry/Cargo.toml b/examples/async-signal-entry/Cargo.toml
index ee5f1f51b62..66067c35b43 100644
--- a/examples/async-signal-entry/Cargo.toml
+++ b/examples/async-signal-entry/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
gstd.workspace = true
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/async-tester/Cargo.toml b/examples/async-tester/Cargo.toml
index bc1c8db4ad8..4e75128315a 100644
--- a/examples/async-tester/Cargo.toml
+++ b/examples/async-tester/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
gstd.workspace = true
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/async/Cargo.toml b/examples/async/Cargo.toml
index 47678ca0437..45a6b2ddb94 100644
--- a/examples/async/Cargo.toml
+++ b/examples/async/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/calc-hash/Cargo.toml b/examples/calc-hash/Cargo.toml
index fec4610bc79..41a8bd8947a 100644
--- a/examples/calc-hash/Cargo.toml
+++ b/examples/calc-hash/Cargo.toml
@@ -4,9 +4,11 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"]}
+parity-scale-codec.workspace = true
sha2 = { version = "0.10.6", default-features = false }
[build-dependencies]
diff --git a/examples/calc-hash/in-one-block/Cargo.toml b/examples/calc-hash/in-one-block/Cargo.toml
index 59c1af47555..7192e5baca9 100644
--- a/examples/calc-hash/in-one-block/Cargo.toml
+++ b/examples/calc-hash/in-one-block/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"]}
gstd.workspace = true
+parity-scale-codec.workspace = true
shared = { path = "..", package = "demo-calc-hash" }
[build-dependencies]
diff --git a/examples/calc-hash/over-blocks/Cargo.toml b/examples/calc-hash/over-blocks/Cargo.toml
index 95ed3387da6..5d93098fe37 100644
--- a/examples/calc-hash/over-blocks/Cargo.toml
+++ b/examples/calc-hash/over-blocks/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"]}
gstd.workspace = true
+parity-scale-codec.workspace = true
shared = { path = "../", package = "demo-calc-hash" }
[build-dependencies]
diff --git a/examples/compose/Cargo.toml b/examples/compose/Cargo.toml
index ea7dc3ce8d2..bd4a1891822 100644
--- a/examples/compose/Cargo.toml
+++ b/examples/compose/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
+hex.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/constructor/Cargo.toml b/examples/constructor/Cargo.toml
index 90bd70352b0..e1dc39d3567 100644
--- a/examples/constructor/Cargo.toml
+++ b/examples/constructor/Cargo.toml
@@ -4,11 +4,13 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
hex.workspace = true
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/custom/Cargo.toml b/examples/custom/Cargo.toml
index fc80e7aabb8..bcf618a3c63 100644
--- a/examples/custom/Cargo.toml
+++ b/examples/custom/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/delayed-sender/Cargo.toml b/examples/delayed-sender/Cargo.toml
index fadf31febda..c07ea044711 100644
--- a/examples/delayed-sender/Cargo.toml
+++ b/examples/delayed-sender/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/distributor/Cargo.toml b/examples/distributor/Cargo.toml
index e1e8085020b..73887d6fd87 100644
--- a/examples/distributor/Cargo.toml
+++ b/examples/distributor/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
gstd.workspace = true
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/fungible-token/Cargo.toml b/examples/fungible-token/Cargo.toml
index 000959e208c..18d977de144 100644
--- a/examples/fungible-token/Cargo.toml
+++ b/examples/fungible-token/Cargo.toml
@@ -4,24 +4,26 @@ version = "0.1.4"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-gstd = { workspace = true }
-hashbrown = { workspace = true }
-gmeta = { workspace = true }
+gstd.workspace = true
+hashbrown.workspace = true
+gmeta.workspace = true
ft-io = { path = "io" }
[dev-dependencies]
gstd = { workspace = true, features = ["debug"] }
gear-core.workspace = true
-tokio = { workspace = true, features = ["full", "test-util"] }
-gclient = { workspace = true }
-futures = "0.3"
-rand = { version = "0.8" }
+tokio.workspace = true
+gclient.workspace = true
+futures.workspace = true
+rand.workspace = true
statrs = "0.16"
[build-dependencies]
-gear-wasm-builder = { workspace = true }
+gear-wasm-builder.workspace = true
[features]
debug = ["gstd/debug"]
diff --git a/examples/fungible-token/io/Cargo.toml b/examples/fungible-token/io/Cargo.toml
index 59d80d83486..7fd0537bf5c 100644
--- a/examples/fungible-token/io/Cargo.toml
+++ b/examples/fungible-token/io/Cargo.toml
@@ -4,7 +4,9 @@ version = "0.1.4"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-gstd = { workspace = true }
-gmeta = { workspace = true }
+gstd.workspace = true
+gmeta.workspace = true
diff --git a/examples/futures-unordered/Cargo.toml b/examples/futures-unordered/Cargo.toml
index 10fd6a80804..b20a78af317 100644
--- a/examples/futures-unordered/Cargo.toml
+++ b/examples/futures-unordered/Cargo.toml
@@ -4,11 +4,13 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
-futures = { workspace = true, features = ["alloc", "async-await"] }
+parity-scale-codec.workspace = true
+futures = { workspace = true, features = ["async-await"] }
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/gas-burned/Cargo.toml b/examples/gas-burned/Cargo.toml
index c3bcbfb9aab..9ad1445febf 100644
--- a/examples/gas-burned/Cargo.toml
+++ b/examples/gas-burned/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/incomplete-async-payloads/Cargo.toml b/examples/incomplete-async-payloads/Cargo.toml
index 733fb5b4f7d..1c4ef56a519 100644
--- a/examples/incomplete-async-payloads/Cargo.toml
+++ b/examples/incomplete-async-payloads/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/init-fail-sender/Cargo.toml b/examples/init-fail-sender/Cargo.toml
index 5b1aa98a3c6..34611c8f1fb 100644
--- a/examples/init-fail-sender/Cargo.toml
+++ b/examples/init-fail-sender/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/init-wait-reply-exit/Cargo.toml b/examples/init-wait-reply-exit/Cargo.toml
index 234a5e0178f..71b6321fe47 100644
--- a/examples/init-wait-reply-exit/Cargo.toml
+++ b/examples/init-wait-reply-exit/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/init-wait/Cargo.toml b/examples/init-wait/Cargo.toml
index 05f2d67d4d3..560c4e37019 100644
--- a/examples/init-wait/Cargo.toml
+++ b/examples/init-wait/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/mul-by-const/Cargo.toml b/examples/mul-by-const/Cargo.toml
index 57e2d376d0f..64e2f97f889 100644
--- a/examples/mul-by-const/Cargo.toml
+++ b/examples/mul-by-const/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
+hex.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/ncompose/Cargo.toml b/examples/ncompose/Cargo.toml
index 846db8f57f9..9cb597e461a 100644
--- a/examples/ncompose/Cargo.toml
+++ b/examples/ncompose/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
+hex.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/new-meta/Cargo.toml b/examples/new-meta/Cargo.toml
index 1d7ae947885..f78115c3251 100644
--- a/examples/new-meta/Cargo.toml
+++ b/examples/new-meta/Cargo.toml
@@ -4,14 +4,16 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
+gstd.workspace = true
parity-scale-codec.workspace = true
demo-meta-io = { path = "io" }
demo-meta-state-v1 = { path = "state-v1", default-features = false, optional = true }
demo-meta-state-v2 = { path = "state-v2", default-features = false, optional = true }
demo-meta-state-v3 = { path = "state-v3", default-features = false, optional = true }
-gstd.workspace = true
[build-dependencies]
demo-meta-io = { path = "io" }
diff --git a/examples/new-meta/io/Cargo.toml b/examples/new-meta/io/Cargo.toml
index b4a3affb0ee..6bd4fedeaed 100644
--- a/examples/new-meta/io/Cargo.toml
+++ b/examples/new-meta/io/Cargo.toml
@@ -4,8 +4,10 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-gmeta = { workspace = true }
-scale-info = { workspace = true, features = ["derive"] }
-parity-scale-codec = { workspace = true, features = ["derive"] }
+gmeta.workspace = true
+scale-info.workspace = true
+parity-scale-codec.workspace = true
diff --git a/examples/new-meta/state-v1/Cargo.toml b/examples/new-meta/state-v1/Cargo.toml
index 915bcfdf07f..df273f240cf 100644
--- a/examples/new-meta/state-v1/Cargo.toml
+++ b/examples/new-meta/state-v1/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/new-meta/state-v2/Cargo.toml b/examples/new-meta/state-v2/Cargo.toml
index da84f0b246b..b63c6aec983 100644
--- a/examples/new-meta/state-v2/Cargo.toml
+++ b/examples/new-meta/state-v2/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/new-meta/state-v3/Cargo.toml b/examples/new-meta/state-v3/Cargo.toml
index 4e49d593ed0..7724c477251 100644
--- a/examples/new-meta/state-v3/Cargo.toml
+++ b/examples/new-meta/state-v3/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/node/Cargo.toml b/examples/node/Cargo.toml
index 80b859cde36..d0e5078b4f4 100644
--- a/examples/node/Cargo.toml
+++ b/examples/node/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
gstd.workspace = true
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/out-of-memory/Cargo.toml b/examples/out-of-memory/Cargo.toml
index e8b49e1699f..3b039d61913 100644
--- a/examples/out-of-memory/Cargo.toml
+++ b/examples/out-of-memory/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/piggy-bank/Cargo.toml b/examples/piggy-bank/Cargo.toml
index 4a1cee16d5f..12e17ebc57b 100644
--- a/examples/piggy-bank/Cargo.toml
+++ b/examples/piggy-bank/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/ping/Cargo.toml b/examples/ping/Cargo.toml
index 46cabcd31e3..50dd1ce8605 100644
--- a/examples/ping/Cargo.toml
+++ b/examples/ping/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/program-factory/Cargo.toml b/examples/program-factory/Cargo.toml
index e9af75b8c6f..104d6b64ff3 100644
--- a/examples/program-factory/Cargo.toml
+++ b/examples/program-factory/Cargo.toml
@@ -4,11 +4,13 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
gstd.workspace = true
-hex-literal = "*"
+parity-scale-codec.workspace = true
+hex-literal.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/program-generator/Cargo.toml b/examples/program-generator/Cargo.toml
index e3bd5a7049a..9782f2a468f 100644
--- a/examples/program-generator/Cargo.toml
+++ b/examples/program-generator/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/proxy-relay/Cargo.toml b/examples/proxy-relay/Cargo.toml
index b009ba681b1..4378c75e4e3 100644
--- a/examples/proxy-relay/Cargo.toml
+++ b/examples/proxy-relay/Cargo.toml
@@ -4,11 +4,13 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
gstd.workspace = true
-scale-info = { workspace = true, features = ["derive"] }
+parity-scale-codec.workspace = true
+scale-info.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/proxy-reservation-with-gas/Cargo.toml b/examples/proxy-reservation-with-gas/Cargo.toml
index 700c2ca6d32..c8e775cdf43 100644
--- a/examples/proxy-reservation-with-gas/Cargo.toml
+++ b/examples/proxy-reservation-with-gas/Cargo.toml
@@ -4,11 +4,13 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
gstd.workspace = true
-scale-info = { workspace = true, features = ["derive"] }
+parity-scale-codec.workspace = true
+scale-info.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/proxy/Cargo.toml b/examples/proxy/Cargo.toml
index 2cde888e83d..f679ca89cd5 100644
--- a/examples/proxy/Cargo.toml
+++ b/examples/proxy/Cargo.toml
@@ -4,11 +4,13 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-gstd = { workspace = true }
-parity-scale-codec = { workspace = true, features = ["derive"] }
-scale-info = { workspace = true, features = ["derive"] }
+gstd.workspace = true
+parity-scale-codec.workspace = true
+scale-info.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/read-big-state/Cargo.toml b/examples/read-big-state/Cargo.toml
index 956d2c7c54b..c7ce1f683e4 100644
--- a/examples/read-big-state/Cargo.toml
+++ b/examples/read-big-state/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/reservation-manager/Cargo.toml b/examples/reservation-manager/Cargo.toml
index 9e7cf0d5186..372ecdbd5aa 100644
--- a/examples/reservation-manager/Cargo.toml
+++ b/examples/reservation-manager/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/reserve-gas/Cargo.toml b/examples/reserve-gas/Cargo.toml
index 4ebc3e193b2..4aef7faa035 100644
--- a/examples/reserve-gas/Cargo.toml
+++ b/examples/reserve-gas/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/rwlock/Cargo.toml b/examples/rwlock/Cargo.toml
index f82785132ca..b7a8621cb12 100644
--- a/examples/rwlock/Cargo.toml
+++ b/examples/rwlock/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd = { workspace = true, features = ["debug"] }
-parity-scale-codec = { workspace = true, features = ["derive"] }
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/send-from-reservation/Cargo.toml b/examples/send-from-reservation/Cargo.toml
index b095b852fe5..cbde057d74b 100644
--- a/examples/send-from-reservation/Cargo.toml
+++ b/examples/send-from-reservation/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
gstd.workspace = true
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/signal-entry/Cargo.toml b/examples/signal-entry/Cargo.toml
index 708b63893c9..9edebd56afe 100644
--- a/examples/signal-entry/Cargo.toml
+++ b/examples/signal-entry/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/stack-allocations/Cargo.toml b/examples/stack-allocations/Cargo.toml
index d3ec7a51e95..e6b8fe0c32e 100644
--- a/examples/stack-allocations/Cargo.toml
+++ b/examples/stack-allocations/Cargo.toml
@@ -4,15 +4,17 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
+parity-scale-codec.workspace = true
[dev-dependencies]
gtest.workspace = true
-rand_pcg = { workspace = true }
-rand = "0.8"
+rand_pcg.workspace = true
+rand.workspace = true
static_assertions.workspace = true
[build-dependencies]
diff --git a/examples/state-rollback/Cargo.toml b/examples/state-rollback/Cargo.toml
index df652d9f995..c4d156bc250 100644
--- a/examples/state-rollback/Cargo.toml
+++ b/examples/state-rollback/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/sync-duplicate/Cargo.toml b/examples/sync-duplicate/Cargo.toml
index 9d95387d7e1..f0d0a3adf96 100644
--- a/examples/sync-duplicate/Cargo.toml
+++ b/examples/sync-duplicate/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/sys-calls/Cargo.toml b/examples/sys-calls/Cargo.toml
index 6ab1914d0fa..1e0e64155bd 100644
--- a/examples/sys-calls/Cargo.toml
+++ b/examples/sys-calls/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-gstd = { workspace = true }
-parity-scale-codec = { workspace = true, features = ["derive"] }
+gstd.workspace = true
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/syscall-error/Cargo.toml b/examples/syscall-error/Cargo.toml
index 5c7155134f4..b454bad67bc 100644
--- a/examples/syscall-error/Cargo.toml
+++ b/examples/syscall-error/Cargo.toml
@@ -4,9 +4,11 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
+parity-scale-codec.workspace = true
gstd.workspace = true
gsys.workspace = true
diff --git a/examples/vec/Cargo.toml b/examples/vec/Cargo.toml
index d428636ee9f..176929ad803 100644
--- a/examples/vec/Cargo.toml
+++ b/examples/vec/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd = { workspace = true, features = ["debug"] }
diff --git a/examples/wait-timeout/Cargo.toml b/examples/wait-timeout/Cargo.toml
index 1650a625443..c1e7c4e47a0 100644
--- a/examples/wait-timeout/Cargo.toml
+++ b/examples/wait-timeout/Cargo.toml
@@ -4,11 +4,13 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
gstd.workspace = true
-futures = { version = "0.3", default-features = false, features = ["alloc"] }
+futures.workspace = true
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/wait/Cargo.toml b/examples/wait/Cargo.toml
index c45a661cddc..1ef9502fc9c 100644
--- a/examples/wait/Cargo.toml
+++ b/examples/wait/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/wait_wake/Cargo.toml b/examples/wait_wake/Cargo.toml
index adf86e08c8f..b92655788c4 100644
--- a/examples/wait_wake/Cargo.toml
+++ b/examples/wait_wake/Cargo.toml
@@ -4,10 +4,12 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
-parity-scale-codec = { workspace = true, features = ["derive"] }
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
diff --git a/examples/waiter/Cargo.toml b/examples/waiter/Cargo.toml
index f978e3d2fda..4b6dc2e8400 100644
--- a/examples/waiter/Cargo.toml
+++ b/examples/waiter/Cargo.toml
@@ -4,11 +4,13 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-parity-scale-codec = { workspace = true, features = ["derive"] }
-futures.workspace = true
gstd.workspace = true
+futures.workspace = true
+parity-scale-codec.workspace = true
[build-dependencies]
gear-wasm-builder.workspace = true
@@ -16,7 +18,7 @@ gear-wasm-builder.workspace = true
[dev-dependencies]
gtest.workspace = true
gear-core.workspace = true
-demo-waiter = { path = ".", features = ["debug"] }
+demo-waiter = { workspace = true, features = ["debug"] }
[features]
debug = ["gstd/debug"]
diff --git a/examples/waiting-proxy/Cargo.toml b/examples/waiting-proxy/Cargo.toml
index 381cc50e7e0..076c2520096 100644
--- a/examples/waiting-proxy/Cargo.toml
+++ b/examples/waiting-proxy/Cargo.toml
@@ -4,6 +4,8 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
gstd.workspace = true
diff --git a/examples/wat/Cargo.toml b/examples/wat/Cargo.toml
index c87112a7f83..f4cfbee18e0 100644
--- a/examples/wat/Cargo.toml
+++ b/examples/wat/Cargo.toml
@@ -4,7 +4,9 @@ version = "0.1.0"
authors.workspace = true
edition.workspace = true
license.workspace = true
+homepage.workspace = true
+repository.workspace = true
[dependencies]
-hex = { workspace = true, features = ["alloc"] }
+hex.workspace = true
wabt.workspace = true
From 7e5552afde793c3091808d5d2db3d19979dab82a Mon Sep 17 00:00:00 2001
From: Shamil <66209982+shamilsan@users.noreply.github.com>
Date: Wed, 23 Aug 2023 10:04:43 +0400
Subject: [PATCH 4/5] chore: split source code into `lib` + `wasm`
---
examples/async-custom-entry/src/lib.rs | 31 +-
examples/async-custom-entry/src/wasm.rs | 46 ++
examples/async-init/src/lib.rs | 72 +--
examples/async-init/src/wasm.rs | 82 ++++
examples/async-recursion/src/lib.rs | 37 +-
examples/async-recursion/src/wasm.rs | 52 +++
examples/async-signal-entry/src/lib.rs | 26 +-
examples/async-signal-entry/src/wasm.rs | 41 ++
examples/async-tester/src/lib.rs | 4 +-
.../async-tester/src/{code.rs => wasm.rs} | 6 +-
examples/async/src/lib.rs | 48 +-
examples/async/src/wasm.rs | 63 +++
examples/calc-hash/in-one-block/src/lib.rs | 4 +-
.../in-one-block/src/{code.rs => wasm.rs} | 0
examples/calc-hash/over-blocks/src/lib.rs | 4 +-
.../over-blocks/src/{code.rs => wasm.rs} | 4 +-
examples/compose/src/lib.rs | 109 +----
examples/compose/src/wasm.rs | 131 ++++++
examples/delayed-sender/src/lib.rs | 4 +-
.../delayed-sender/src/{code.rs => wasm.rs} | 10 +-
examples/distributor/src/lib.rs | 169 +------
examples/distributor/src/wasm.rs | 183 ++++++++
examples/fungible-token/src/lib.rs | 2 +-
.../src/{contract.rs => wasm.rs} | 0
examples/futures-unordered/src/lib.rs | 111 +----
examples/futures-unordered/src/wasm.rs | 126 +++++
examples/gas-burned/src/lib.rs | 24 +-
examples/gas-burned/src/wasm.rs | 58 +++
examples/incomplete-async-payloads/src/lib.rs | 58 +--
.../incomplete-async-payloads/src/wasm.rs | 73 +++
examples/init-fail-sender/src/lib.rs | 18 +-
examples/init-fail-sender/src/wasm.rs | 15 +
examples/init-wait-reply-exit/src/lib.rs | 4 +-
.../src/{code.rs => wasm.rs} | 0
examples/init-wait/src/lib.rs | 4 +-
examples/init-wait/src/{code.rs => wasm.rs} | 0
examples/messager/src/lib.rs | 4 +-
examples/messager/src/{code.rs => wasm.rs} | 0
examples/mul-by-const/src/lib.rs | 58 +--
examples/mul-by-const/src/wasm.rs | 80 ++++
examples/ncompose/src/lib.rs | 132 +-----
examples/ncompose/src/wasm.rs | 154 +++++++
examples/node/src/lib.rs | 232 +---------
examples/node/src/wasm.rs | 248 ++++++++++
examples/out-of-memory/src/lib.rs | 15 +-
examples/out-of-memory/src/wasm.rs | 28 ++
examples/piggy-bank/src/lib.rs | 18 +-
examples/piggy-bank/src/wasm.rs | 33 ++
examples/ping/src/lib.rs | 13 +-
examples/ping/src/wasm.rs | 28 ++
examples/program-factory/src/lib.rs | 55 +--
examples/program-factory/src/wasm.rs | 71 +++
examples/program-generator/src/lib.rs | 31 +-
examples/program-generator/src/wasm.rs | 41 ++
examples/proxy-relay/src/lib.rs | 82 +---
examples/proxy-relay/src/wasm.rs | 97 ++++
.../proxy-reservation-with-gas/src/lib.rs | 33 +-
.../proxy-reservation-with-gas/src/wasm.rs | 48 ++
examples/proxy/src/lib.rs | 26 +-
examples/proxy/src/wasm.rs | 40 ++
examples/read-big-state/src/lib.rs | 22 +-
examples/read-big-state/src/wasm.rs | 37 ++
examples/reservation-manager/src/lib.rs | 31 +-
examples/reservation-manager/src/wasm.rs | 46 ++
examples/reserve-gas/src/lib.rs | 190 +-------
examples/reserve-gas/src/wasm.rs | 199 ++++++++
examples/rwlock/src/lib.rs | 109 +----
examples/rwlock/src/wasm.rs | 124 +++++
examples/send-from-reservation/src/lib.rs | 82 +---
examples/send-from-reservation/src/wasm.rs | 92 ++++
examples/signal-entry/src/lib.rs | 182 +-------
examples/signal-entry/src/wasm.rs | 197 ++++++++
examples/stack-allocations/src/lib.rs | 42 +-
examples/stack-allocations/src/wasm.rs | 62 +++
examples/state-rollback/src/lib.rs | 29 +-
examples/state-rollback/src/wasm.rs | 44 ++
examples/sync-duplicate/src/lib.rs | 31 +-
examples/sync-duplicate/src/wasm.rs | 46 ++
examples/sys-calls/src/lib.rs | 427 +----------------
examples/sys-calls/src/wasm.rs | 432 ++++++++++++++++++
examples/syscall-error/src/lib.rs | 17 +-
examples/syscall-error/src/wasm.rs | 35 ++
examples/vec/src/lib.rs | 37 +-
examples/vec/src/wasm.rs | 52 +++
examples/wait-timeout/src/lib.rs | 4 +-
.../wait-timeout/src/{code.rs => wasm.rs} | 19 +-
examples/wait/src/lib.rs | 38 +-
examples/wait/src/wasm.rs | 53 +++
examples/wait_wake/src/lib.rs | 36 +-
examples/wait_wake/src/wasm.rs | 50 ++
examples/waiter/src/lib.rs | 5 +-
examples/waiter/src/{code.rs => wasm.rs} | 18 +
examples/waiting-proxy/src/lib.rs | 29 +-
examples/waiting-proxy/src/wasm.rs | 44 ++
94 files changed, 3354 insertions(+), 2693 deletions(-)
create mode 100644 examples/async-custom-entry/src/wasm.rs
create mode 100644 examples/async-init/src/wasm.rs
create mode 100644 examples/async-recursion/src/wasm.rs
create mode 100644 examples/async-signal-entry/src/wasm.rs
rename examples/async-tester/src/{code.rs => wasm.rs} (91%)
create mode 100644 examples/async/src/wasm.rs
rename examples/calc-hash/in-one-block/src/{code.rs => wasm.rs} (100%)
rename examples/calc-hash/over-blocks/src/{code.rs => wasm.rs} (96%)
create mode 100644 examples/compose/src/wasm.rs
rename examples/delayed-sender/src/{code.rs => wasm.rs} (77%)
create mode 100644 examples/distributor/src/wasm.rs
rename examples/fungible-token/src/{contract.rs => wasm.rs} (100%)
create mode 100644 examples/futures-unordered/src/wasm.rs
create mode 100644 examples/gas-burned/src/wasm.rs
create mode 100644 examples/incomplete-async-payloads/src/wasm.rs
create mode 100644 examples/init-fail-sender/src/wasm.rs
rename examples/init-wait-reply-exit/src/{code.rs => wasm.rs} (100%)
rename examples/init-wait/src/{code.rs => wasm.rs} (100%)
rename examples/messager/src/{code.rs => wasm.rs} (100%)
create mode 100644 examples/mul-by-const/src/wasm.rs
create mode 100644 examples/ncompose/src/wasm.rs
create mode 100644 examples/node/src/wasm.rs
create mode 100644 examples/out-of-memory/src/wasm.rs
create mode 100644 examples/piggy-bank/src/wasm.rs
create mode 100644 examples/ping/src/wasm.rs
create mode 100644 examples/program-factory/src/wasm.rs
create mode 100644 examples/program-generator/src/wasm.rs
create mode 100644 examples/proxy-relay/src/wasm.rs
create mode 100644 examples/proxy-reservation-with-gas/src/wasm.rs
create mode 100644 examples/proxy/src/wasm.rs
create mode 100644 examples/read-big-state/src/wasm.rs
create mode 100644 examples/reservation-manager/src/wasm.rs
create mode 100644 examples/reserve-gas/src/wasm.rs
create mode 100644 examples/rwlock/src/wasm.rs
create mode 100644 examples/send-from-reservation/src/wasm.rs
create mode 100644 examples/signal-entry/src/wasm.rs
create mode 100644 examples/stack-allocations/src/wasm.rs
create mode 100644 examples/state-rollback/src/wasm.rs
create mode 100644 examples/sync-duplicate/src/wasm.rs
create mode 100644 examples/sys-calls/src/wasm.rs
create mode 100644 examples/syscall-error/src/wasm.rs
create mode 100644 examples/vec/src/wasm.rs
rename examples/wait-timeout/src/{code.rs => wasm.rs} (84%)
create mode 100644 examples/wait/src/wasm.rs
create mode 100644 examples/wait_wake/src/wasm.rs
rename examples/waiter/src/{code.rs => wasm.rs} (90%)
create mode 100644 examples/waiting-proxy/src/wasm.rs
diff --git a/examples/async-custom-entry/src/lib.rs b/examples/async-custom-entry/src/lib.rs
index 6a7b7d54ea0..b20b99554f5 100644
--- a/examples/async-custom-entry/src/lib.rs
+++ b/examples/async-custom-entry/src/lib.rs
@@ -27,33 +27,4 @@ mod code {
pub use code::WASM_BINARY_OPT as WASM_BINARY;
#[cfg(not(feature = "std"))]
-mod wasm {
- use gstd::{msg, ActorId};
-
- static mut USER: ActorId = ActorId::zero();
-
- #[gstd::async_init(handle_reply = my_handle_reply, handle_signal = my_handle_signal)]
- async fn init() {
- gstd::Config::set_system_reserve(10_000_000_000).expect("Failed to set system reserve");
-
- unsafe { USER = msg::source() }
- }
-
- #[gstd::async_main]
- async fn main() {
- #[allow(clippy::empty_loop)]
- loop {}
- }
-
- fn my_handle_reply() {
- unsafe {
- msg::send_bytes(USER, b"my_handle_reply", 0).unwrap();
- }
- }
-
- fn my_handle_signal() {
- unsafe {
- msg::send_bytes(USER, b"my_handle_signal", 0).unwrap();
- }
- }
-}
+mod wasm;
diff --git a/examples/async-custom-entry/src/wasm.rs b/examples/async-custom-entry/src/wasm.rs
new file mode 100644
index 00000000000..a8f110f5bb2
--- /dev/null
+++ b/examples/async-custom-entry/src/wasm.rs
@@ -0,0 +1,46 @@
+// This file is part of Gear.
+
+// Copyright (C) 2023 Gear Technologies Inc.
+// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+
+use gstd::{msg, ActorId};
+
+static mut USER: ActorId = ActorId::zero();
+
+#[gstd::async_init(handle_reply = my_handle_reply, handle_signal = my_handle_signal)]
+async fn init() {
+ gstd::Config::set_system_reserve(10_000_000_000).expect("Failed to set system reserve");
+
+ unsafe { USER = msg::source() }
+}
+
+#[gstd::async_main]
+async fn main() {
+ #[allow(clippy::empty_loop)]
+ loop {}
+}
+
+fn my_handle_reply() {
+ unsafe {
+ msg::send_bytes(USER, b"my_handle_reply", 0).unwrap();
+ }
+}
+
+fn my_handle_signal() {
+ unsafe {
+ msg::send_bytes(USER, b"my_handle_signal", 0).unwrap();
+ }
+}
diff --git a/examples/async-init/src/lib.rs b/examples/async-init/src/lib.rs
index d5111c026cd..f58aab75c33 100644
--- a/examples/async-init/src/lib.rs
+++ b/examples/async-init/src/lib.rs
@@ -57,74 +57,4 @@ impl InputArgs {
}
#[cfg(not(feature = "std"))]
-mod wasm {
- /* The program demonstrates asynchronous execution and
- * how to use macros `gstd::async_init`/`gstd::async_main`.
- *
- * `Init` method gets three addresses, sends "PING" messages
- * to them and waits for at least two replies with any payload ("approvals").
- *
- * `Handle` processes only "PING" messages. When `handle` gets such message
- * it sends empty requests to the three addresses and waits for just one approval.
- * If an approval is obtained the method replies with "PONG".
- */
-
- use crate::InputArgs;
- use futures::future;
- use gstd::{msg, prelude::*, ActorId};
-
- // One of the addresses supposed to be non-program.
- static mut ARGUMENTS: InputArgs = InputArgs {
- approver_first: ActorId::zero(),
- approver_second: ActorId::zero(),
- approver_third: ActorId::zero(),
- };
-
- static mut RESPONSES: u8 = 0;
-
- #[gstd::async_init]
- async fn init() {
- let arguments: InputArgs = msg::load().expect("Failed to load arguments");
-
- let mut requests = arguments
- .iter()
- .map(|&addr| {
- msg::send_bytes_for_reply(addr, "PING", 0, 0).expect("Failed to send message")
- })
- .collect::>();
-
- unsafe {
- ARGUMENTS = arguments;
- }
-
- while !requests.is_empty() {
- let (.., remaining) = future::select_all(requests).await;
- unsafe {
- RESPONSES += 1;
- }
-
- if unsafe { RESPONSES } >= 2 {
- break;
- }
-
- requests = remaining;
- }
- }
-
- #[gstd::async_main]
- async fn main() {
- let message = msg::load_bytes().expect("Failed to load bytes");
-
- assert_eq!(message, b"PING");
-
- let requests = unsafe { ARGUMENTS.iter() }
- .map(|&addr| {
- msg::send_bytes_for_reply(addr, "PING", 0, 0).expect("Failed to send message")
- })
- .collect::>();
-
- let _ = future::select_all(requests).await;
-
- msg::reply(unsafe { RESPONSES }, 0).expect("Failed to send reply");
- }
-}
+mod wasm;
diff --git a/examples/async-init/src/wasm.rs b/examples/async-init/src/wasm.rs
new file mode 100644
index 00000000000..0b12705ca91
--- /dev/null
+++ b/examples/async-init/src/wasm.rs
@@ -0,0 +1,82 @@
+// This file is part of Gear.
+
+// Copyright (C) 2023 Gear Technologies Inc.
+// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+
+//! The program demonstrates asynchronous execution and
+//! how to use macros `gstd::async_init`/`gstd::async_main`.
+//!
+//! `Init` method gets three addresses, sends "PING" messages
+//! to them and waits for at least two replies with any payload ("approvals").
+//!
+//! `Handle` processes only "PING" messages. When `handle` gets such message
+//! it sends empty requests to the three addresses and waits for just one approval.
+//! If an approval is obtained the method replies with "PONG".
+
+use crate::InputArgs;
+use futures::future;
+use gstd::{msg, prelude::*, ActorId};
+
+// One of the addresses supposed to be non-program.
+static mut ARGUMENTS: InputArgs = InputArgs {
+ approver_first: ActorId::zero(),
+ approver_second: ActorId::zero(),
+ approver_third: ActorId::zero(),
+};
+
+static mut RESPONSES: u8 = 0;
+
+#[gstd::async_init]
+async fn init() {
+ let arguments: InputArgs = msg::load().expect("Failed to load arguments");
+
+ let mut requests = arguments
+ .iter()
+ .map(|&addr| msg::send_bytes_for_reply(addr, "PING", 0, 0).expect("Failed to send message"))
+ .collect::>();
+
+ unsafe {
+ ARGUMENTS = arguments;
+ }
+
+ while !requests.is_empty() {
+ let (.., remaining) = future::select_all(requests).await;
+ unsafe {
+ RESPONSES += 1;
+ }
+
+ if unsafe { RESPONSES } >= 2 {
+ break;
+ }
+
+ requests = remaining;
+ }
+}
+
+#[gstd::async_main]
+async fn main() {
+ let message = msg::load_bytes().expect("Failed to load bytes");
+
+ assert_eq!(message, b"PING");
+
+ let requests = unsafe { ARGUMENTS.iter() }
+ .map(|&addr| msg::send_bytes_for_reply(addr, "PING", 0, 0).expect("Failed to send message"))
+ .collect::>();
+
+ let _ = future::select_all(requests).await;
+
+ msg::reply(unsafe { RESPONSES }, 0).expect("Failed to send reply");
+}
diff --git a/examples/async-recursion/src/lib.rs b/examples/async-recursion/src/lib.rs
index 7d32db1717b..fbc08d47a0b 100644
--- a/examples/async-recursion/src/lib.rs
+++ b/examples/async-recursion/src/lib.rs
@@ -27,39 +27,4 @@ mod code {
pub use code::WASM_BINARY_OPT as WASM_BINARY;
#[cfg(not(feature = "std"))]
-mod wasm {
- use async_recursion::async_recursion;
- use gstd::{msg, prelude::*, ActorId};
-
- static mut DESTINATION: ActorId = ActorId::zero();
-
- #[no_mangle]
- extern "C" fn init() {
- let destination = msg::load().expect("Failed to load destination");
- unsafe { DESTINATION = destination };
- }
-
- /// Send message "PING" and wait for a reply, then recursively
- /// repeat with `val` decreased by reply len while `val` > reply len.
- #[async_recursion]
- async fn rec_func(val: i32) {
- let reply = msg::send_bytes_for_reply(unsafe { DESTINATION }, "PING", 0, 0)
- .expect("Failed to send message")
- .await
- .expect("Received error reply");
-
- msg::send(msg::source(), val, 0).expect("Failed to send message");
-
- let reply_len = reply.len() as i32;
-
- if val - reply_len > 0 {
- rec_func(val - reply_len).await;
- }
- }
-
- #[gstd::async_main]
- async fn main() {
- let arg = msg::load().expect("Failed to load argument");
- rec_func(arg).await;
- }
-}
+mod wasm;
diff --git a/examples/async-recursion/src/wasm.rs b/examples/async-recursion/src/wasm.rs
new file mode 100644
index 00000000000..40648a95b08
--- /dev/null
+++ b/examples/async-recursion/src/wasm.rs
@@ -0,0 +1,52 @@
+// This file is part of Gear.
+
+// Copyright (C) 2023 Gear Technologies Inc.
+// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+
+use async_recursion::async_recursion;
+use gstd::{msg, prelude::*, ActorId};
+
+static mut DESTINATION: ActorId = ActorId::zero();
+
+#[no_mangle]
+extern "C" fn init() {
+ let destination = msg::load().expect("Failed to load destination");
+ unsafe { DESTINATION = destination };
+}
+
+/// Send message "PING" and wait for a reply, then recursively
+/// repeat with `val` decreased by reply len while `val` > reply len.
+#[async_recursion]
+async fn rec_func(val: i32) {
+ let reply = msg::send_bytes_for_reply(unsafe { DESTINATION }, "PING", 0, 0)
+ .expect("Failed to send message")
+ .await
+ .expect("Received error reply");
+
+ msg::send(msg::source(), val, 0).expect("Failed to send message");
+
+ let reply_len = reply.len() as i32;
+
+ if val - reply_len > 0 {
+ rec_func(val - reply_len).await;
+ }
+}
+
+#[gstd::async_main]
+async fn main() {
+ let arg = msg::load().expect("Failed to load argument");
+ rec_func(arg).await;
+}
diff --git a/examples/async-signal-entry/src/lib.rs b/examples/async-signal-entry/src/lib.rs
index 921725da3ef..a6e3c737ab1 100644
--- a/examples/async-signal-entry/src/lib.rs
+++ b/examples/async-signal-entry/src/lib.rs
@@ -35,28 +35,4 @@ pub enum InitAction {
}
#[cfg(not(feature = "std"))]
-mod wasm {
- use super::*;
- use gstd::{exec, msg};
-
- #[gstd::async_init]
- async fn init() {
- let action = msg::load().unwrap();
- match action {
- InitAction::None => {}
- InitAction::Panic => {
- let _bytes = msg::send_for_reply(msg::source(), b"init", 0, 0)
- .unwrap()
- .await
- .unwrap();
- panic!();
- }
- }
- }
-
- #[gstd::async_main]
- async fn main() {
- msg::send(msg::source(), b"handle_signal", 0).unwrap();
- exec::wait();
- }
-}
+mod wasm;
diff --git a/examples/async-signal-entry/src/wasm.rs b/examples/async-signal-entry/src/wasm.rs
new file mode 100644
index 00000000000..a9192d60fd4
--- /dev/null
+++ b/examples/async-signal-entry/src/wasm.rs
@@ -0,0 +1,41 @@
+// This file is part of Gear.
+
+// Copyright (C) 2023 Gear Technologies Inc.
+// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+
+use crate::InitAction;
+use gstd::{exec, msg};
+
+#[gstd::async_init]
+async fn init() {
+ let action = msg::load().unwrap();
+ match action {
+ InitAction::None => {}
+ InitAction::Panic => {
+ let _bytes = msg::send_for_reply(msg::source(), b"init", 0, 0)
+ .unwrap()
+ .await
+ .unwrap();
+ panic!();
+ }
+ }
+}
+
+#[gstd::async_main]
+async fn main() {
+ msg::send(msg::source(), b"handle_signal", 0).unwrap();
+ exec::wait();
+}
diff --git a/examples/async-tester/src/lib.rs b/examples/async-tester/src/lib.rs
index 41822dd4176..d752d462007 100644
--- a/examples/async-tester/src/lib.rs
+++ b/examples/async-tester/src/lib.rs
@@ -10,9 +10,7 @@ mod code {
pub use code::WASM_BINARY_OPT as WASM_BINARY;
#[cfg(not(feature = "std"))]
-mod wasm {
- include! {"./code.rs"}
-}
+mod wasm;
#[derive(Clone, Copy, Debug, Decode, Encode, PartialEq, Eq)]
pub enum Kind {
diff --git a/examples/async-tester/src/code.rs b/examples/async-tester/src/wasm.rs
similarity index 91%
rename from examples/async-tester/src/code.rs
rename to examples/async-tester/src/wasm.rs
index 3cad9d5052f..fe32ce5f66e 100644
--- a/examples/async-tester/src/code.rs
+++ b/examples/async-tester/src/wasm.rs
@@ -36,14 +36,16 @@ async fn main() {
Kind::SendCommit => {
let handle = MessageHandle::init().expect("init message failed");
handle.push(&encoded_kind).expect("push payload failed");
- handle.commit_for_reply(msg::source(), 0, 0)
+ handle
+ .commit_for_reply(msg::source(), 0, 0)
.expect("send message failed")
.await
}
Kind::SendCommitWithGas(gas) => {
let handle = MessageHandle::init().expect("init message failed");
handle.push(&encoded_kind).expect("push payload failed");
- handle.commit_with_gas_for_reply(msg::source(), gas, 0, 0)
+ handle
+ .commit_with_gas_for_reply(msg::source(), gas, 0, 0)
.expect("send message failed")
.await
}
diff --git a/examples/async/src/lib.rs b/examples/async/src/lib.rs
index 46759ad8d4b..113fcda6c27 100644
--- a/examples/async/src/lib.rs
+++ b/examples/async/src/lib.rs
@@ -35,50 +35,4 @@ pub enum Command {
}
#[cfg(not(feature = "std"))]
-mod wasm {
- use crate::Command;
- use gstd::{lock::Mutex, msg, prelude::*, ActorId};
-
- static mut DESTINATION: ActorId = ActorId::zero();
- static MUTEX: Mutex = Mutex::new(0);
-
- #[no_mangle]
- extern "C" fn init() {
- let destination = msg::load().expect("Failed to load destination");
- unsafe { DESTINATION = destination };
- }
-
- async fn ping() -> Vec {
- msg::send_bytes_for_reply(unsafe { DESTINATION }, "PING", 0, 0)
- .expect("Failed to send message")
- .await
- .expect("Received error reply")
- }
-
- #[gstd::async_main]
- async fn main() {
- let command = msg::load().expect("Failed to load command");
-
- match command {
- Command::Common => {
- let r1 = ping().await;
- let r2 = ping().await;
- let r3 = ping().await;
-
- assert_eq!(r1, b"PONG");
- assert_eq!(r1, r2);
- assert_eq!(r2, r3);
- }
- Command::Mutex => {
- let _val = MUTEX.lock().await;
-
- msg::send(msg::source(), msg::id(), 0).expect("Failed to send message");
- let r = ping().await;
-
- assert_eq!(r, b"PONG");
- }
- }
-
- msg::reply(msg::id(), 0).expect("Failed to send reply");
- }
-}
+mod wasm;
diff --git a/examples/async/src/wasm.rs b/examples/async/src/wasm.rs
new file mode 100644
index 00000000000..ca9da74e670
--- /dev/null
+++ b/examples/async/src/wasm.rs
@@ -0,0 +1,63 @@
+// This file is part of Gear.
+
+// Copyright (C) 2023 Gear Technologies Inc.
+// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+
+use crate::Command;
+use gstd::{lock::Mutex, msg, prelude::*, ActorId};
+
+static mut DESTINATION: ActorId = ActorId::zero();
+static MUTEX: Mutex = Mutex::new(0);
+
+#[no_mangle]
+extern "C" fn init() {
+ let destination = msg::load().expect("Failed to load destination");
+ unsafe { DESTINATION = destination };
+}
+
+async fn ping() -> Vec {
+ msg::send_bytes_for_reply(unsafe { DESTINATION }, "PING", 0, 0)
+ .expect("Failed to send message")
+ .await
+ .expect("Received error reply")
+}
+
+#[gstd::async_main]
+async fn main() {
+ let command = msg::load().expect("Failed to load command");
+
+ match command {
+ Command::Common => {
+ let r1 = ping().await;
+ let r2 = ping().await;
+ let r3 = ping().await;
+
+ assert_eq!(r1, b"PONG");
+ assert_eq!(r1, r2);
+ assert_eq!(r2, r3);
+ }
+ Command::Mutex => {
+ let _val = MUTEX.lock().await;
+
+ msg::send(msg::source(), msg::id(), 0).expect("Failed to send message");
+ let r = ping().await;
+
+ assert_eq!(r, b"PONG");
+ }
+ }
+
+ msg::reply(msg::id(), 0).expect("Failed to send reply");
+}
diff --git a/examples/calc-hash/in-one-block/src/lib.rs b/examples/calc-hash/in-one-block/src/lib.rs
index fafd39d6b22..1d609b29753 100644
--- a/examples/calc-hash/in-one-block/src/lib.rs
+++ b/examples/calc-hash/in-one-block/src/lib.rs
@@ -27,9 +27,7 @@ mod code {
pub use code::WASM_BINARY_OPT as WASM_BINARY;
#[cfg(not(feature = "std"))]
-mod wasm {
- include! {"./code.rs"}
-}
+mod wasm;
/// Package with expected
#[derive(Encode, Decode)]
diff --git a/examples/calc-hash/in-one-block/src/code.rs b/examples/calc-hash/in-one-block/src/wasm.rs
similarity index 100%
rename from examples/calc-hash/in-one-block/src/code.rs
rename to examples/calc-hash/in-one-block/src/wasm.rs
diff --git a/examples/calc-hash/over-blocks/src/lib.rs b/examples/calc-hash/over-blocks/src/lib.rs
index 7c0054dd056..ab716fcd2da 100644
--- a/examples/calc-hash/over-blocks/src/lib.rs
+++ b/examples/calc-hash/over-blocks/src/lib.rs
@@ -29,9 +29,7 @@ mod code {
pub use code::WASM_BINARY_OPT as WASM_BINARY;
#[cfg(not(feature = "std"))]
-mod wasm {
- include! {"./code.rs"}
-}
+mod wasm;
/// Program methods.
#[derive(Debug, Encode, Decode)]
diff --git a/examples/calc-hash/over-blocks/src/code.rs b/examples/calc-hash/over-blocks/src/wasm.rs
similarity index 96%
rename from examples/calc-hash/over-blocks/src/code.rs
rename to examples/calc-hash/over-blocks/src/wasm.rs
index b266a98c05b..bcb501e2701 100644
--- a/examples/calc-hash/over-blocks/src/code.rs
+++ b/examples/calc-hash/over-blocks/src/wasm.rs
@@ -15,7 +15,9 @@ extern "C" fn handle() {
match method {
Method::Start { expected, id, src } => {
- registry.entry(id).or_insert_with(|| Package::new(expected, src));
+ registry
+ .entry(id)
+ .or_insert_with(|| Package::new(expected, src));
let pkg = registry.get(&id).expect("Calculation not found.");
diff --git a/examples/compose/src/lib.rs b/examples/compose/src/lib.rs
index 442e6d7ea0f..cc2e84c6fc0 100644
--- a/examples/compose/src/lib.rs
+++ b/examples/compose/src/lib.rs
@@ -34,111 +34,4 @@ mod code {
pub use code::WASM_BINARY_OPT as WASM_BINARY;
#[cfg(not(feature = "std"))]
-mod wasm {
- extern crate alloc;
-
- use gstd::{debug, exec, msg, prelude::*, ActorId};
-
- static mut STATE: State = State {
- contract_a: Program {
- handle: ActorId::new([0u8; 32]),
- },
- contract_b: Program {
- handle: ActorId::new([0u8; 32]),
- },
- };
-
- struct State {
- contract_a: Program,
- contract_b: Program,
- }
-
- impl State {
- fn new(actor_a: impl Into, actor_b: impl Into) -> Self {
- Self {
- contract_a: Program::new(actor_a),
- contract_b: Program::new(actor_b),
- }
- }
-
- async fn compose(&mut self, input: Vec) -> Result, &'static str> {
- debug!(
- "[0x{} compose::compose] Composing programs 0x{} and 0x{} on input {input:?}",
- hex::encode(exec::program_id()),
- hex::encode(self.contract_a.handle),
- hex::encode(self.contract_b.handle),
- );
- debug!(
- "[0x{} compose::compose] Calling contract #1 at 0x{}",
- hex::encode(exec::program_id()),
- hex::encode(self.contract_a.handle)
- );
- let output_a = self.contract_a.call(input).await?;
- debug!(
- "[0x{} compose::compose] Calling contract #2 at 0x{}",
- hex::encode(exec::program_id()),
- hex::encode(self.contract_b.handle)
- );
- let output = self.contract_b.call(output_a).await?;
- debug!(
- "[0x{} compose::compose] Composition output: {output:?}",
- hex::encode(exec::program_id()),
- );
-
- Ok(output)
- }
- }
-
- #[derive(Eq, Ord, PartialEq, PartialOrd)]
- struct Program {
- handle: ActorId,
- }
-
- impl Program {
- fn new(handle: impl Into) -> Self {
- Self {
- handle: handle.into(),
- }
- }
-
- async fn call(&self, input: Vec) -> Result, &'static str> {
- let reply_bytes = msg::send_bytes_for_reply(self.handle, &input[..], 0, 0)
- .expect("Error sending message")
- .await
- .map_err(|_| "Error in async message processing")?;
- debug!(
- "[0x{} compose::Program::call] Received reply from remote contract: {}",
- hex::encode(exec::program_id()),
- hex::encode(&reply_bytes)
- );
-
- Ok(reply_bytes)
- }
- }
-
- #[gstd::async_main]
- async fn main() {
- let input = msg::load_bytes().expect("Failed to load payload bytes");
- debug!(
- "[0x{} compose::handle] input = {input:?}, gas_available = {}",
- hex::encode(exec::program_id()),
- exec::gas_available()
- );
-
- if let Ok(outcome) = (unsafe { STATE.compose(input) }).await {
- debug!(
- "[0x{} compose::handle] Composition output: {outcome:?}",
- hex::encode(exec::program_id()),
- );
- msg::reply(outcome, 0).unwrap();
- }
- }
-
- #[no_mangle]
- extern "C" fn init() {
- let (contract_a, contract_b): (ActorId, ActorId) =
- msg::load().expect("Expecting two contract addresses");
- unsafe { STATE = State::new(contract_a, contract_b) };
- msg::reply_bytes([], 0).unwrap();
- }
-}
+mod wasm;
diff --git a/examples/compose/src/wasm.rs b/examples/compose/src/wasm.rs
new file mode 100644
index 00000000000..bee23607499
--- /dev/null
+++ b/examples/compose/src/wasm.rs
@@ -0,0 +1,131 @@
+// This file is part of Gear.
+
+// Copyright (C) 2023 Gear Technologies Inc.
+// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+
+// This contract recursively composes itself with another contract (the other contract
+// being applied to the input data first): `c(f) = (c(f) . f) x`.
+// Every call to the auto_composer contract increments the internal `ITER` counter.
+// As soon as the counter reaches the `MAX_ITER`, the recursion stops.
+// Effectively, this procedure executes a composition of `MAX_ITER` contracts `f`
+// where the output of the previous call is fed to the input of the next call.
+
+extern crate alloc;
+
+use gstd::{debug, exec, msg, prelude::*, ActorId};
+
+static mut STATE: State = State {
+ contract_a: Program {
+ handle: ActorId::new([0u8; 32]),
+ },
+ contract_b: Program {
+ handle: ActorId::new([0u8; 32]),
+ },
+};
+
+struct State {
+ contract_a: Program,
+ contract_b: Program,
+}
+
+impl State {
+ fn new(actor_a: impl Into, actor_b: impl Into) -> Self {
+ Self {
+ contract_a: Program::new(actor_a),
+ contract_b: Program::new(actor_b),
+ }
+ }
+
+ async fn compose(&mut self, input: Vec) -> Result, &'static str> {
+ debug!(
+ "[0x{} compose::compose] Composing programs 0x{} and 0x{} on input {input:?}",
+ hex::encode(exec::program_id()),
+ hex::encode(self.contract_a.handle),
+ hex::encode(self.contract_b.handle),
+ );
+ debug!(
+ "[0x{} compose::compose] Calling contract #1 at 0x{}",
+ hex::encode(exec::program_id()),
+ hex::encode(self.contract_a.handle)
+ );
+ let output_a = self.contract_a.call(input).await?;
+ debug!(
+ "[0x{} compose::compose] Calling contract #2 at 0x{}",
+ hex::encode(exec::program_id()),
+ hex::encode(self.contract_b.handle)
+ );
+ let output = self.contract_b.call(output_a).await?;
+ debug!(
+ "[0x{} compose::compose] Composition output: {output:?}",
+ hex::encode(exec::program_id()),
+ );
+
+ Ok(output)
+ }
+}
+
+#[derive(Eq, Ord, PartialEq, PartialOrd)]
+struct Program {
+ handle: ActorId,
+}
+
+impl Program {
+ fn new(handle: impl Into) -> Self {
+ Self {
+ handle: handle.into(),
+ }
+ }
+
+ async fn call(&self, input: Vec) -> Result, &'static str> {
+ let reply_bytes = msg::send_bytes_for_reply(self.handle, &input[..], 0, 0)
+ .expect("Error sending message")
+ .await
+ .map_err(|_| "Error in async message processing")?;
+ debug!(
+ "[0x{} compose::Program::call] Received reply from remote contract: {}",
+ hex::encode(exec::program_id()),
+ hex::encode(&reply_bytes)
+ );
+
+ Ok(reply_bytes)
+ }
+}
+
+#[gstd::async_main]
+async fn main() {
+ let input = msg::load_bytes().expect("Failed to load payload bytes");
+ debug!(
+ "[0x{} compose::handle] input = {input:?}, gas_available = {}",
+ hex::encode(exec::program_id()),
+ exec::gas_available()
+ );
+
+ if let Ok(outcome) = (unsafe { STATE.compose(input) }).await {
+ debug!(
+ "[0x{} compose::handle] Composition output: {outcome:?}",
+ hex::encode(exec::program_id()),
+ );
+ msg::reply(outcome, 0).unwrap();
+ }
+}
+
+#[no_mangle]
+extern "C" fn init() {
+ let (contract_a, contract_b): (ActorId, ActorId) =
+ msg::load().expect("Expecting two contract addresses");
+ unsafe { STATE = State::new(contract_a, contract_b) };
+ msg::reply_bytes([], 0).unwrap();
+}
diff --git a/examples/delayed-sender/src/lib.rs b/examples/delayed-sender/src/lib.rs
index 9348dfb7a52..8be54f89785 100644
--- a/examples/delayed-sender/src/lib.rs
+++ b/examples/delayed-sender/src/lib.rs
@@ -26,6 +26,4 @@ mod code {
pub use code::WASM_BINARY_OPT as WASM_BINARY;
#[cfg(not(feature = "std"))]
-mod wasm {
- include! {"./code.rs"}
-}
+mod wasm;
diff --git a/examples/delayed-sender/src/code.rs b/examples/delayed-sender/src/wasm.rs
similarity index 77%
rename from examples/delayed-sender/src/code.rs
rename to examples/delayed-sender/src/wasm.rs
index 3107b539988..6cdbb78b74f 100644
--- a/examples/delayed-sender/src/code.rs
+++ b/examples/delayed-sender/src/wasm.rs
@@ -1,4 +1,4 @@
-use gstd::{msg, MessageId, exec};
+use gstd::{exec, msg, MessageId};
static mut MID: Option = None;
static mut DONE: bool = false;
@@ -15,11 +15,15 @@ extern "C" fn handle() {
if let Some(message_id) = unsafe { MID.take() } {
let delay: u32 = msg::load().unwrap();
- unsafe { DONE = true; }
+ unsafe {
+ DONE = true;
+ }
exec::wake_delayed(message_id, delay).expect("Failed to wake message");
} else if unsafe { !DONE } {
- unsafe { MID = Some(msg::id()); }
+ unsafe {
+ MID = Some(msg::id());
+ }
exec::wait();
}
diff --git a/examples/distributor/src/lib.rs b/examples/distributor/src/lib.rs
index 15ee3f38c2b..53fd344ee84 100644
--- a/examples/distributor/src/lib.rs
+++ b/examples/distributor/src/lib.rs
@@ -52,174 +52,7 @@ struct Program {
}
#[cfg(not(feature = "std"))]
-mod wasm {
- use super::*;
-
- use alloc::collections::BTreeSet;
- use core::future::Future;
- use gstd::{debug, lock::Mutex, msg};
-
- static mut STATE: Option = None;
-
- struct ProgramState {
- nodes: Mutex>,
- amount: u64,
- }
-
- impl Default for ProgramState {
- fn default() -> Self {
- Self {
- nodes: Mutex::new(BTreeSet::default()),
- amount: 0,
- }
- }
- }
-
- impl Program {
- fn new(handle: impl Into) -> Self {
- Self {
- handle: handle.into(),
- }
- }
-
- fn do_request(
- &self,
- request: Req,
- ) -> impl Future