rvolosatovs opened issue #11245:
Steps to Reproduce
apply:
diff --git a/crates/wasi/src/p3/bindings.rs b/crates/wasi/src/p3/bindings.rs index 2bedc0476b..560ffa5de8 100644 --- a/crates/wasi/src/p3/bindings.rs +++ b/crates/wasi/src/p3/bindings.rs @@ -117,7 +117,7 @@ mod generated { wasmtime::component::bindgen!({ path: "src/p3/wit", world: "wasi:cli/command", - //tracing: true, // TODO: Enable once fixed + tracing: true, trappable_imports: true, concurrent_exports: true, concurrent_imports: true,to:
$ git checkout 2b8322817e # latest `main` as of time of writing $ curl -sL https://github.com/bytecodealliance/wasmtime/pull/11221.patch | git am -3 $ curl -sL https://github.com/bytecodealliance/wasmtime/pull/11244.patch | git am -3or, potentially, latest
mainif/when #11221 and https://github.com/bytecodealliance/wasmtime/pull/11244 are mergedthen:
$ cargo build -p wasmtime-wasi --features p3Expected Results
Success
Actual Results
error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: 1 redundant requirement hidden = note: required for `&std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `tracing::Value` is implemented for `DebugValue<T>` = note: required for `std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: 1 redundant requirement hidden = note: required for `&std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: required for `DebugValue<&std::result::Result<HostStream<u8>, wasmtime::Error>>` to implement `tracing::Value` = note: required for the cast from `&DebugValue<&std::result::Result<HostStream<u8>, wasmtime::Error>>` to `&dyn tracing::Value` = note: this error originates in the macro `$crate::valueset` which comes from the expansion of the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = note: required for `&HostStream<u8>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `tracing::Value` is implemented for `DebugValue<T>` = note: required for `&HostStream<u8>` to implement `std::fmt::Debug` = note: required for `DebugValue<&HostStream<u8>>` to implement `tracing::Value` = note: required for the cast from `&DebugValue<&HostStream<u8>>` to `&dyn tracing::Value` = note: this error originates in the macro `$crate::valueset` which comes from the expansion of the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `(HostStream<u8>, HostFuture<Result<(), ErrorCode>>)` to implement `std::fmt::Debug` = note: 2 redundant requirements hidden = note: required for `&Result<(HostStream<u8>, HostFuture<Result<(), ...>>), ...>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: the full name for the type has been written to '/Users/rvolosatovs/src/github.com/bytecodealliance/wasmtime/target/debug/deps/wasmtime_wasi-d64b71307fef0f36.long-type-14822806477592345179.txt' = note: consider using `--verbose` to print the full type name to the console = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostFuture<Result<(), ErrorCode>>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostFuture<Result<(), ErrorCode>>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostFuture<Result<(), ErrorCode>>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `(HostStream<u8>, HostFuture<Result<(), ErrorCode>>)` to implement `std::fmt::Debug` = note: 2 redundant requirements hidden = note: required for `&Result<(HostStream<u8>, HostFuture<Result<(), ...>>), ...>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: the full name for the type has been written to '/Users/rvolosatovs/src/github.com/bytecodealliance/wasmtime/target/debug/deps/wasmtime_wasi-d64b71307fef0f36.long-type-5122028963844032631.txt' = note: consider using `--verbose` to print the full type name to the console = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<p3::bindings::generated::wasi::filesystem::types::DirectoryEntry>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<p3::bindings::generated::wasi::filesystem::types::DirectoryEntry>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not [message truncated]
rvolosatovs added the bug label to Issue #11245.
rvolosatovs edited issue #11245:
Steps to Reproduce
apply:
diff --git a/crates/wasi/src/p3/bindings.rs b/crates/wasi/src/p3/bindings.rs index 864d1eb8a4..560ffa5de8 100644 --- a/crates/wasi/src/p3/bindings.rs +++ b/crates/wasi/src/p3/bindings.rs @@ -117,9 +117,7 @@ mod generated { wasmtime::component::bindgen!({ path: "src/p3/wit", world: "wasi:cli/command", - // TODO: Enable `tracing` once fixed: - // https://github.com/bytecodealliance/wasmtime/issues/11245 - //tracing: true, + tracing: true, trappable_imports: true, concurrent_exports: true, concurrent_imports: true,to:
$ git checkout 2b8322817e # latest `main` as of time of writing $ curl -sL https://github.com/bytecodealliance/wasmtime/pull/11221.patch | git am -3 $ curl -sL https://github.com/bytecodealliance/wasmtime/pull/11244.patch | git am -3or, potentially, latest
mainif/when #11221 and https://github.com/bytecodealliance/wasmtime/pull/11244 are mergedthen:
$ cargo build -p wasmtime-wasi --features p3Expected Results
Success
Actual Results
error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: 1 redundant requirement hidden = note: required for `&std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `tracing::Value` is implemented for `DebugValue<T>` = note: required for `std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: 1 redundant requirement hidden = note: required for `&std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: required for `DebugValue<&std::result::Result<HostStream<u8>, wasmtime::Error>>` to implement `tracing::Value` = note: required for the cast from `&DebugValue<&std::result::Result<HostStream<u8>, wasmtime::Error>>` to `&dyn tracing::Value` = note: this error originates in the macro `$crate::valueset` which comes from the expansion of the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = note: required for `&HostStream<u8>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `tracing::Value` is implemented for `DebugValue<T>` = note: required for `&HostStream<u8>` to implement `std::fmt::Debug` = note: required for `DebugValue<&HostStream<u8>>` to implement `tracing::Value` = note: required for the cast from `&DebugValue<&HostStream<u8>>` to `&dyn tracing::Value` = note: this error originates in the macro `$crate::valueset` which comes from the expansion of the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `(HostStream<u8>, HostFuture<Result<(), ErrorCode>>)` to implement `std::fmt::Debug` = note: 2 redundant requirements hidden = note: required for `&Result<(HostStream<u8>, HostFuture<Result<(), ...>>), ...>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: the full name for the type has been written to '/Users/rvolosatovs/src/github.com/bytecodealliance/wasmtime/target/debug/deps/wasmtime_wasi-d64b71307fef0f36.long-type-14822806477592345179.txt' = note: consider using `--verbose` to print the full type name to the console = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostFuture<Result<(), ErrorCode>>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostFuture<Result<(), ErrorCode>>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostFuture<Result<(), ErrorCode>>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `(HostStream<u8>, HostFuture<Result<(), ErrorCode>>)` to implement `std::fmt::Debug` = note: 2 redundant requirements hidden = note: required for `&Result<(HostStream<u8>, HostFuture<Result<(), ...>>), ...>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: the full name for the type has been written to '/Users/rvolosatovs/src/github.com/bytecodealliance/wasmtime/target/debug/deps/wasmtime_wasi-d64b71307fef0f36.long-type-5122028963844032631.txt' = note: consider using `--verbose` to print the full type name to the console = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<p3::bindings::generated::wasi::filesystem::types::DirectoryEntry>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<p3::bindings::generated::wasi::filesystem::types::DirectoryEntry>` cannot be formatted using `{:?}` because it [message truncated]
alexcrichton closed issue #11245:
Steps to Reproduce
apply:
diff --git a/crates/wasi/src/p3/bindings.rs b/crates/wasi/src/p3/bindings.rs index 864d1eb8a4..560ffa5de8 100644 --- a/crates/wasi/src/p3/bindings.rs +++ b/crates/wasi/src/p3/bindings.rs @@ -117,9 +117,7 @@ mod generated { wasmtime::component::bindgen!({ path: "src/p3/wit", world: "wasi:cli/command", - // TODO: Enable `tracing` once fixed: - // https://github.com/bytecodealliance/wasmtime/issues/11245 - //tracing: true, + tracing: true, trappable_imports: true, concurrent_exports: true, concurrent_imports: true,to:
$ git checkout 2b8322817e # latest `main` as of time of writing $ curl -sL https://github.com/bytecodealliance/wasmtime/pull/11221.patch | git am -3 $ curl -sL https://github.com/bytecodealliance/wasmtime/pull/11244.patch | git am -3or, potentially, latest
mainif/when #11221 and https://github.com/bytecodealliance/wasmtime/pull/11244 are mergedthen:
$ cargo build -p wasmtime-wasi --features p3Expected Results
Success
Actual Results
error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: 1 redundant requirement hidden = note: required for `&std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `tracing::Value` is implemented for `DebugValue<T>` = note: required for `std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: 1 redundant requirement hidden = note: required for `&std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: required for `DebugValue<&std::result::Result<HostStream<u8>, wasmtime::Error>>` to implement `tracing::Value` = note: required for the cast from `&DebugValue<&std::result::Result<HostStream<u8>, wasmtime::Error>>` to `&dyn tracing::Value` = note: this error originates in the macro `$crate::valueset` which comes from the expansion of the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = note: required for `&HostStream<u8>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `tracing::Value` is implemented for `DebugValue<T>` = note: required for `&HostStream<u8>` to implement `std::fmt::Debug` = note: required for `DebugValue<&HostStream<u8>>` to implement `tracing::Value` = note: required for the cast from `&DebugValue<&HostStream<u8>>` to `&dyn tracing::Value` = note: this error originates in the macro `$crate::valueset` which comes from the expansion of the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `(HostStream<u8>, HostFuture<Result<(), ErrorCode>>)` to implement `std::fmt::Debug` = note: 2 redundant requirements hidden = note: required for `&Result<(HostStream<u8>, HostFuture<Result<(), ...>>), ...>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: the full name for the type has been written to '/Users/rvolosatovs/src/github.com/bytecodealliance/wasmtime/target/debug/deps/wasmtime_wasi-d64b71307fef0f36.long-type-14822806477592345179.txt' = note: consider using `--verbose` to print the full type name to the console = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostFuture<Result<(), ErrorCode>>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostFuture<Result<(), ErrorCode>>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostFuture<Result<(), ErrorCode>>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `(HostStream<u8>, HostFuture<Result<(), ErrorCode>>)` to implement `std::fmt::Debug` = note: 2 redundant requirements hidden = note: required for `&Result<(HostStream<u8>, HostFuture<Result<(), ...>>), ...>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: the full name for the type has been written to '/Users/rvolosatovs/src/github.com/bytecodealliance/wasmtime/target/debug/deps/wasmtime_wasi-d64b71307fef0f36.long-type-5122028963844032631.txt' = note: consider using `--verbose` to print the full type name to the console = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<p3::bindings::generated::wasi::filesystem::types::DirectoryEntry>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<p3::bindings::generated::wasi::filesystem::types::DirectoryEntry>` cannot be formatted using `{:?}` because i [message truncated]
alexcrichton commented on issue #11245:
Fixed in #11238 (yay!)
rvolosatovs commented on issue #11245:
@alexcrichton unfortunately, it seems that after applying
diff --git a/crates/wasi/src/p3/bindings.rs b/crates/wasi/src/p3/bindings.rs index 864d1eb8a4..560ffa5de8 100644 --- a/crates/wasi/src/p3/bindings.rs +++ b/crates/wasi/src/p3/bindings.rs @@ -117,9 +117,7 @@ mod generated { wasmtime::component::bindgen!({ path: "src/p3/wit", world: "wasi:cli/command", - // TODO: Enable `tracing` once fixed: - // https://github.com/bytecodealliance/wasmtime/issues/11245 - //tracing: true, + tracing: true, trappable_imports: true, concurrent_exports: true, concurrent_imports: true,still fails to compile for me on 9d796943d1 (https://github.com/bytecodealliance/wasmtime/pull/11221) with:
cargo build -p wasmtime-wasi --features p3(you'll also need to apply #11244)
rvolosatovs edited a comment on issue #11245:
@alexcrichton unfortunately, it seems that after applying
diff --git a/crates/wasi/src/p3/bindings.rs b/crates/wasi/src/p3/bindings.rs index 864d1eb8a4..560ffa5de8 100644 --- a/crates/wasi/src/p3/bindings.rs +++ b/crates/wasi/src/p3/bindings.rs @@ -117,9 +117,7 @@ mod generated { wasmtime::component::bindgen!({ path: "src/p3/wit", world: "wasi:cli/command", - // TODO: Enable `tracing` once fixed: - // https://github.com/bytecodealliance/wasmtime/issues/11245 - //tracing: true, + tracing: true, trappable_imports: true, concurrent_exports: true, concurrent_imports: true,this still fails to compile for me on 9d796943d1 (https://github.com/bytecodealliance/wasmtime/pull/11221):
cargo build -p wasmtime-wasi --features p3(you'll also need to apply #11244)
alexcrichton reopened issue #11245:
Steps to Reproduce
apply:
diff --git a/crates/wasi/src/p3/bindings.rs b/crates/wasi/src/p3/bindings.rs index 864d1eb8a4..560ffa5de8 100644 --- a/crates/wasi/src/p3/bindings.rs +++ b/crates/wasi/src/p3/bindings.rs @@ -117,9 +117,7 @@ mod generated { wasmtime::component::bindgen!({ path: "src/p3/wit", world: "wasi:cli/command", - // TODO: Enable `tracing` once fixed: - // https://github.com/bytecodealliance/wasmtime/issues/11245 - //tracing: true, + tracing: true, trappable_imports: true, concurrent_exports: true, concurrent_imports: true,to:
$ git checkout 2b8322817e # latest `main` as of time of writing $ curl -sL https://github.com/bytecodealliance/wasmtime/pull/11221.patch | git am -3 $ curl -sL https://github.com/bytecodealliance/wasmtime/pull/11244.patch | git am -3or, potentially, latest
mainif/when #11221 and https://github.com/bytecodealliance/wasmtime/pull/11244 are mergedthen:
$ cargo build -p wasmtime-wasi --features p3Expected Results
Success
Actual Results
error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: 1 redundant requirement hidden = note: required for `&std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `tracing::Value` is implemented for `DebugValue<T>` = note: required for `std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: 1 redundant requirement hidden = note: required for `&std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: required for `DebugValue<&std::result::Result<HostStream<u8>, wasmtime::Error>>` to implement `tracing::Value` = note: required for the cast from `&DebugValue<&std::result::Result<HostStream<u8>, wasmtime::Error>>` to `&dyn tracing::Value` = note: this error originates in the macro `$crate::valueset` which comes from the expansion of the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = note: required for `&HostStream<u8>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `tracing::Value` is implemented for `DebugValue<T>` = note: required for `&HostStream<u8>` to implement `std::fmt::Debug` = note: required for `DebugValue<&HostStream<u8>>` to implement `tracing::Value` = note: required for the cast from `&DebugValue<&HostStream<u8>>` to `&dyn tracing::Value` = note: this error originates in the macro `$crate::valueset` which comes from the expansion of the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `(HostStream<u8>, HostFuture<Result<(), ErrorCode>>)` to implement `std::fmt::Debug` = note: 2 redundant requirements hidden = note: required for `&Result<(HostStream<u8>, HostFuture<Result<(), ...>>), ...>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: the full name for the type has been written to '/Users/rvolosatovs/src/github.com/bytecodealliance/wasmtime/target/debug/deps/wasmtime_wasi-d64b71307fef0f36.long-type-14822806477592345179.txt' = note: consider using `--verbose` to print the full type name to the console = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostFuture<Result<(), ErrorCode>>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostFuture<Result<(), ErrorCode>>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostFuture<Result<(), ErrorCode>>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `(HostStream<u8>, HostFuture<Result<(), ErrorCode>>)` to implement `std::fmt::Debug` = note: 2 redundant requirements hidden = note: required for `&Result<(HostStream<u8>, HostFuture<Result<(), ...>>), ...>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: the full name for the type has been written to '/Users/rvolosatovs/src/github.com/bytecodealliance/wasmtime/target/debug/deps/wasmtime_wasi-d64b71307fef0f36.long-type-5122028963844032631.txt' = note: consider using `--verbose` to print the full type name to the console = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<p3::bindings::generated::wasi::filesystem::types::DirectoryEntry>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<p3::bindings::generated::wasi::filesystem::types::DirectoryEntry>` cannot be formatted using `{:?}` because [message truncated]
alexcrichton added the wasm-proposal:component-model-async label to Issue #11245.
alexcrichton removed the bug label from Issue #11245.
alexcrichton assigned alexcrichton to issue #11245.
alexcrichton closed issue #11245:
Steps to Reproduce
apply:
diff --git a/crates/wasi/src/p3/bindings.rs b/crates/wasi/src/p3/bindings.rs index 864d1eb8a4..560ffa5de8 100644 --- a/crates/wasi/src/p3/bindings.rs +++ b/crates/wasi/src/p3/bindings.rs @@ -117,9 +117,7 @@ mod generated { wasmtime::component::bindgen!({ path: "src/p3/wit", world: "wasi:cli/command", - // TODO: Enable `tracing` once fixed: - // https://github.com/bytecodealliance/wasmtime/issues/11245 - //tracing: true, + tracing: true, trappable_imports: true, concurrent_exports: true, concurrent_imports: true,to:
$ git checkout 2b8322817e # latest `main` as of time of writing $ curl -sL https://github.com/bytecodealliance/wasmtime/pull/11221.patch | git am -3 $ curl -sL https://github.com/bytecodealliance/wasmtime/pull/11244.patch | git am -3or, potentially, latest
mainif/when #11221 and https://github.com/bytecodealliance/wasmtime/pull/11244 are mergedthen:
$ cargo build -p wasmtime-wasi --features p3Expected Results
Success
Actual Results
error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: 1 redundant requirement hidden = note: required for `&std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `tracing::Value` is implemented for `DebugValue<T>` = note: required for `std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: 1 redundant requirement hidden = note: required for `&std::result::Result<HostStream<u8>, wasmtime::Error>` to implement `std::fmt::Debug` = note: required for `DebugValue<&std::result::Result<HostStream<u8>, wasmtime::Error>>` to implement `tracing::Value` = note: required for the cast from `&DebugValue<&std::result::Result<HostStream<u8>, wasmtime::Error>>` to `&dyn tracing::Value` = note: this error originates in the macro `$crate::valueset` which comes from the expansion of the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = note: required for `&HostStream<u8>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `tracing::Value` is implemented for `DebugValue<T>` = note: required for `&HostStream<u8>` to implement `std::fmt::Debug` = note: required for `DebugValue<&HostStream<u8>>` to implement `tracing::Value` = note: required for the cast from `&DebugValue<&HostStream<u8>>` to `&dyn tracing::Value` = note: this error originates in the macro `$crate::valueset` which comes from the expansion of the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<u8>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<u8>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostStream<u8>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `(HostStream<u8>, HostFuture<Result<(), ErrorCode>>)` to implement `std::fmt::Debug` = note: 2 redundant requirements hidden = note: required for `&Result<(HostStream<u8>, HostFuture<Result<(), ...>>), ...>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: the full name for the type has been written to '/Users/rvolosatovs/src/github.com/bytecodealliance/wasmtime/target/debug/deps/wasmtime_wasi-d64b71307fef0f36.long-type-14822806477592345179.txt' = note: consider using `--verbose` to print the full type name to the console = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostFuture<Result<(), ErrorCode>>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostFuture<Result<(), ErrorCode>>` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug` | = help: the trait `std::fmt::Debug` is not implemented for `HostFuture<Result<(), ErrorCode>>` = help: the trait `std::fmt::Debug` is implemented for `std::result::Result<T, E>` = note: required for `(HostStream<u8>, HostFuture<Result<(), ErrorCode>>)` to implement `std::fmt::Debug` = note: 2 redundant requirements hidden = note: required for `&Result<(HostStream<u8>, HostFuture<Result<(), ...>>), ...>` to implement `std::fmt::Debug` note: required by a bound in `tracing::field::debug` --> /Users/rvolosatovs/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-core-0.1.31/src/field.rs:365:8 | 363 | pub fn debug<T>(t: T) -> DebugValue<T> | ----- required by a bound in this function 364 | where 365 | T: fmt::Debug, | ^^^^^^^^^^ required by this bound in `debug` = note: the full name for the type has been written to '/Users/rvolosatovs/src/github.com/bytecodealliance/wasmtime/target/debug/deps/wasmtime_wasi-d64b71307fef0f36.long-type-5122028963844032631.txt' = note: consider using `--verbose` to print the full type name to the console = note: this error originates in the macro `wasmtime::component::bindgen` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0277]: `HostStream<p3::bindings::generated::wasi::filesystem::types::DirectoryEntry>` doesn't implement `std::fmt::Debug` --> crates/wasi/src/p3/bindings.rs:117:5 | 117 | / wasmtime::component::bindgen!({ 118 | | path: "src/p3/wit", 119 | | world: "wasi:cli/command", 120 | | tracing: true, ... | 167 | | }, 168 | | }); | |______^ `HostStream<p3::bindings::generated::wasi::filesystem::types::DirectoryEntry>` cannot be formatted using `{:?}` because i [message truncated]
Last updated: Dec 06 2025 at 07:03 UTC