sui icon indicating copy to clipboard operation
sui copied to clipboard

rust sdk: bug when importing questdb-rs

Open samlaf opened this issue 2 years ago • 0 comments

Steps to Reproduce Issue

cargo init sui-questdb-bug Add these dependencies to the toml file:

[dependencies]
sui-sdk = { git = "https://github.com/MystenLabs/sui", branch = "testnet" }
questdb-rs = "2.1.3"

compile

Expected Result

Should compile normally

Actual Result

   Compiling snafu v0.7.4
error: failed to run custom build command for `questdb-rs v2.1.3`

Caused by:
  process didn't exit successfully: `/Users/samlaf/devel/rust/questdb_tutorial/target/debug/build/questdb-rs-b4cbfe11b6777abc/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs
  cargo:rerun-if-changed=Cargo.lock
  cargo:rerun-if-changed=src/test/interop/ilp-client-interop-test.json

  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error("invalid type: map, expected f64", line: 27, column: 13)', /Users/samlaf/.cargo/registry/src/github.com-1ecc6299db9ec823/questdb-rs-2.1.3/build.rs:83:39
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

Also posted in the questdb-c repo: https://github.com/questdb/c-questdb-client/issues/38

System Information

  • OS: macOS Venture 13.3
  • Compiler: cargo 1.68.0 (115f34552 2023-02-26)

samlaf avatar Apr 18 '23 05:04 samlaf