Skip to content

Commit

Permalink
Update derive syn parse 0.2.0 (+ docify) (paritytech#3920)
Browse files Browse the repository at this point in the history
derive-syn-parse v0.2.0 came out recently which (finally) adds support
for syn 2x.

Upgrading to this will remove many of the places where syn 1x was still
compiling alongside syn 2x in the polkadot-sdk workspace.

This also upgrades `docify` to 0.2.8 which is the version that upgrades
derive-syn-pasre to 0.2.0.

Additionally, this consolidates the `docify` versions in the repo to all
use the latest, and in one case upgrades to the 0.2x syntax where 0.1.x
was still being used.

---------

Co-authored-by: Liam Aharon <[email protected]>
  • Loading branch information
2 people authored and dharjeezy committed Apr 9, 2024
1 parent 8f437f6 commit 26a25c6
Show file tree
Hide file tree
Showing 24 changed files with 63 additions and 78 deletions.
95 changes: 40 additions & 55 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 cumulus/primitives/storage-weight-reclaim/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ sp-std = { path = "../../../substrate/primitives/std", default-features = false

cumulus-primitives-core = { path = "../core", default-features = false }
cumulus-primitives-proof-size-hostfunction = { path = "../proof-size-hostfunction", default-features = false }
docify = "0.2.7"
docify = "0.2.8"

[dev-dependencies]
sp-trie = { path = "../../../substrate/primitives/trie", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pallet-example-offchain-worker = { path = "../../substrate/frame/examples/offcha

# How we build docs in rust-docs
simple-mermaid = "0.1.1"
docify = "0.2.7"
docify = "0.2.8"

# Polkadot SDK deps, typically all should only be in scope such that we can link to their doc item.
node-cli = { package = "staging-node-cli", path = "../../substrate/bin/node/cli" }
Expand Down
2 changes: 1 addition & 1 deletion substrate/client/chain-spec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sp-runtime = { path = "../../primitives/runtime" }
sp-state-machine = { path = "../../primitives/state-machine" }
log = { workspace = true }
array-bytes = { version = "6.1" }
docify = "0.2.7"
docify = "0.2.8"

[dev-dependencies]
substrate-test-runtime = { path = "../../test-utils/runtime" }
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ sp-inherents = { default-features = false, path = "../primitives/inherents", opt
frame-executive = { default-features = false, path = "../frame/executive", optional = true }
frame-system-rpc-runtime-api = { default-features = false, path = "../frame/system/rpc/runtime-api", optional = true }

docify = "0.2.7"
docify = "0.2.8"
log = { workspace = true }

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/bags-list/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ frame-election-provider-support = { path = "../election-provider-support", defau

# third party
log = { workspace = true }
docify = "0.2.7"
docify = "0.2.8"
aquamarine = { version = "0.5.0" }

# Optional imports for benchmarking
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/balances/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ frame-support = { path = "../support", default-features = false }
frame-system = { path = "../system", default-features = false }
sp-runtime = { path = "../../primitives/runtime", default-features = false }
sp-std = { path = "../../primitives/std", default-features = false }
docify = "0.2.6"
docify = "0.2.8"

[dev-dependencies]
pallet-transaction-payment = { path = "../transaction-payment" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ publish = false
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
docify = { version = "0.2.3", default-features = false }
docify = "0.2.8"
log = { version = "0.4.21", default-features = false }
codec = { package = "parity-scale-codec", version = "3.6.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.5.0", default-features = false, features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/fast-unstake/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ frame-election-provider-support = { path = "../election-provider-support", defau

frame-benchmarking = { path = "../benchmarking", default-features = false, optional = true }

docify = "0.2.7"
docify = "0.2.8"

[dev-dependencies]
pallet-staking-reward-curve = { path = "../staking/reward-curve" }
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/migrations/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
docify = "0.1.14"
docify = "0.2.8"
impl-trait-for-tuples = "0.2.2"
log = "0.4.21"
scale-info = { version = "2.0.0", default-features = false, features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/migrations/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
//! succeeding after two steps. A runtime upgrade is then enacted and the block number is advanced
//! until all migrations finish executing. Afterwards, the recorded historic migrations are
//! checked and events are asserted.
#![doc = docify::embed!("substrate/frame/migrations/src/tests.rs", simple_works)]
#![doc = docify::embed!("src/tests.rs", simple_works)]
//!
//! ## Pallet API
//!
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/paged-list/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
docify = "0.2.7"
docify = "0.2.8"
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }

frame-benchmarking = { path = "../benchmarking", default-features = false, optional = true }
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/parameters/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ codec = { package = "parity-scale-codec", version = "3.0.0", default-features =
scale-info = { version = "2.1.2", default-features = false, features = ["derive"] }
paste = { version = "1.0.14", default-features = false }
serde = { features = ["derive"], optional = true, workspace = true, default-features = true }
docify = "0.2.5"
docify = "0.2.8"

frame-support = { path = "../support", default-features = false, features = ["experimental"] }
frame-system = { path = "../system", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/safe-mode/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
codec = { package = "parity-scale-codec", version = "3.2.2", default-features = false, features = ["derive"] }
docify = "0.2.7"
docify = "0.2.8"
frame-benchmarking = { path = "../benchmarking", default-features = false, optional = true }
frame-support = { path = "../support", default-features = false }
frame-system = { path = "../system", default-features = false }
Expand Down
Loading

0 comments on commit 26a25c6

Please sign in to comment.