mikedilger / gossip

Gossip is a nostr client
Other
710 stars 81 forks source link

cargo install --git https://github.com/mikedilger/gossip.git failed on a Debian-based system (Antix) #651

Closed whileunless closed 8 months ago

whileunless commented 8 months ago

cargo install --git https://github.com/mikedilger/gossip.git failed. The output is:

   Updating git repository `https://github.com/mikedilger/gossip.git`
  Installing gossip v0.10.0-unstable (https://github.com/mikedilger/gossip.git#fe45e990)
    Updating git repository `https://github.com/bu5hm4nn/egui`
    Updating git repository `https://github.com/Rust-SDL2/rust-sdl2`
    Updating crates.io index
    Updating git repository `https://github.com/mikedilger/gossip-relay-picker`
    Updating git repository `https://github.com/mikedilger/nostr-types`
    Updating git repository `https://github.com/mikedilger/qrcode-rust`
    Updating git repository `https://github.com/meilisearch/heed`
    Updating git repository `https://github.com/mikedilger/speedy`
    Updating git repository `https://github.com/mikedilger/nip44`
warning: Patch `sdl2 v0.36.0 (https://github.com/Rust-SDL2/rust-sdl2?rev=f2f1e29a416bcc22f2faf411866db2c8d9536308#f2f1e29a)` was not used in the crate graph.
Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
  Downloaded xkbcommon-dl v0.4.2
  Downloaded rustls-pki-types v1.3.1
  Downloaded smithay-clipboard v0.7.1
  Downloaded enumflags2 v0.7.9
  Downloaded zvariant_derive v3.15.2
  Downloaded semver v1.0.22
  Downloaded cc v1.0.88
  Downloaded enumflags2_derive v0.7.9
  Downloaded gif v0.13.1
  Downloaded zbus_macros v3.15.2
  Downloaded event-listener-strategy v0.5.0
  Downloaded either v1.10.0
  Downloaded thiserror-impl v1.0.57
  Downloaded thiserror v1.0.57
  Downloaded polling v3.5.0
  Downloaded profiling v1.0.15
  Downloaded async-channel v2.2.0
  Downloaded bytemuck v1.14.3
  Downloaded unicode-script v0.5.6
  Downloaded thread_local v1.1.8
  Downloaded rustls-pemfile v2.1.0
  Downloaded pkg-config v0.3.30
  Downloaded event-listener v5.1.0
  Downloaded ahash v0.7.8
  Downloaded half v2.4.0
  Downloaded crc32fast v1.4.0
  Downloaded socket2 v0.5.6
  Downloaded serde_derive v1.0.197
  Downloaded ahash v0.8.9
  Downloaded ryu v1.0.17
  Downloaded arboard v3.3.1
  Downloaded zvariant v3.15.2
  Downloaded num-traits v0.2.18
  Downloaded glutin v0.31.3
  Downloaded serde v1.0.197
  Downloaded indexmap v2.2.3
  Downloaded png v0.17.13
  Downloaded aes v0.8.4
  Downloaded serde_json v1.0.114
  Downloaded zbus v3.15.2
  Downloaded unicode-normalization v0.1.23
  Downloaded winnow v0.5.40
  Downloaded syn v2.0.51
  Downloaded winit v0.29.11
  Downloaded ring v0.17.8
  Downloaded image v0.24.9
  Downloaded 46 crates (16.4 MB) in 12.23s (largest was `image` at 9.3 MB)
   Compiling proc-macro2 v1.0.78
   Compiling unicode-ident v1.0.12
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.153
   Compiling autocfg v1.1.0
   Compiling version_check v0.9.4
   Compiling serde v1.0.197
   Compiling once_cell v1.19.0
   Compiling log v0.4.20
   Compiling cc v1.0.88
   Compiling pin-project-lite v0.2.13
   Compiling smallvec v1.13.1
   Compiling typenum v1.17.0
   Compiling crossbeam-utils v0.8.19
   Compiling scopeguard v1.2.0
   Compiling futures-core v0.3.30
   Compiling memchr v2.7.1
   Compiling subtle v2.5.0
   Compiling bitflags v1.3.2
   Compiling tracing-core v0.1.32
   Compiling pkg-config v0.3.30
   Compiling futures-io v0.3.30
   Compiling cpufeatures v0.2.12
   Compiling syn v1.0.109
   Compiling libloading v0.8.1
   Compiling rustix v0.38.31
   Compiling parking_lot_core v0.9.9
   Compiling generic-array v0.14.7
   Compiling lock_api v0.4.11
   Compiling slab v0.4.9
   Compiling ppv-lite86 v0.2.17
   Compiling linux-raw-sys v0.4.13
   Compiling parking v2.2.0
   Compiling futures-sink v0.3.30
   Compiling dlib v0.5.2
   Compiling thiserror v1.0.57
   Compiling futures-channel v0.3.30
   Compiling futures-task v0.3.30
   Compiling quote v1.0.35
   Compiling spin v0.9.8
   Compiling wayland-sys v0.31.1
   Compiling concurrent-queue v2.4.0
   Compiling pin-utils v0.1.0
   Compiling base64 v0.21.7
   Compiling byteorder v1.5.0
   Compiling syn v2.0.51
   Compiling tinyvec_macros v0.1.1
   Compiling simd-adler32 v0.3.7
   Compiling itoa v1.0.10
   Compiling bytes v1.5.0
   Compiling float-cmp v0.9.0
   Compiling strict-num v0.1.1
   Compiling tinyvec v1.6.0
   Compiling downcast-rs v1.2.0
   Compiling equivalent v1.0.1
   Compiling crunchy v0.2.2
   Compiling arrayvec v0.7.4
   Compiling arrayref v0.3.7
   Compiling scoped-tls v1.0.1
   Compiling hashbrown v0.14.3
   Compiling quick-xml v0.31.0
   Compiling wayland-backend v0.3.3
   Compiling ring v0.17.8
   Compiling toml_datetime v0.6.5
   Compiling percent-encoding v2.3.1
   Compiling winnow v0.5.40
   Compiling adler v1.0.2
   Compiling tiny-keccak v2.0.2
   Compiling crc32fast v1.4.0
   Compiling zeroize v1.7.0
   Compiling miniz_oxide v0.7.2
   Compiling getrandom v0.2.12
   Compiling block-buffer v0.10.4
   Compiling rand_core v0.6.4
   Compiling event-listener v4.0.3
   Compiling unicode-bidi v0.3.15
   Compiling static_assertions v1.1.0
   Compiling parking_lot v0.12.1
   Compiling indexmap v2.2.3
   Compiling crypto-common v0.1.6
   Compiling digest v0.10.7
   Compiling rand_chacha v0.3.1
   Compiling event-listener-strategy v0.4.0
   Compiling wayland-scanner v0.31.1
   Compiling num_cpus v1.16.0
   Compiling event-listener v5.1.0
   Compiling memoffset v0.7.1
   Compiling rand v0.8.5
   Compiling async-trait v0.1.77
   Compiling io-lifetimes v1.0.11
   Compiling untrusted v0.9.0
   Compiling event-listener v2.5.3
   Compiling fastrand v2.0.1
   Compiling const-random-macro v0.1.16
   Compiling event-listener-strategy v0.5.0
   Compiling sha1 v0.10.6
   Compiling flate2 v1.0.28
   Compiling async-lock v3.3.0
   Compiling block-padding v0.3.3
   Compiling socket2 v0.5.6
   Compiling signal-hook-registry v1.4.1
   Compiling mio v0.8.10
   Compiling aho-corasick v1.1.2
   Compiling polling v2.8.0
   Compiling ahash v0.8.9
   Compiling futures-lite v2.2.0
   Compiling toml_edit v0.19.15
   Compiling async-task v4.7.0
   Compiling waker-fn v1.1.1
   Compiling regex-syntax v0.8.2
   Compiling atomic-waker v1.1.2
   Compiling cfg_aliases v0.1.1
   Compiling khronos_api v3.1.0
   Compiling fnv v1.0.7
   Compiling hex v0.4.3
   Compiling rustix v0.37.27
   Compiling fastrand v1.9.0
   Compiling piper v0.2.1
   Compiling futures-lite v1.13.0
   Compiling const-random v0.1.17
   Compiling inout v0.1.3
   Compiling async-channel v2.2.0
   Compiling async-lock v2.8.0
   Compiling unicode-normalization v0.1.23
   Compiling form_urlencoded v1.2.1
   Compiling crossbeam-epoch v0.9.18
   Compiling async-fs v1.6.0
   Compiling async-io v1.13.0
   Compiling zerocopy v0.7.32
   Compiling rayon-core v1.12.1
   Compiling linux-raw-sys v0.3.8
   Compiling ttf-parser v0.20.0
   Compiling crossbeam-deque v0.8.5
   Compiling proc-macro-crate v1.3.1
   Compiling cipher v0.4.4
   Compiling socket2 v0.4.10
   Compiling zvariant_utils v1.0.1
   Compiling idna v0.5.0
   Compiling num-traits v0.2.18
   Compiling xml-rs v0.8.19
   Compiling ab_glyph_rasterizer v0.1.8
   Compiling siphasher v0.3.11
   Compiling regex-automata v0.4.5
   Compiling phf_shared v0.11.2
   Compiling nix v0.26.4
   Compiling url v2.5.0
   Compiling gl_generator v0.14.0
   Compiling async-executor v1.8.0
   Compiling async-broadcast v0.5.1
   Compiling xdg-home v1.1.0
   Compiling secp256k1-sys v0.6.1
   Compiling x11-dl v2.21.0
   Compiling ordered-stream v0.2.0
   Compiling xkeysym v0.2.0
   Compiling xcursor v0.3.5
   Compiling cursor-icon v1.1.0
   Compiling owned_ttf_parser v0.20.0
   Compiling smithay-client-toolkit v0.18.1
   Compiling ab_glyph v0.2.23
   Compiling phf_generator v0.11.2
   Compiling http v0.2.11
   Compiling memmap2 v0.9.4
   Compiling regex v1.10.3
   Compiling serde_derive v1.0.197
   Compiling bytemuck_derive v1.5.0
   Compiling tracing-attributes v0.1.27
   Compiling futures-macro v0.3.30
   Compiling thiserror-impl v1.0.57
   Compiling enumflags2_derive v0.7.9
   Compiling tokio-macros v2.2.0
   Compiling zvariant_derive v3.15.2
   Compiling async-recursion v1.0.5
   Compiling derivative v2.2.0
   Compiling bytemuck v1.14.3
   Compiling serde_repr v0.1.18
   Compiling futures-util v0.3.30
   Compiling tokio v1.36.0
   Compiling zbus_macros v3.15.2
   Compiling enumn v0.1.13
   Compiling tracing v0.1.40
   Compiling rustls-pki-types v1.3.1
   Compiling ryu v1.0.17
   Compiling bitcoin-internals v0.2.0
   Compiling blocking v1.5.1
   Compiling weezl v0.1.8
   Compiling either v1.10.0
   Compiling httparse v1.8.0
   Compiling serde_json v1.0.114
   Compiling rayon v1.8.1
   Compiling tiny-skia-path v0.11.4
   Compiling tiny-skia-path v0.10.0
   Compiling phf_macros v0.11.2
   Compiling hmac v0.12.1
   Compiling secp256k1-sys v0.9.2
   Compiling kurbo v0.9.5
   Compiling fdeflate v0.3.4
   Compiling slotmap v1.0.7
   Compiling getrandom v0.1.16
   Compiling unicode-general-category v0.6.0
   Compiling as-raw-xcb-connection v1.0.1
   Compiling raw-window-handle v0.5.2
   Compiling bitcoin_hashes v0.11.0
   Compiling color_quant v1.1.0
   Compiling x11rb-protocol v0.13.0
   Compiling svgtypes v0.11.0
   Compiling png v0.17.13
   Compiling phf v0.11.2
   Compiling tiny-skia v0.11.4
   Compiling jpeg-decoder v0.3.1
   Compiling winit v0.29.11
   Compiling sha2 v0.10.8
   Compiling secp256k1 v0.24.3
   Compiling memoffset v0.8.0
   Compiling roxmltree v0.19.0
   Compiling hex-conservative v0.1.1
   Compiling openssl-probe v0.1.5
   Compiling lazy_static v1.4.0
   Compiling rustversion v1.0.14
   Compiling rustls v0.21.10
   Compiling alloc-no-stdlib v2.0.4
   Compiling rctree v0.5.0
   Compiling base64ct v1.6.0
   Compiling bitflags v2.4.2
   Compiling enumflags2 v0.7.9
   Compiling accesskit v0.12.2
   Compiling zvariant v3.15.2
   Compiling bech32 v0.9.1
   Compiling rustls v0.22.2
   Compiling bitcoin v0.29.2
   Compiling password-hash v0.5.0
   Compiling xkbcommon-dl v0.4.2
   Compiling zbus_names v2.6.0
   Compiling emath v0.26.0 (https://github.com/bu5hm4nn/egui?rev=f954e98816d4fb760de31eeec4afcd15ae39a687#f954e988)
   Compiling ecolor v0.26.0 (https://github.com/bu5hm4nn/egui?rev=f954e98816d4fb760de31eeec4afcd15ae39a687#f954e988)
   Compiling zbus v3.15.2
   Compiling usvg-tree v0.35.0
   Compiling alloc-stdlib v0.2.2
   Compiling fontconfig-parser v0.5.6
   Compiling bitcoin_hashes v0.13.0
   Compiling tokio-util v0.7.10
   Compiling sct v0.7.1
   Compiling rustls-webpki v0.101.7
   Compiling rustls-webpki v0.102.2
   Compiling doxygen-rs v0.4.2
   Compiling polling v3.5.0
   Compiling glutin_glx_sys v0.5.0
   Compiling calloop v0.12.4
   Compiling wayland-client v0.31.2
   Compiling wayland-csd-frame v0.3.0
   Compiling glutin_egl_sys v0.6.0
   Compiling chacha20 v0.9.1
   Compiling universal-hash v0.5.1
   Compiling memmap2 v0.6.2
   Compiling zune-inflate v0.2.54
   Compiling flume v0.11.0
   Compiling ahash v0.7.8
   Compiling half v2.4.0
   Compiling bit_field v0.10.2
   Compiling xmlparser v0.13.6
   Compiling ttf-parser v0.19.2
   Compiling unicode-bidi-mirroring v0.1.0
   Compiling wayland-protocols v0.31.2
   Compiling wayland-cursor v0.31.1
   Compiling calloop-wayland-source v0.2.0
   Compiling smol_str v0.2.1
   Compiling atspi-common v0.3.0
   Compiling opaque-debug v0.3.0
   Compiling try-lock v0.2.5
   Compiling ttf-parser v0.18.1
   Compiling unicode-ccc v0.1.2
   Compiling nohash-hasher v0.2.0
   Compiling raw-window-handle v0.6.0
   Compiling lebe v0.5.2
   Compiling unicode-script v0.5.6
   Compiling exr v1.72.0
   Compiling epaint v0.26.0 (https://github.com/bu5hm4nn/egui?rev=f954e98816d4fb760de31eeec4afcd15ae39a687#f954e988)
   Compiling x11rb v0.13.0
   Compiling fontdb v0.14.1
   Compiling rustybuzz v0.7.0
   Compiling want v0.3.1
   Compiling poly1305 v0.8.0
   Compiling roxmltree v0.18.1
   Compiling secp256k1 v0.28.2
   Compiling wayland-protocols-wlr v0.2.0
   Compiling atspi-proxies v0.3.0
   Compiling wayland-protocols-plasma v0.2.0
   Compiling rand_core v0.5.1
   Compiling lmdb-master-sys v0.1.0 (https://github.com/meilisearch/heed?rev=64fd6fec293c0dee94855b8267557ce03e7ce5d8#64fd6fec)
   Compiling atspi-connection v0.3.0
   Compiling atspi v0.19.0
   Compiling sctk-adwaita v0.8.1
   Compiling h2 v0.3.24
   Compiling lightning v0.0.115
   Compiling brotli-decompressor v2.5.1
   Compiling accesskit_consumer v0.16.1
   Compiling pbkdf2 v0.12.2
   Compiling ron v0.8.1
   Compiling tiff v0.9.1
   Compiling gif v0.13.1
   Compiling hkdf v0.12.4
   Compiling rustls-pemfile v2.1.0
   Compiling qoi v0.4.1
   Compiling http-body v0.4.6
   Compiling speedy-derive v0.8.6 (https://github.com/mikedilger/speedy?rev=b8b713a7006958616dd3ef3ba63217740b4b09c2#b8b713a7)
   Compiling salsa20 v0.10.2
   Compiling glutin v0.31.3
   Compiling aead v0.5.2
   Compiling smartstring v1.0.1
   Compiling simplecss v0.2.1
   Compiling imagesize v0.12.0
   Compiling async-once-cell v0.5.3
   Compiling data-url v0.2.0
   Compiling tower-service v0.3.2
   Compiling convert_case v0.4.0
   Compiling unicode-vo v0.1.0
   Compiling constant_time_eq v0.3.0
   Compiling httpdate v1.0.3
   Compiling speedy v0.8.6 (https://github.com/mikedilger/speedy?rev=b8b713a7006958616dd3ef3ba63217740b4b09c2#b8b713a7)
   Compiling derive_more v0.99.17
   Compiling hyper v0.14.28
   Compiling nip44 v0.1.0 (https://github.com/mikedilger/nip44?rev=e6ab1bc4480fd53aa854814bbacacf200c51af14#e6ab1bc4)
   Compiling usvg-text-layout v0.35.0
   Compiling usvg-parser v0.35.0
   Compiling accesskit_unix v0.6.2
   Compiling chacha20poly1305 v0.10.1
   Compiling scrypt v0.11.0
   Compiling image v0.24.9
   Compiling rustls-native-certs v0.7.0
   Compiling egui v0.26.0 (https://github.com/bu5hm4nn/egui?rev=f954e98816d4fb760de31eeec4afcd15ae39a687#f954e988)
   Compiling thread-priority v0.13.1
   Compiling brotli v3.4.0
   Compiling tokio-rustls v0.24.1
   Compiling rand_chacha v0.2.2
   Compiling bincode v1.3.3
   Compiling cbc v0.1.2
   Compiling aes v0.8.4
   Compiling http v1.0.0
   Compiling glutin-winit v0.4.2
   Compiling rustls-pemfile v1.0.4
   Compiling crossbeam-queue v0.3.11
   Compiling linkify v0.9.0
   Compiling heed-traits v0.20.0-alpha.8 (https://github.com/meilisearch/heed?rev=64fd6fec293c0dee94855b8267557ce03e7ce5d8#64fd6fec)
   Compiling home v0.5.9
   Compiling pico-args v0.5.0
   Compiling core-net v0.1.0
   Compiling option-ext v0.2.0
   Compiling libm v0.2.8
   Compiling paste v1.0.14
   Compiling utf-8 v0.7.6
   Compiling data-encoding v2.5.0
   Compiling xmlwriter v0.1.0
   Compiling regex-syntax v0.6.29
   Compiling tungstenite v0.21.0
   Compiling usvg v0.35.0
   Compiling dirs-sys v0.4.1
   Compiling webbrowser v0.8.12
   Compiling heed-types v0.20.0-alpha.8 (https://github.com/meilisearch/heed?rev=64fd6fec293c0dee94855b8267557ce03e7ce5d8#64fd6fec)
   Compiling synchronoise v1.0.1
   Compiling lightning-invoice v0.23.0
   Compiling rustls-native-certs v0.6.3
   Compiling regex-automata v0.1.10
   Compiling nostr-types v0.7.0-unstable (https://github.com/mikedilger/nostr-types?rev=9860cd7bd5828a3ea9a01dff98cbdb4b82e42648#9860cd7b)
   Compiling async-compression v0.4.6
   Compiling hashbrown v0.12.3
   Compiling rand v0.7.3
   Compiling hyper-rustls v0.24.2
   Compiling accesskit_winit v0.16.1
   Compiling tokio-rustls v0.25.0
   Compiling smithay-clipboard v0.7.1
   Compiling arboard v3.3.1
   Compiling serde_urlencoded v0.7.1
   Compiling tiny-skia v0.10.0
   Compiling gif v0.12.0
   Compiling futures-executor v0.3.30
   Compiling dashmap v5.5.3
   Compiling rgb v0.8.37
   Compiling rhai_codegen v2.0.0
   Compiling dirs-sys-next v0.1.2
   Compiling page_size v0.5.0
   Compiling encoding_rs v0.8.33
   Compiling overload v0.1.1
   Compiling num-conv v0.1.0
   Compiling web-time v0.2.4
   Compiling powerfmt v0.2.0
   Compiling glow v0.13.1
   Compiling thin-vec v0.2.13
   Compiling base64 v0.12.3
   Compiling time-core v0.1.2
   Compiling mime v0.3.17
   Compiling mutate_once v0.1.1
   Compiling gossip-lib v0.10.0-unstable (/home/j/.cargo/git/checkouts/gossip-99d7133f0c1dd926/fe45e99/gossip-lib)
   Compiling litrs v0.4.1
   Compiling sync_wrapper v0.1.2
   Compiling ipnet v2.9.0
   Compiling reqwest v0.11.24
   Compiling document-features v0.2.8
   Compiling egui_glow v0.26.0 (https://github.com/bu5hm4nn/egui?rev=f954e98816d4fb760de31eeec4afcd15ae39a687#f954e988)
   Compiling kamadak-exif v0.5.5
   Compiling memoize-inner v0.4.3
   Compiling time-macros v0.2.17
   Compiling rhai v1.17.1
   Compiling textnonce v1.0.0
   Compiling deranged v0.3.11
   Compiling egui-winit v0.26.0 (https://github.com/bu5hm4nn/egui?rev=f954e98816d4fb760de31eeec4afcd15ae39a687#f954e988)
   Compiling nu-ansi-term v0.46.0
   Compiling directories-next v2.0.0
   Compiling heed v0.20.0-alpha.8 (https://github.com/meilisearch/heed?rev=64fd6fec293c0dee94855b8267557ce03e7ce5d8#64fd6fec)
   Compiling resvg v0.35.0
   Compiling gossip-relay-picker v0.2.0-unstable (https://github.com/mikedilger/gossip-relay-picker?rev=57f7f7d78ae2983134fd19f9e168be62cc2bc001#57f7f7d7)
   Compiling futures v0.3.30
   Compiling tokio-tungstenite v0.21.0
   Compiling lru v0.7.8
   Compiling matchers v0.1.0
   Compiling dirs v5.0.1
   Compiling sharded-slab v0.1.7
   Compiling filetime v0.2.23
   Compiling rtoolbox v0.0.2
   Compiling tracing-log v0.2.0
   Compiling thread_local v1.1.8
   Compiling fallible-iterator v0.2.0
   Compiling checked_int_cast v1.0.0
   Compiling gossip v0.10.0-unstable (/home/j/.cargo/git/checkouts/gossip-99d7133f0c1dd926/fe45e99/gossip-bin)
   Compiling qrcode v0.12.0 (https://github.com/mikedilger/qrcode-rust?rev=519b77b3efa3f84961169b47d3de08c5ddd86548#519b77b3)
   Compiling time v0.3.34
   Compiling tracing-subscriber v0.3.18
   Compiling rpassword v7.3.1
   Compiling humansize v2.1.3
   Compiling eframe v0.26.0 (https://github.com/bu5hm4nn/egui?rev=f954e98816d4fb760de31eeec4afcd15ae39a687#f954e988)
   Compiling memoize v0.4.2
error[E0412]: cannot find type `Id` in module `task`
   --> gossip-lib/src/overlord/mod.rs:54:37
    |
54  |     minions_task_url: HashMap<task::Id, RelayUrl>,
    |                                     ^^ not found in `task`
    |
note: found an item that was configured out
   --> /home/j/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/task/mod.rs:361:40
    |
361 |         pub use crate::runtime::task::{Id, id, try_id};
    |                                        ^^
help: consider importing one of these items
    |
3   + use nostr_types::Id;
    |
3   + use tracing::Id;
    |
help: if you import `Id`, refer to it directly
    |
54  -     minions_task_url: HashMap<task::Id, RelayUrl>,
54  +     minions_task_url: HashMap<Id, RelayUrl>,
    |

error[E0412]: cannot find type `Id` in module `task`
   --> gossip-lib/src/overlord/mod.rs:401:47
    |
401 |         task_nextjoined: Option<Result<(task::Id, MinionResult), task::JoinError>>,
    |                                               ^^ not found in `task`
    |
note: found an item that was configured out
   --> /home/j/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.36.0/src/task/mod.rs:361:40
    |
361 |         pub use crate::runtime::task::{Id, id, try_id};
    |                                        ^^
help: consider importing one of these items
    |
3   + use nostr_types::Id;
    |
3   + use tracing::Id;
    |
help: if you import `Id`, refer to it directly
    |
401 -         task_nextjoined: Option<Result<(task::Id, MinionResult), task::JoinError>>,
401 +         task_nextjoined: Option<Result<(Id, MinionResult), task::JoinError>>,
    |

error[E0599]: no method named `join_next_with_id` found for struct `JoinSet` in the current scope
   --> gossip-lib/src/overlord/mod.rs:147:48
    |
147 |                 task_nextjoined = self.minions.join_next_with_id() => {
    |                                                ^^^^^^^^^^^^^^^^^ help: there is a method with a similar name: `join_next`

error[E0599]: no method named `id` found for struct `tokio::task::AbortHandle` in the current scope
   --> gossip-lib/src/overlord/mod.rs:350:35
    |
350 |             let id = abort_handle.id();
    |                                   ^^ method not found in `AbortHandle`

error[E0599]: no method named `join_next_with_id` found for struct `JoinSet` in the current scope
   --> gossip-lib/src/overlord/mod.rs:390:48
    |
390 |                 task_nextjoined = self.minions.join_next_with_id() => {
    |                                                ^^^^^^^^^^^^^^^^^ help: there is a method with a similar name: `join_next`

error[E0282]: type annotations needed
   --> gossip-lib/src/overlord/mod.rs:409:47
    |
409 |             Err(ref join_error) => join_error.id(),
    |                                               ^^ cannot infer type for type parameter `E` declared on the enum `Result`

Some errors have detailed explanations: E0282, E0412, E0599.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `gossip-lib` (lib) due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `gossip v0.10.0-unstable (https://github.com/mikedilger/gossip.git#fe45e990)`, intermediate artifacts can be found at `/tmp/cargo-install1XFDNv`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

whereas

git clone https://github.com/mikedilger/gossip
cd gossip
cargo build --release

does the job. Why so?

mikedilger commented 8 months ago

For some reason cargo install is not taking the .cargo/config file into account.

mikedilger commented 8 months ago

You could do this instead:

RUSTFLAGS="--cfg tokio_unstable" cargo install --git https://github.com/mikedilger/gossip.git