!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

667 Members
Rust149 Servers

Load older messages


SenderMessageTime
16 Apr 2025
@emilazy:matrix.orgemily(yes please. the Foundation really needs one.)14:54:26
@vaw:nlih.devawRedacted or Malformed Event17:27:16
17 Apr 2025
@hexa:lossy.networkhexathree steps further and03:56:39
@hexa:lossy.networkhexa
sentry-relay>    Compiling minidump v0.22.2
sentry-relay> error[E0599]: no method named `blocking_queue_depth` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>   --> relay-system/src/runtime/metrics.rs:76:20
sentry-relay>    |
sentry-relay> 76 |         self.tokio.blocking_queue_depth()
sentry-relay>    |                    ^^^^^^^^^^^^^^^^^^^^
sentry-relay>    |
sentry-relay> help: there is a method `global_queue_depth` with a similar name
sentry-relay>    |
sentry-relay> 76 -         self.tokio.blocking_queue_depth()
sentry-relay> 76 +         self.tokio.global_queue_depth()
sentry-relay>    |
sentry-relay> 
sentry-relay> error[E0599]: no method named `budget_forced_yield_count` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>   --> relay-system/src/runtime/metrics.rs:82:9
sentry-relay>    |
sentry-relay> 82 |         budget_forced_yield_count
sentry-relay>    |         ^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
sentry-relay> 
sentry-relay> error[E0599]: no method named `num_blocking_threads` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>   --> relay-system/src/runtime/metrics.rs:89:20
sentry-relay>    |
sentry-relay> 89 |         self.tokio.num_blocking_threads()
sentry-relay>    |                    ^^^^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
sentry-relay> 
sentry-relay> error[E0599]: no method named `num_idle_blocking_threads` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>   --> relay-system/src/runtime/metrics.rs:97:20
sentry-relay>    |
sentry-relay> 97 |         self.tokio.num_idle_blocking_threads()
sentry-relay>    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
sentry-relay> 
sentry-relay> error[E0599]: no method named `worker_local_queue_depth` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>    --> relay-system/src/runtime/metrics.rs:112:20
sentry-relay>     |
sentry-relay> 112 |         self.tokio.worker_local_queue_depth(worker)
sentry-relay>     |                    ^^^^^^^^^^^^^^^^^^^^^^^^
sentry-relay>     |
sentry-relay> help: there is a method `global_queue_depth` with a similar name, but with different arguments
sentry-relay>    --> /build/cargo-deps-vendor/tokio-1.42.0/src/runtime/metrics/runtime.rs:95:5
sentry-relay>     |
sentry-relay> 95  |     pub fn global_queue_depth(&self) -> usize {
sentry-relay>     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
sentry-relay> 
sentry-relay> error[E0599]: no method named `worker_mean_poll_time` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>    --> relay-system/src/runtime/metrics.rs:119:20
sentry-relay>     |
sentry-relay> 119 |         self.tokio.worker_mean_poll_time(worker)
sentry-relay>     |                    ^^^^^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
sentry-relay> 
sentry-relay> error[E0599]: no method named `worker_local_schedule_count` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>    --> relay-system/src/runtime/metrics.rs:126:9
sentry-relay>     |
sentry-relay> 126 |         worker_local_schedule_count
sentry-relay>     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
sentry-relay> 
sentry-relay> error[E0599]: no method named `worker_noop_count` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>    --> relay-system/src/runtime/metrics.rs:132:9
sentry-relay>     |
sentry-relay> 132 |         worker_noop_count
sentry-relay>     |         ^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
sentry-relay> 
sentry-relay> error[E0599]: no method named `worker_overflow_count` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>    --> relay-system/src/runtime/metrics.rs:138:9
sentry-relay>     |
sentry-relay> 138 |         worker_overflow_count
sentry-relay>     |         ^^^^^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
sentry-relay> 
sentry-relay> error[E0599]: no method named `worker_park_count` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>    --> relay-system/src/runtime/metrics.rs:143:9
sentry-relay>     |
sentry-relay> 143 |         worker_park_count
sentry-relay>     |         ^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
sentry-relay> 
sentry-relay> error[E0599]: no method named `worker_poll_count` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>    --> relay-system/src/runtime/metrics.rs:148:9
sentry-relay>     |
sentry-relay> 148 |         worker_poll_count
sentry-relay>     |         ^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
sentry-relay> 
sentry-relay> error[E0599]: no method named `worker_steal_count` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>    --> relay-system/src/runtime/metrics.rs:154:9
sentry-relay>     |
sentry-relay> 154 |         worker_steal_count
sentry-relay>     |         ^^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
sentry-relay> 
sentry-relay> error[E0599]: no method named `worker_steal_operations` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>    --> relay-system/src/runtime/metrics.rs:160:9
sentry-relay>     |
sentry-relay> 160 |         worker_steal_operations
sentry-relay>     |         ^^^^^^^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
sentry-relay> 
sentry-relay> error[E0599]: no method named `worker_total_busy_duration` found for struct `tokio::runtime::RuntimeMetrics` in the current scope
sentry-relay>    --> relay-system/src/runtime/metrics.rs:169:31
sentry-relay>     |
sentry-relay> 169 |         let stat = self.tokio.worker_total_busy_duration(worker).as_secs_f64();
sentry-relay>     |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `RuntimeMetrics`
sentry-relay> 
sentry-relay> For more information about this error, try `rustc --explain E0599`.
sentry-relay> error: could not compile `relay-system` (lib) due to 14 previous errors
03:57:06
@hexa:lossy.networkhexa(╯°□°)╯︵ ┻━┻03:57:23
@hexa:lossy.networkhexa can't reproduce with nix-shell -p cargo python3.pkgs.build --run "python3 -m buiild py" 04:22:07
@hexa:lossy.networkhexa * can't reproduce with nix-shell -p cargo python3.pkgs.build --run "python3 -m build py" 04:23:18
@hexa:lossy.networkhexa

cargo-deps-vendor-staging> Fetching https://crates.io/api/v1/crates/tokio/1.42.0/download -> tarballs/tokio-1.42.0.tar.gz

04:25:07
@hexa:lossy.networkhexasame version of tokio04:25:23
@hexa:lossy.networkhexabecause of course it is locked04:29:40
@hexa:lossy.networkhexaa fun bit is that the tag on the repo is not the version of the python package in the repo 🤪04:30:01
@hexa:lossy.networkhexahttps://github.com/getsentry/relay/blob/master/py/setup.py#L2304:30:43
@hexa:lossy.networkhexaand instead of 25.4.0 we get 0.9.804:30:49
@hexa:lossy.networkhexareminds me of good ol' openssl04:30:54
@hexa:lossy.networkhexa * reminds me of good ol' openssl 04:30:59
@hexa:lossy.networkhexalatest version pushed to https://github.com/mweinelt/nixpkgs/blob/sentry/pkgs/development/python-modules/sentry-relay/default.nix04:33:05
@k900:0upti.meK900We don't have a prefetch-cargo-vendor or anything, right?09:56:47
@emilazy:matrix.orgemily nix-update can do it 10:06:47
@emilazy:matrix.orgemilyif you tell it not to bump the version10:06:52
@k900:0upti.meK900Hm OK this helps10:09:49
@glepage:matrix.orgGaétan Lepage How can I pass --target wasm32-wasip1 to buildRustPackage? Is it really falling in the scope of cross-compiling? 11:07:55
@glepage:matrix.orgGaétan Lepage Source: https://github.com/bytecodealliance/wasmtime-py/blob/main/ci/build-rust.py#L22 11:08:24
@qyliss:fairydust.spaceAlyssa RossYou should be able to do it without cross compiling11:17:34
@qyliss:fairydust.spaceAlyssa Ross(in the Nixpkgs sense)11:17:39
@glepage:matrix.orgGaétan Lepage Ok great! How though? If I add --target wasm32-wasip1 to cargoBuildFlags, it just appends it and I have two --target flags in the final command. 11:41:31
@glepage:matrix.orgGaétan Lepage Is there a way to simply "override" the --target flag? 11:41:47
@aloisw:julia0815.de@aloisw:julia0815.de There does not appear to, but you can work around by calling cargo with the right flags in stdenv.mkDerivation. 12:39:16
@glepage:matrix.orgGaétan LepageOk I see, thanks :)13:26:14
@glepage:matrix.orgGaétan Lepage

Not that easy...

error[E0463]: can't find crate for `core`
  |
  = note: the `wasm32-wasip1` target may not be installed
  = help: consider downloading the target with `rustup target add wasm32-wasip1`
14:07:36
@aloisw:julia0815.de@aloisw:julia0815.deAh shit, wasi may be harder.15:58:21

Show newer messages


Back to Room ListRoom Version: 6