The simple.rs example must be compiled with RUSTFLAGS="--cfg tokio_unstable" #1

Closed
opened 2022-05-19 07:50:10 +00:00 by quentin · 1 comment

If I compile simple.rs following the doc, I have the following error:

$ cargo run --example simple

thread 'main' panicked at 'task tracing requires Tokio to be built with RUSTFLAGS="--cfg tokio_unstable"!', /home/quentin/.cargo/registry/src/github.com-1ecc6299db9ec823/console-subscriber-0.1.3/src/lib.rs:252:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It can be solved by running instead:

$ RUSTFLAGS="--cfg tokio_unstable"  cargo run --example simple
If I compile simple.rs following the doc, I have the following error: ``` $ cargo run --example simple thread 'main' panicked at 'task tracing requires Tokio to be built with RUSTFLAGS="--cfg tokio_unstable"!', /home/quentin/.cargo/registry/src/github.com-1ecc6299db9ec823/console-subscriber-0.1.3/src/lib.rs:252:9 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` It can be solved by running instead: ``` $ RUSTFLAGS="--cfg tokio_unstable" cargo run --example simple ```
Owner

Ah yeah i indeed forgot this stuff in the draft-doc, thanks

Fixed with 921ea05f89

Ah yeah i indeed forgot this stuff in the draft-doc, thanks Fixed with https://git.deuxfleurs.fr/KokaKiwi/boitalettres/commit/921ea05f89b782dcb7d9ba4260d61f49de5e8184
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: KokaKiwi/boitalettres#1
No description provided.