Skip to content

Commit

Permalink
Use simple-mermaid from crates-io (#3304)
Browse files Browse the repository at this point in the history
Re #2922

Changes:
- Use crates-io version of simple-mermaid as
[v0.1.1](https://github.com/glueball/simple-mermaid/releases/tag/v0.1.1)
supports no-std.
- Remove from `frame` since i did not see it used.

---------

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
ggwpez authored Feb 14, 2024
1 parent c7c4fe0 commit 5cfc05d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion docs/sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pallet-examples = { path = "../../substrate/frame/examples" }
pallet-default-config-example = { path = "../../substrate/frame/examples/default-config" }

# How we build docs in rust-docs
simple-mermaid = { git = "https://github.com/kianenigma/simple-mermaid.git", rev = "e48b187bcfd5cc75111acd9d241f1bd36604344b" }
simple-mermaid = "0.1.1"
docify = "0.2.7"

# Polkadot SDK deps, typically all should only be in scope such that we can link to their doc item.
Expand Down
2 changes: 0 additions & 2 deletions substrate/frame/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ 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.7"
simple-mermaid = { git = "https://github.com/kianenigma/simple-mermaid.git", rev = "e48b187bcfd5cc75111acd9d241f1bd36604344b", optional = true }
log = { workspace = true }

[dev-dependencies]
Expand Down Expand Up @@ -78,7 +77,6 @@ std = [
"log/std",
"parity-scale-codec/std",
"scale-info/std",
"simple-mermaid",
"sp-api?/std",
"sp-arithmetic/std",
"sp-block-builder?/std",
Expand Down
2 changes: 1 addition & 1 deletion substrate/primitives/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sp-std = { path = "../std", default-features = false }
sp-weights = { path = "../weights", default-features = false }
docify = { version = "0.2.7" }

simple-mermaid = { git = "https://github.com/kianenigma/simple-mermaid.git", rev = "e48b187bcfd5cc75111acd9d241f1bd36604344b", optional = true }
simple-mermaid = { version = "0.1.1", optional = true }

[dev-dependencies]
rand = "0.8.5"
Expand Down

0 comments on commit 5cfc05d

Please sign in to comment.