cargo: added features for iota-streams crate
@@ -26,13 +26,21 @@ members = [
#"iota-streams-app-channels-js",
]
+[features]
+default = ["std", "async", "tangle", "client"]
+# Enable `std` feature in dependencies
+std = ["iota-streams-core/std", "iota-streams-core-edsig/std", "iota-streams-ddml/std", "iota-streams-app/std", "iota-streams-app-channels/std"]
+async = ["iota-streams-app/async", "iota-streams-app-channels/async"]
+tangle = ["iota-streams-app/tangle", "iota-streams-app-channels/tangle"]
+client = ["iota-streams-app/client", "iota-streams-app-channels/client"]
+
[dependencies]
-iota-streams-core = { version = "0.2.0", path = "iota-streams-core" }
-iota-streams-core-keccak = { version = "0.2.0", path = "iota-streams-core-keccak" }
-iota-streams-core-edsig = { version = "0.2.0", path = "iota-streams-core-edsig" }
-iota-streams-ddml = { version = "0.2.0", path = "iota-streams-ddml" }
-iota-streams-app = { version = "0.2.0", path = "iota-streams-app" }
-iota-streams-app-channels = { version = "0.2.0", path = "iota-streams-app-channels" }
+iota-streams-core = { version = "0.2.0", path = "iota-streams-core", default-features = false }
+iota-streams-core-keccak = { version = "0.2.0", path = "iota-streams-core-keccak", default-features = false }
+iota-streams-core-edsig = { version = "0.2.0", path = "iota-streams-core-edsig", default-features = false }
+iota-streams-ddml = { version = "0.2.0", path = "iota-streams-ddml", default-features = false }
+iota-streams-app = { version = "0.2.0", path = "iota-streams-app", default-features = false }
+iota-streams-app-channels = { version = "0.2.0", path = "iota-streams-app-channels", default-features = false }
#[profile.release-nostd]
#inherits = "release"
