Skip to content

Commit

Permalink
fix: add rustcflag for fedimint v.0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ngutech21 committed Dec 19, 2023
1 parent 0b20ad3 commit 4b18a68
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 34 deletions.
57 changes: 24 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions moksha-fedimint/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# this is needed by fedimint since v 0.2.0
[build]
rustflags = ["--cfg", "tokio_unstable"]
5 changes: 4 additions & 1 deletion moksha-fedimint/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ description = "A fedimint client for moksha"
name = "moksha_fedimint"
path = "src/lib.rs"

[package.metadata.docs.rs]
rustc-args = ["--cfg", "tokio_unstable"]

[dependencies]
dotenvy = "0.15.7"
base64 = "0.21.5"
Expand All @@ -26,7 +29,7 @@ fedimint-wallet-client = { git = "https://github.com/fedimint/fedimint", tag = "
futures = "0.3.29"

[target.'cfg(not(target_family="wasm"))'.dependencies]
tokio = { version = "1.35.0", features = ["rt"] }
tokio = { version = "1.35.0", features = ["rt", "tracing"] }
fedimint-rocksdb = { git = "https://github.com/fedimint/fedimint", tag = "v0.1.5" }

[target.'cfg(target_family = "wasm")'.dependencies]
Expand Down

0 comments on commit 4b18a68

Please sign in to comment.