Make simple-mermaid optional (#2878)

This prevents it leaking `std` into `no_std` builds.

Closes: https://github.com/paritytech/polkadot-sdk/issues/2866
This commit is contained in:
Bastian Köcher
2024-01-08 15:45:15 +00:00
committed by GitHub
parent 5daef5d086
commit 1914775bd4
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -48,7 +48,7 @@ frame-executive = { default-features = false, path = "../frame/executive", optio
frame-system-rpc-runtime-api = { default-features = false, path = "../frame/system/rpc/runtime-api", optional = true }
docify = "0.2.0"
simple-mermaid = { git = "https://github.com/kianenigma/simple-mermaid.git", rev = "e48b187bcfd5cc75111acd9d241f1bd36604344b" }
simple-mermaid = { git = "https://github.com/kianenigma/simple-mermaid.git", rev = "e48b187bcfd5cc75111acd9d241f1bd36604344b", optional = true }
log = { version = "0.4.20", default-features = false }
[dev-dependencies]
@@ -78,6 +78,7 @@ std = [
"log/std",
"parity-scale-codec/std",
"scale-info/std",
"simple-mermaid",
"sp-api?/std",
"sp-arithmetic/std",
"sp-block-builder?/std",