Skip to content

Commit

Permalink
Update 'time' in Cargo.lock to resovle build error (#92)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jsdw and ggwpez authored Sep 10, 2024
1 parent 60cfc45 commit 063cd17
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 13 deletions.
16 changes: 12 additions & 4 deletions Cargo.lock

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

20 changes: 11 additions & 9 deletions cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@
//! Substrate's programmatic testing framework.
//!
//! > As the name suggests, `try-runtime` is a detailed testing framework that gives you a lot of
//! control over what is being executed in which environment. It is recommended that user's first
//! familiarize themselves with substrate in depth, particularly the execution model. It is critical
//! to deeply understand how the wasm/client/runtime interactions, and the runtime apis work in the
//! substrate runtime, before commencing to working with `try-runtime`.
//! > control over what is being executed in which environment. It is recommended that user's first
//! > familiarize themselves with substrate in depth, particularly the execution model. It is
//! > critical
//! > to deeply understand how the wasm/client/runtime interactions, and the runtime apis work in
//! > the
//! > substrate runtime, before commencing to working with `try-runtime`.
//!
//! #### Resources
//!
Expand Down Expand Up @@ -176,9 +178,9 @@
//!
//! For the following examples, we assume the existence of the following:
//!
//! 1. a substrate node compiled with `--features try-runtime`, called `substrate`. This will be
//! the running node that you connect to, and provide a wasm blob that has try-runtime
//! functionality enabled.
//! 1. a substrate node compiled with `--features try-runtime`, called `substrate`. This will be the
//! running node that you connect to, and provide a wasm blob that has try-runtime functionality
//! enabled.
//! 2. the `try-runtime` CLI binary on your path.
//!
//! ```bash
Expand All @@ -200,8 +202,8 @@
//! ```
//!
//! * Same as the previous example, but run it at specific block number's state and using the live
//! polkadot network. This means that this block hash's state should not yet have been pruned by the
//! node running at `rpc.polkadot.io`.
//! polkadot network. This means that this block hash's state should not yet have been pruned by
//! the node running at `rpc.polkadot.io`.
//!
//! ```bash
//! try-runtime \
Expand Down

0 comments on commit 063cd17

Please sign in to comment.