Skip to content

Commit 063cd17

Browse files
jsdwggwpez
andauthored
Update 'time' in Cargo.lock to resovle build error (#92)
I tried to run this tool using the command in the docs (https://paritytech.github.io/try-runtime-cli/try_runtime/#installation) and ran into: ``` Compiling tokio-stream v0.1.14 Compiling inout v0.1.3 Compiling polkavm-assembler v0.9.0 Compiling polkavm-common v0.9.0 Compiling hex-literal v0.4.1 Compiling prometheus v0.13.3 Compiling heck v0.5.0 Compiling time v0.3.31 Compiling hyper v0.14.28 Compiling polkavm v0.9.3 Compiling cipher v0.4.4 Compiling prost v0.12.4 Compiling prost-derive v0.11.9 error[E0282]: type annotations needed for `Box<_>` --> /Users/jameswilson/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.31/src/format_description/parse/mod.rs:83:9 | 83 | let items = format_items | ^^^^^ ... 86 | Ok(items.into()) | ---- type must be known at this point | help: consider giving `items` an explicit type, where the placeholders `_` are specified | 83 | let items: Box<_> = format_items | ++++++++ Compiling wasm-instrument v0.4.0 For more information about this error, try `rustc --explain E0282`. ``` Doing a global `cargo update` led to an inability to resolve dependencies, but `cargo update time` specifically seems to resovle the build issue for me! --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
1 parent 60cfc45 commit 063cd17

2 files changed

Lines changed: 23 additions & 13 deletions

File tree

Cargo.lock

Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/main.rs

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020
//! Substrate's programmatic testing framework.
2121
//!
2222
//! > As the name suggests, `try-runtime` is a detailed testing framework that gives you a lot of
23-
//! control over what is being executed in which environment. It is recommended that user's first
24-
//! familiarize themselves with substrate in depth, particularly the execution model. It is critical
25-
//! to deeply understand how the wasm/client/runtime interactions, and the runtime apis work in the
26-
//! substrate runtime, before commencing to working with `try-runtime`.
23+
//! > control over what is being executed in which environment. It is recommended that user's first
24+
//! > familiarize themselves with substrate in depth, particularly the execution model. It is
25+
//! > critical
26+
//! > to deeply understand how the wasm/client/runtime interactions, and the runtime apis work in
27+
//! > the
28+
//! > substrate runtime, before commencing to working with `try-runtime`.
2729
//!
2830
//! #### Resources
2931
//!
@@ -176,9 +178,9 @@
176178
//!
177179
//! For the following examples, we assume the existence of the following:
178180
//!
179-
//! 1. a substrate node compiled with `--features try-runtime`, called `substrate`. This will be
180-
//! the running node that you connect to, and provide a wasm blob that has try-runtime
181-
//! functionality enabled.
181+
//! 1. a substrate node compiled with `--features try-runtime`, called `substrate`. This will be the
182+
//! running node that you connect to, and provide a wasm blob that has try-runtime functionality
183+
//! enabled.
182184
//! 2. the `try-runtime` CLI binary on your path.
183185
//!
184186
//! ```bash
@@ -200,8 +202,8 @@
200202
//! ```
201203
//!
202204
//! * Same as the previous example, but run it at specific block number's state and using the live
203-
//! polkadot network. This means that this block hash's state should not yet have been pruned by the
204-
//! node running at `rpc.polkadot.io`.
205+
//! polkadot network. This means that this block hash's state should not yet have been pruned by
206+
//! the node running at `rpc.polkadot.io`.
205207
//!
206208
//! ```bash
207209
//! try-runtime \

0 commit comments

Comments
 (0)