Skip to content

Commit c3f9007

Browse files
committed
Fix tomls
1 parent 123f8c6 commit c3f9007

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

llms.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24026,17 +24026,17 @@ Update the runtime's `Cargo.toml` file to include the utility pallet and your cu
2402624026
```toml hl_lines="3-4" title="Cargo.toml"
2402724027

2402824028
...
24029-
"cumulus-pallet-aura-ext",
24029+
custom-pallet = { path = "../pallets/custom-pallet", default-features = false }
2403024030
```
2403124031

2403224032
2. In the `[features]` section, add the pallets to the `std` feature list:
2403324033

2403424034
```toml hl_lines="5-6" title="Cargo.toml"
24035-
"cumulus-pallet-xcmp-queue",
24036-
"cumulus-primitives-aura",
24035+
default = ["std"]
24036+
std = [
2403724037
...
24038-
"pallet-sudo",
24039-
"pallet-timestamp",
24038+
"custom-pallet/std",
24039+
]
2404024040
```
2404124041

2404224042
3. Save the changes and close the `Cargo.toml` file
@@ -25932,12 +25932,12 @@ runtime-benchmarks = ["frame/runtime-benchmarks"]
2593225932

2593325933
2. Enable runtime benchmarking for your pallet in `runtime/Cargo.toml`:
2593425934
```toml hl_lines="6" title="Cargo.toml"
25935-
"pallet-xcm",
25936-
"parachains-common",
25937-
"polkadot-parachain-primitives",
25938-
"polkadot-runtime-common",
25939-
"runtime",
25940-
"staging-parachain-info",
25935+
"cumulus-pallet-parachain-system/runtime-benchmarks",
25936+
"hex-literal",
25937+
"pallet-parachain-template/runtime-benchmarks",
25938+
"polkadot-sdk/runtime-benchmarks",
25939+
"custom-pallet/runtime-benchmarks",
25940+
]
2594125941
```
2594225942

2594325943
4. Set up the benchmarking module in your pallet:

tutorials/polkadot-sdk/parachains/zero-to-hero/add-pallets-to-runtime.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ Update the runtime's `Cargo.toml` file to include the utility pallet and your cu
2323
```toml hl_lines="3-4" title="Cargo.toml"
2424
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/Cargo.toml:19:19'
2525
...
26-
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/Cargo.toml:30:31'
26+
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/Cargo.toml:60:61'
2727
```
2828

2929
2. In the `[features]` section, add the pallets to the `std` feature list:
3030

3131
```toml hl_lines="5-6" title="Cargo.toml"
32-
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/Cargo.toml:33:35'
32+
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/Cargo.toml:63:65'
3333
...
34-
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/Cargo.toml:44:46'
34+
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/Cargo.toml:74:76'
3535
```
3636

3737
3. Save the changes and close the `Cargo.toml` file

tutorials/polkadot-sdk/parachains/zero-to-hero/pallet-benchmarking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Follow these steps to prepare your environment for pallet benchmarking:
4343

4444
2. Enable runtime benchmarking for your pallet in `runtime/Cargo.toml`:
4545
```toml hl_lines="6" title="Cargo.toml"
46-
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/Cargo.toml:48:54'
46+
--8<-- 'code/tutorials/polkadot-sdk/parachains/zero-to-hero/runtime/Cargo.toml:78:84'
4747
```
4848

4949
4. Set up the benchmarking module in your pallet:

0 commit comments

Comments
 (0)