dsp-stuff icon indicating copy to clipboard operation
dsp-stuff copied to clipboard

Project status?

Open RAVENz46 opened this issue 1 year ago • 4 comments

Thanks for your awesome project! I wanna try it on nixos however, I cannot build it due to old (maybe?). If you have free time, I hope update it, thanks.

my nix derivation
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, libxkbcommon
, vulkan-loader
, alsa-lib
, wayland
, libGL
, pipewire
, jack2
}:

rustPlatform.buildRustPackage rec {
  pname = "dsp-stuff";
  version = "unstable-2023-03-19";

  src = fetchFromGitHub {
    owner = "simmsb";
    repo = "dsp-stuff";
    rev = "59a10a1aae2b7e7d9660754be5221cff668e9424";
    hash = "sha256-hFnavIYI9LXvq2n59Zg+5tgL5eVVfyhC/mdbDHP0vbA=";
  };

  cargoLock = {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "dsp-stuff-gpl-0.1.0" = "sha256-nkeEtDWfTbkNRxbyL0qZVz33KFqt9pf0Et38Bmcf0Is=";
      "egui_nodes-0.1.4" = "sha256-dH7pkqx+9xpMIr3uS5HKKPAcUp5w6WS6GpmFa1LmKS8=";
      "enum_dispatch-0.3.8" = "sha256-kNpQavRX7FE2kpIY3Zq4EHEJWKQmnikcqo+hqqoA+JY=";
      "pitch-detection-0.3.0" = "sha256-KnWeI2tnimWfJJaswJgs4sY7xgXoTLQJtBAk70621hs=";
      "rivulet-0.1.0" = "sha256-bdGCv0b5pj3QnMqjSo1A6xsWGeTGZcwE6yb8thwlOwA=";
    };
  };

  env.PIPEWIRE_LATENCY= "128/48000";

  nativeBuildInputs = [
    pkg-config
    rustPlatform.bindgenHook
  ];

  buildInputs = [
    libxkbcommon
    vulkan-loader
    libGL
    alsa-lib
    pipewire
    jack2
    wayland
  ];

  postFixup = ''
    patchelf $out/bin/${pname} \
      --add-rpath ${lib.makeLibraryPath [ libGL libxkbcommon wayland ]}
  '';

  meta = {
    description = "Some gui audio effects thing";
    homepage = "https://github.com/simmsb/dsp-stuff";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ];
    mainProgram = "dsp-stuff";
  };
}

Error I got on nix build

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> dsp-stuff/src/main.rs:2:1
  |
2 | #![feature(async_fn_in_trait)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the attribute
  |
  = help: the feature `async_fn_in_trait` has been stable since `1.75.0` and no longer requires an attribute to enable

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> dsp-stuff/src/main.rs:3:1
  |
3 | #![feature(iter_array_chunks)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

warning: the feature `async_fn_in_trait` has been stable since 1.75.0 and no longer requires an attribute to enable
 --> dsp-stuff/src/main.rs:2:12
  |
2 | #![feature(async_fn_in_trait)]
  |            ^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(stable_features)]` on by default

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> dsp-stuff/src/main.rs:3:12
  |
3 | #![feature(iter_array_chunks)]
  |            ^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
warning: `dsp-stuff` (bin "dsp-stuff") generated 1 warning
error: could not compile `dsp-stuff` (bin "dsp-stuff") due to 3 previous errors; 1 warning emitted
error: builder for '/nix/store/z5viymgppvkj088yscbw35d4f7i1s2n6-dsp-stuff-unstable-2023-03-19.drv' failed with exit code 101;
       last 10 log lines:
       >
       > error[E0554]: `#![feature]` may not be used on the stable release channel
       >  --> dsp-stuff/src/main.rs:3:12
       >   |
       > 3 | #![feature(iter_array_chunks)]
       >   |            ^^^^^^^^^^^^^^^^^
       >
       > For more information about this error, try `rustc --explain E0554`.
       > warning: `dsp-stuff` (bin "dsp-stuff") generated 1 warning
       > error: could not compile `dsp-stuff` (bin "dsp-stuff") due to 3 previous errors; 1 warning emitted

RAVENz46 avatar Aug 21 '24 03:08 RAVENz46

Hey, I had some local changes that brought the project up to date with cargo 1.81.0-nightly (154fdac39 2024-07-07) and also bumped dependencies, I've pushed those now

simmsb avatar Aug 21 '24 10:08 simmsb

Thanks for updating! Let you know that I got another error, but there is possible that this is nix-related issue (sorry about that). I have to try rust-nightly later.

error log
error: The platform you're compiling for is not supported by winit
  --> /build/cargo-vendor-dir/winit-0.29.15/src/platform_impl/mod.rs:67:1
   |
67 | compile_error!("The platform you're compiling for is not supported by winit");
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved import `self::platform`
  --> /build/cargo-vendor-dir/winit-0.29.15/src/platform_impl/mod.rs:26:15
   |
26 | pub use self::platform::*;
   |               ^^^^^^^^ could not find `platform` in `self`

error[E0432]: unresolved import `crate::platform_impl::PlatformIcon`
 --> /build/cargo-vendor-dir/winit-0.29.15/src/icon.rs:1:5
  |
1 | use crate::platform_impl::PlatformIcon;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `PlatformIcon` in `platform_impl`

error[E0433]: failed to resolve: could not find `DeviceId` in `platform_impl`
   --> /build/cargo-vendor-dir/winit-0.29.15/src/event.rs:616:42
    |
616 |         DeviceId(unsafe { platform_impl::DeviceId::dummy() })
    |                                          ^^^^^^^^ could not find `DeviceId` in `platform_impl`

error[E0433]: failed to resolve: could not find `WindowId` in `platform_impl`
  --> /build/cargo-vendor-dir/winit-0.29.15/src/window.rs:99:42
   |
99 |         WindowId(unsafe { platform_impl::WindowId::dummy() })
   |                                          ^^^^^^^^ could not find `WindowId` in `platform_impl`

error[E0433]: failed to resolve: could not find `Window` in `platform_impl`
   --> /build/cargo-vendor-dir/winit-0.29.15/src/window.rs:513:28
    |
513 |             platform_impl::Window::new(&window_target.p, self.window, self.platform_specific)?;
    |                            ^^^^^^ could not find `Window` in `platform_impl`

error[E0412]: cannot find type `OsError` in module `platform_impl`
  --> /build/cargo-vendor-dir/winit-0.29.15/src/error.rs:28:27
   |
28 |     error: platform_impl::OsError,
   |                           ^^^^^^^ not found in `platform_impl`
   |
help: there is an enum variant `crate::window::BadIcon::OsError`; try using the variant's enum
   |
28 |     error: crate::window::BadIcon,
   |            ~~~~~~~~~~~~~~~~~~~~~~

error[E0412]: cannot find type `OsError` in module `platform_impl`
  --> /build/cargo-vendor-dir/winit-0.29.15/src/error.rs:62:76
   |
62 |     pub(crate) fn new(line: u32, file: &'static str, error: platform_impl::OsError) -> OsError {
   |                                                                            ^^^^^^^ not found in `platform_impl`
   |
help: there is an enum variant `crate::window::BadIcon::OsError`; try using the variant's enum
   |
62 |     pub(crate) fn new(line: u32, file: &'static str, error: crate::window::BadIcon) -> OsError {
   |                                                             ~~~~~~~~~~~~~~~~~~~~~~

error[E0412]: cannot find type `DeviceId` in module `platform_impl`
   --> /build/cargo-vendor-dir/winit-0.29.15/src/event.rs:602:47
    |
602 | pub struct DeviceId(pub(crate) platform_impl::DeviceId);
    |                                               ^^^^^^^^ not found in `platform_impl`

error[E0412]: cannot find type `KeyEventExtra` in module `platform_impl`
   --> /build/cargo-vendor-dir/winit-0.29.15/src/event.rs:787:50
    |
787 |     pub(crate) platform_specific: platform_impl::KeyEventExtra,
    |                                                  ^^^^^^^^^^^^^ not found in `platform_impl`

error[E0412]: cannot find type `EventLoop` in module `platform_impl`
  --> /build/cargo-vendor-dir/winit-0.29.15/src/event_loop.rs:41:43
   |
41 |     pub(crate) event_loop: platform_impl::EventLoop<T>,
   |                                           ^^^^^^^^^ not found in `platform_impl`
   |
help: consider importing this struct
   |
10 + use calloop::EventLoop;
   |
help: if you import `EventLoop`, refer to it directly
   |
41 -     pub(crate) event_loop: platform_impl::EventLoop<T>,
41 +     pub(crate) event_loop: EventLoop<T>,
   |

error[E0412]: cannot find type `EventLoopWindowTarget` in module `platform_impl`
  --> /build/cargo-vendor-dir/winit-0.29.15/src/event_loop.rs:52:34
   |
52 |     pub(crate) p: platform_impl::EventLoopWindowTarget<T>,
   |                                  ^^^^^^^^^^^^^^^^^^^^^ not found in `platform_impl`

error[E0412]: cannot find type `PlatformSpecificEventLoopAttributes` in module `platform_impl`
  --> /build/cargo-vendor-dir/winit-0.29.15/src/event_loop.rs:62:50
   |
62 |     pub(crate) platform_specific: platform_impl::PlatformSpecificEventLoopAttributes,
   |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `platform_impl`

error[E0433]: failed to resolve: could not find `EventLoop` in `platform_impl`
   --> /build/cargo-vendor-dir/winit-0.29.15/src/event_loop.rs:128:40
    |
128 |             event_loop: platform_impl::EventLoop::new(&mut self.platform_specific)?,
    |                                        ^^^^^^^^^ could not find `EventLoop` in `platform_impl`
    |
help: consider importing this struct
    |
10  + use calloop::EventLoop;
    |
help: if you import `EventLoop`, refer to it directly
    |
128 -             event_loop: platform_impl::EventLoop::new(&mut self.platform_specific)?,
128 +             event_loop: EventLoop::new(&mut self.platform_specific)?,
    |

error[E0412]: cannot find type `EventLoopProxy` in module `platform_impl`
   --> /build/cargo-vendor-dir/winit-0.29.15/src/event_loop.rs:394:38
    |
394 |     event_loop_proxy: platform_impl::EventLoopProxy<T>,
    |                                      ^^^^^^^^^^^^^^ not found in `platform_impl`

error[E0412]: cannot find type `VideoMode` in module `platform_impl`
  --> /build/cargo-vendor-dir/winit-0.29.15/src/monitor.rs:18:43
   |
18 |     pub(crate) video_mode: platform_impl::VideoMode,
   |                                           ^^^^^^^^^ not found in `platform_impl`

error[E0412]: cannot find type `MonitorHandle` in module `platform_impl`
   --> /build/cargo-vendor-dir/winit-0.29.15/src/monitor.rs:104:38
    |
104 |     pub(crate) inner: platform_impl::MonitorHandle,
    |                                      ^^^^^^^^^^^^^ not found in `platform_impl`

error[E0412]: cannot find type `VideoMode` in this scope
  --> /build/cargo-vendor-dir/winit-0.29.15/src/platform_impl/mod.rs:31:15
   |
31 |     Exclusive(VideoMode),
   |               ^^^^^^^^^ not found in this scope
   |
help: consider importing this struct
   |
1  + use crate::monitor::VideoMode;
   |

error[E0412]: cannot find type `MonitorHandle` in this scope
   --> /build/cargo-vendor-dir/winit-0.29.15/src/platform_impl/mod.rs:32:23
    |
32  |     Borderless(Option<MonitorHandle>),
    |                       ^^^^^^^^^^^^^
    |
   ::: /build/cargo-vendor-dir/winit-0.29.15/src/monitor.rs:103:1
    |
103 | pub struct MonitorHandle {
    | ------------------------ similarly named struct `RootMonitorHandle` defined here
    |
help: a struct with a similar name exists
    |
32  |     Borderless(Option<RootMonitorHandle>),
    |                       ~~~~~~~~~~~~~~~~~
help: consider importing this struct
    |
1   + use crate::monitor::MonitorHandle;
    |

error[E0412]: cannot find type `Window` in module `platform_impl`
  --> /build/cargo-vendor-dir/winit-0.29.15/src/window.rs:55:39
   |
55 |     pub(crate) window: platform_impl::Window,
   |                                       ^^^^^^ not found in `platform_impl`

error[E0412]: cannot find type `WindowId` in module `platform_impl`
  --> /build/cargo-vendor-dir/winit-0.29.15/src/window.rs:85:47
   |
85 | pub struct WindowId(pub(crate) platform_impl::WindowId);
   |                                               ^^^^^^^^ not found in `platform_impl`

error[E0412]: cannot find type `PlatformSpecificWindowBuilderAttributes` in module `platform_impl`
   --> /build/cargo-vendor-dir/winit-0.29.15/src/window.rs:123:50
    |
123 |     pub(crate) platform_specific: platform_impl::PlatformSpecificWindowBuilderAttributes,
    |                                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `platform_impl`

   Compiling x11rb v0.13.1
   Compiling jack v0.11.4
   Compiling unicode-segmentation v1.11.0
error[E0369]: binary operation `==` cannot be applied to type `std::option::Option<MonitorHandle>`
    --> /build/cargo-vendor-dir/winit-0.29.15/src/window.rs:1641:16
     |
1636 | #[derive(Clone, Debug, PartialEq, Eq)]
     |                        --------- in this derive macro expansion
...
1641 |     Borderless(Option<MonitorHandle>),
     |                ^^^^^^^^^^^^^^^^^^^^^
     |
     = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)

   Compiling radium v0.7.0
Some errors have detailed explanations: E0369, E0412, E0432, E0433.
For more information about an error, try `rustc --explain E0369`.
error: could not compile `winit` (lib) due to 23 previous errors
warning: build failed, waiting for other jobs to finish...
error: builder for '/nix/store/38y1na9x1n6s5p6jp6651ljpylv10lvx-dsp-stuff-unstable-2024-08-21.drv' failed with exit code 101;
       last 10 log lines:
       > 1641 |     Borderless(Option<MonitorHandle>),
       >      |                ^^^^^^^^^^^^^^^^^^^^^
       >      |
       >      = note: this error originates in the derive macro `PartialEq` (in Nightly builds, run with -Z macro-backtrace for more info)
       >
       >    Compiling radium v0.7.0
       > Some errors have detailed explanations: E0369, E0412, E0432, E0433.
       > For more information about an error, try `rustc --explain E0369`.
       > error: could not compile `winit` (lib) due to 23 previous errors
       > warning: build failed, waiting for other jobs to finish...

RAVENz46 avatar Aug 21 '24 11:08 RAVENz46

Looks like I had wayland/x11 disabled on eframe due to default-features = false (which is needed to have eframe use wgpu and not glow)

simmsb avatar Aug 21 '24 12:08 simmsb

Looks better! async-io seems missing?

error: Either "async-io" (default) or "tokio" must be enabled.
  --> /build/cargo-vendor-dir/zbus-4.4.0/src/lib.rs:37:5
   |
37 |     compile_error!("Either \"async-io\" (default) or \"tokio\" must be enabled.");
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0432]: unresolved import `async_lock`
 --> /build/cargo-vendor-dir/zbus-4.4.0/src/abstractions/async_lock.rs:2:16
  |
2 | pub(crate) use async_lock::{Mutex, RwLock, RwLockReadGuard, RwLockWriteGuard};
  |                ^^^^^^^^^^ help: a similar path exists: `crate::async_lock`
  |
  = note: `use` statements changed in Rust 2018; read more at <https://doc.rust-lang.org/edition-guide/rust-2018/module-system/path-clarity.html>

error[E0432]: unresolved import `async_io`
 --> /build/cargo-vendor-dir/zbus-4.4.0/src/address/transport/mod.rs:9:5
  |
9 | use async_io::Async;
  |     ^^^^^^^^ use of undeclared crate or module `async_io`

error[E0432]: unresolved import `async_io`
 --> /build/cargo-vendor-dir/zbus-4.4.0/src/address/transport/tcp.rs:4:5
  |
4 | use async_io::Async;
  |     ^^^^^^^^ use of undeclared crate or module `async_io`

error[E0432]: unresolved import `async_io`
 --> /build/cargo-vendor-dir/zbus-4.4.0/src/connection/builder.rs:2:5
  |
2 | use async_io::Async;
  |     ^^^^^^^^ use of undeclared crate or module `async_io`

error[E0432]: unresolved import `async_io`
 --> /build/cargo-vendor-dir/zbus-4.4.0/src/connection/socket/tcp.rs:2:5
  |
2 | use async_io::Async;
  |     ^^^^^^^^ use of undeclared crate or module `async_io`

error[E0432]: unresolved import `async_io`
 --> /build/cargo-vendor-dir/zbus-4.4.0/src/connection/socket/unix.rs:2:5
  |
2 | use async_io::Async;
  |     ^^^^^^^^ use of undeclared crate or module `async_io`

error[E0432]: unresolved import `async_io`
  --> /build/cargo-vendor-dir/zbus-4.4.0/src/connection/socket/mod.rs:14:5
   |
14 | use async_io::Async;
   |     ^^^^^^^^ use of undeclared crate or module `async_io`

error[E0432]: unresolved import `async_executor`
 --> /build/cargo-vendor-dir/zbus-4.4.0/src/abstractions/executor.rs:2:5
  |
2 | use async_executor::Executor as AsyncExecutor;
  |     ^^^^^^^^^^^^^^ use of undeclared crate or module `async_executor`

error[E0432]: unresolved import `async_task`
 --> /build/cargo-vendor-dir/zbus-4.4.0/src/abstractions/executor.rs:4:5
  |
4 | use async_task::Task as AsyncTask;
  |     ^^^^^^^^^^ use of undeclared crate or module `async_task`
  |
help: there is a crate or module with a similar name
  |
4 | use async_trait::Task as AsyncTask;
  |     ~~~~~~~~~~~

error[E0433]: failed to resolve: use of undeclared crate or module `async_lock`
  --> /build/cargo-vendor-dir/zbus-4.4.0/src/abstractions/async_lock.rs:15:25
   |
15 |         let semaphore = async_lock::Semaphore::new(permits);
   |                         ^^^^^^^^^^ use of undeclared crate or module `async_lock`

error[E0433]: failed to resolve: use of undeclared crate or module `async_fs`
  --> /build/cargo-vendor-dir/zbus-4.4.0/src/abstractions/file.rs:27:13
   |
27 |             async_fs::File::open(path)
   |             ^^^^^^^^ use of undeclared crate or module `async_fs`
   |
help: consider importing this struct
   |
5  + use std::fs::File;
   |
help: if you import `File`, refer to it directly
   |
27 -             async_fs::File::open(path)
27 +             File::open(path)
   |

   Compiling wayland-protocols-wlr v0.3.3
error[E0282]: type annotations needed
    --> /build/cargo-vendor-dir/zbus-4.4.0/src/connection/mod.rs:1047:49
     |
1047 |                         .add_match_rule(e.key().inner().clone())
     |                                                 ^^^^^ cannot infer type for type parameter `K` declared on the enum `Entry`

error[E0282]: type annotations needed for `&mut (_, _)`
    --> /build/cargo-vendor-dir/zbus-4.4.0/src/connection/mod.rs:1060:21
     |
1060 |                 let (num_subscriptions, receiver) = e.get_mut();
     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
1063 |                     if max_queued > receiver.capacity() {
     |                                              -------- type must be known at this point
     |
help: consider giving this pattern a type, where the placeholders `_` are specified
     |
1060 |                 let (num_subscriptions, receiver): &mut (_, _) = e.get_mut();
     |                                                  +++++++++++++

error[E0282]: type annotations needed
    --> /build/cargo-vendor-dir/zbus-4.4.0/src/connection/mod.rs:1082:36
     |
1082 |                 let rule = e.key().inner().clone();
     |                                    ^^^^^ cannot infer type for type parameter `K` declared on the enum `Entry`

error[E0599]: the method `next` exists for struct `Enumerate<FileLines>`, but its trait bounds were not satisfied
  --> /build/cargo-vendor-dir/zbus-4.4.0/src/connection/handshake/cookies.rs:54:43
   |
54 |           while let Some((n, line)) = lines.next().await {
   |                                             ^^^^ method cannot be called on `Enumerate<FileLines>` due to unsatisfied trait bounds
   |
  ::: /build/cargo-vendor-dir/futures-util-0.3.30/src/stream/stream/enumerate.rs:9:1
   |
9  | / pin_project! {
10 | |     /// Stream for the [`enumerate`](super::StreamExt::enumerate) method.
11 | |     #[derive(Debug)]
12 | |     #[must_use = "streams do nothing unless polled"]
...  |
17 | |     }
18 | | }
   | |_- doesn't satisfy `_: StreamExt` or `_: Stream`
   |
   = note: the following trait bounds were not satisfied:
           `futures_util::stream::Enumerate<FileLines>: futures_core::Stream`
           which is required by `futures_util::stream::Enumerate<FileLines>: StreamExt`

error[E0433]: failed to resolve: use of undeclared crate or module `async_fs`
  --> /build/cargo-vendor-dir/zbus-4.4.0/src/abstractions/file.rs:73:9
   |
73 |         async_fs::metadata(path).await
   |         ^^^^^^^^ use of undeclared crate or module `async_fs`

error[E0599]: the method `get_or_init` exists for struct `OnceLock<ObjectServer>`, but its trait bounds were not satisfied
   --> /build/cargo-vendor-dir/zbus-4.4.0/src/connection/mod.rs:917:14
    |
915 | /         self.inner
916 | |             .object_server
917 | |             .get_or_init(move || self.setup_object_server(start, started_event))
    | |             -^^^^^^^^^^^ method cannot be called on `OnceLock<ObjectServer>` due to unsatisfied trait bounds
    | |_____________|
    |
    |
   ::: /build/cargo-vendor-dir/zbus-4.4.0/src/blocking/object_server.rs:126:1
    |
126 |   pub struct ObjectServer {
    |   ----------------------- doesn't satisfy `blocking::object_server::ObjectServer: Sized`
    |
    = note: the following trait bounds were not satisfied:
            `{type error}: Sized`
            which is required by `blocking::object_server::ObjectServer: Sized`

error[E0599]: the method `get_or_init` exists for struct `OnceLock<Task<()>>`, but its trait bounds were not satisfied
   --> /build/cargo-vendor-dir/zbus-4.4.0/src/connection/mod.rs:934:48
    |
934 |         self.inner.object_server_dispatch_task.get_or_init(|| {
    |         ---------------------------------------^^^^^^^^^^^ method cannot be called on `OnceLock<Task<()>>` due to unsatisfied trait bounds
    |
   ::: /build/cargo-vendor-dir/zbus-4.4.0/src/abstractions/executor.rs:137:1
    |
137 | pub struct Task<T>(Option<AsyncTask<T>>);
    | ------------------ doesn't satisfy `executor::Task<()>: Sized`
    |
    = note: the following trait bounds were not satisfied:
            `{type error}: Sized`
            which is required by `executor::Task<()>: Sized`

error[E0599]: the method `set` exists for struct `OnceLock<Task<()>>`, but its trait bounds were not satisfied
    --> /build/cargo-vendor-dir/zbus-4.4.0/src/connection/mod.rs:1234:14
     |
1232 | /         inner
1233 | |             .socket_reader_task
1234 | |             .set(
     | |             -^^^ method cannot be called on `OnceLock<Task<()>>` due to unsatisfied trait bounds
     | |_____________|
     |
     |
    ::: /build/cargo-vendor-dir/zbus-4.4.0/src/abstractions/executor.rs:137:1
     |
137  |   pub struct Task<T>(Option<AsyncTask<T>>);
     |   ------------------ doesn't satisfy `executor::Task<()>: Sized`
     |
     = note: the following trait bounds were not satisfied:
             `{type error}: Sized`
             which is required by `executor::Task<()>: Sized`
     = help: items from traits can only be used if the trait is implemented and in scope
note: `Interface` defines an item `set`, perhaps you need to implement it
    --> /build/cargo-vendor-dir/zbus-4.4.0/src/object_server/interface.rs:69:1
     |
69   | pub trait Interface: Any + Send + Sync {
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0433]: failed to resolve: use of undeclared crate or module `blocking`
   --> /build/cargo-vendor-dir/zbus-4.4.0/src/abstractions/executor.rs:172:23
    |
172 |             Self(Some(blocking::unblock(f)))
    |                       ^^^^^^^^ use of undeclared crate or module `blocking`

error[E0599]: the method `get_or_init` exists for reference `&OnceLock<(Arc<PropertiesCache>, Task<()>)>`, but its trait bounds were not satisfied
   --> /build/cargo-vendor-dir/zbus-4.4.0/src/proxy/mod.rs:694:33
    |
694 |         let (cache, _) = &cache.get_or_init(|| {
    |                           ------^^^^^^^^^^^ method cannot be called on `&OnceLock<(Arc<PropertiesCache>, Task<()>)>` due to unsatisfied trait bounds
    |
    = note: the following trait bounds were not satisfied:
            `{type error}: Sized`
            which is required by `(Arc<PropertiesCache>, executor::Task<()>): Sized`

error[E0433]: failed to resolve: use of undeclared crate or module `async_io`
  --> /build/cargo-vendor-dir/zbus-4.4.0/src/utils.rs:34:5
   |
34 |     async_io::block_on(future)
   |     ^^^^^^^^ use of undeclared crate or module `async_io`

error[E0433]: failed to resolve: use of undeclared crate or module `async_fs`
  --> /build/cargo-vendor-dir/zbus-4.4.0/src/abstractions/file.rs:18:74
   |
18 | pub struct FileLines(futures_util::io::Lines<futures_util::io::BufReader<async_fs::File>>);
   |                                                                          ^^^^^^^^ use of undeclared crate or module `async_fs`

error[E0433]: failed to resolve: use of undeclared crate or module `async_lock`
 --> /build/cargo-vendor-dir/zbus-4.4.0/src/abstractions/async_lock.rs:8:29
  |
8 | pub(crate) struct Semaphore(async_lock::Semaphore);
  |                             ^^^^^^^^^^ use of undeclared crate or module `async_lock`

error[E0433]: failed to resolve: use of undeclared crate or module `async_lock`
  --> /build/cargo-vendor-dir/zbus-4.4.0/src/abstractions/async_lock.rs:36:39
   |
36 | pub(crate) type SemaphorePermit<'a> = async_lock::SemaphoreGuard<'a>;
   |                                       ^^^^^^^^^^ use of undeclared crate or module `async_lock`

Some errors have detailed explanations: E0282, E0432, E0433, E0599.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `zbus` (lib) due to 26 previous errors
warning: build failed, waiting for other jobs to finish...
error: builder for '/nix/store/0s90f4v76r78n8azix3rk6ynfmkj1anx-dsp-stuff-unstable-2024-08-21.drv' failed with exit code 101;
       last 10 log lines:
       > error[E0433]: failed to resolve: use of undeclared crate or module `async_lock`
       >   --> /build/cargo-vendor-dir/zbus-4.4.0/src/abstractions/async_lock.rs:36:39
       >    |
       > 36 | pub(crate) type SemaphorePermit<'a> = async_lock::SemaphoreGuard<'a>;
       >    |                                       ^^^^^^^^^^ use of undeclared crate or module `async_lock`
       >
       > Some errors have detailed explanations: E0282, E0432, E0433, E0599.
       > For more information about an error, try `rustc --explain E0282`.
       > error: could not compile `zbus` (lib) due to 26 previous errors
       > warning: build failed, waiting for other jobs to finish...

RAVENz46 avatar Aug 22 '24 02:08 RAVENz46