Parcourir la source

example/wasm-hello-world: fix dependency issue

oars il y a 1 an
Parent
commit
670e462c48
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  1. 4 4
      example/wasm-hello-world/Cargo.toml

+ 4 - 4
example/wasm-hello-world/Cargo.toml

@@ -11,8 +11,8 @@ edition = "2021"
 crate-type = ["cdylib", "rlib"]
 
 [dependencies]
-darkfi-sdk = { path = "../../src/sdk" }
-darkfi-serial = { path = "../../src/serial", features = ["derive", "crypto"] }
+darkfi-sdk = { path = "../../src/sdk", features = ["wasm"] }
+darkfi-serial = { version = "0.5.0", features = ["derive", "crypto"] }
 
 # We need to disable random using "custom" which makes the crate a noop
 # so the wasm32-unknown-unknown target is enabled.
@@ -23,6 +23,6 @@ getrandom = { version = "0.2.8", features = ["custom"] }
 default = []
 no-entrypoint = []
 
-[lints]
-workspace = true
+#[lints]
+#workspace = true