nostr:npub189j8y280mhezlp98ecmdzydn0r8970g4hpqpx3u9tcztynywfczqqr3tg8 nostr:npub1acg6thl5psv62405rljzkj8spesceyfz2c32udakc2ak0dmvfeyse9p35c Haven't been able to build master of gossip for a bit. Have you seen this before?

Reply to this note

Please Login to reply.

Discussion

I have no idea how you are triggering that.

Are you on master at commit e0167310220aa7904cef8bb5454ef106cb3eecea ?

What version of rust are you using (rustc --version)? Is it 1.74.0?

Does Cargo.lock show it has locked tokio to version 1.34.0 ?

`cargo clean` also helps.

Thanks tried it didn't work

I tried the latest master with rust 1.74 on a fresh new checkout.

`cargo build` worked.

I'll try on 1.74 thanks

I'm on 1.73. Yes that commit and Tokio is 1.34.0

What command are you using to build?

Cargo build

The error indicates that tokio isn't configured right.

tokio has to be built with the unstable flag.

There is a file ".cargo/config" which sets this flag.

If you set RUSTFLAGS you will clobber this setting, so you have to add "--cfg tokio_unstable" to RUSTFLAGS if you override it.

Gossip has a Cargo.lock which fixes in place the versions of all the dependenices so you can't be running some new tokio that breaks.

Thanks. I'll play with it a bit, my nix shell might be setting some flags

Yep was nix messing with things. Got it working now posting from gossip thanks