ckb-standalone-debugger icon indicating copy to clipboard operation
ckb-standalone-debugger copied to clipboard

Upgrade ckb dependencies to `0.201.0`

Open eval-exec opened this issue 10 months ago • 1 comments

Upgrade ckb-dependencies to 0.201.0 Upgrade ckb-vm to 0.24.14

eval-exec avatar Apr 03 '25 06:04 eval-exec

❯ cargo build
   Compiling numext-fixed-uint v0.1.6
   Compiling ckb-vm-pprof-protos v0.201.0 (/home/exec/Projects/github.com/nervosnetwork/ckb-standalone-debugger/ckb-vm-pprof-protos)
   Compiling ckb-vm-pprof v0.201.0 (/home/exec/Projects/github.com/nervosnetwork/ckb-standalone-debugger/ckb-vm-pprof)
   Compiling ckb-rational v0.201.0
   Compiling ckb-gen-types v0.201.0
error[E0599]: no function or associated item named `new` found for struct `DefaultCoreMachine` in the current scope
  --> ckb-vm-pprof/src/main.rs:31:8
   |
28 |       let default_core_machine = ckb_vm::DefaultCoreMachine::<
   |  ________________________________-
29 | |         u64,
30 | |         ckb_vm::memory::wxorx::WXorXMemory<ckb_vm::memory::sparse::SparseMemory<u64>>,
31 | |     >::new(isa, ckb_vm::machine::VERSION2, 1 << 32);
   | |       -^^^ function or associated item not found in `DefaultCoreMachine<u64, WXorXMemory<SparseMemory<u64>>>`
   | |_______|
   |
   |
   = help: items from traits can only be used if the trait is in scope
help: trait `SupportMachine` which provides `new` is implemented but not in scope; perhaps you want to import it
   |
1  + use ckb_vm::SupportMachine;
   |

error[E0412]: cannot find type `XorXMemory` in crate `ckb_vm`
  --> /home/exec/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ckb-script-0.201.0/src/types.rs:54:45
   |
54 |     ckb_vm::DefaultCoreMachine<u64, ckb_vm::XorXMemory<ckb_vm::FlatMemory<u64>>>,
   |                                             ^^^^^^^^^^ help: a struct with a similar name exists: `WXorXMemory`
   |
  ::: /home/exec/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ckb-vm-0.24.14/src/memory/wxorx.rs:9:1
   |
9  | pub struct WXorXMemory<M: Memory> {
   | --------------------------------- similarly named struct `WXorXMemory` defined here

For more information about this error, try `rustc --explain E0412`.
error: could not compile `ckb-script` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

eval-exec avatar Apr 03 '25 06:04 eval-exec