Skip to content

Can't build version 0.10.0, could not compile ashpd #363

@GladOSkar

Description

@GladOSkar

I pulled the release, installed deps and ran cargo install lan-mouse.

I get this error:

error[E0277]: the trait bound `AppID: Basic` is not satisfied
   --> /home/oskar/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ashpd-0.10.3/src/documents/mod.rs:391:16
    |
391 |         self.0.call("Info", &(doc_id.into())).await
    |                ^^^^ unsatisfied trait bound
    |
help: the trait `Basic` is not implemented for `AppID`
   --> /home/oskar/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ashpd-0.10.3/src/app_id.rs:10:1
    |
 10 | pub struct AppID(String);
    | ^^^^^^^^^^^^^^^^
    = help: the following other types implement trait `Basic`:
              &B
              BusName<'_>
              ErrorName<'_>
              InterfaceName<'_>
              MemberName<'_>
              NonZero<i16>
              NonZero<i32>
              NonZero<i64>
            and 35 others
    = note: required for `HashMap<AppID, Vec<Permission>>` to implement `zbus::zvariant::Type`
    = note: 1 redundant requirement hidden
    = note: required for `(file_path::FilePath, HashMap<AppID, Vec<Permission>>)` to implement `zbus::zvariant::Type`
note: required by a bound in `proxy::Proxy::<'a>::call`
   --> /home/oskar/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ashpd-0.10.3/src/proxy.rs:171:40
    |
165 |     pub(crate) async fn call<R>(
    |                         ---- required by a bound in this associated function
...
171 |         R: for<'de> Deserialize<'de> + Type,
    |                                        ^^^^ required by this bound in `Proxy::<'a>::call`

error[E0277]: the trait bound `DocumentID: Basic` is not satisfied
   --> /home/oskar/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ashpd-0.10.3/src/documents/mod.rs:500:16
    |
500 |         self.0.call_versioned("GetHostPaths", &(doc_ids,), 5).await
    |                ^^^^^^^^^^^^^^ unsatisfied trait bound
    |
help: the trait `Basic` is not implemented for `DocumentID`
   --> /home/oskar/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ashpd-0.10.3/src/app_id.rs:98:1
    |
 98 | pub struct DocumentID(String);
    | ^^^^^^^^^^^^^^^^^^^^^
    = help: the following other types implement trait `Basic`:
              &B
              BusName<'_>
              ErrorName<'_>
              InterfaceName<'_>
              MemberName<'_>
              NonZero<i16>
              NonZero<i32>
              NonZero<i64>
            and 35 others
    = note: required for `HashMap<DocumentID, file_path::FilePath>` to implement `zbus::zvariant::Type`
note: required by a bound in `proxy::Proxy::<'a>::call_versioned`
   --> /home/oskar/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/ashpd-0.10.3/src/proxy.rs:194:40
    |
187 |     pub(crate) async fn call_versioned<R>(
    |                         -------------- required by a bound in this associated function
...
194 |         R: for<'de> Deserialize<'de> + Type,
    |                                        ^^^^ required by this bound in `Proxy::<'a>::call_versioned`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `ashpd` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `lan-mouse v0.10.0`, intermediate artifacts can be found at `/tmp/cargo-installzcB5p8`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

I'm not very familiar with rust and would appreciate any help. thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions