[GH-ISSUE #363] Can't build version 0.10.0, could not compile ashpd #192

Closed
opened 2026-05-05 22:13:21 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @GladOSkar on GitHub (Jan 18, 2026).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/363

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!

Originally created by @GladOSkar on GitHub (Jan 18, 2026). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/363 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!
Author
Owner

@feschber commented on GitHub (Feb 7, 2026):

Is this the exact build command, you ran?

<!-- gh-comment-id:3864355097 --> @feschber commented on GitHub (Feb 7, 2026): Is this the exact build command, you ran?
Author
Owner

@GladOSkar commented on GitHub (Feb 7, 2026):

Yes. A few days later it suddenly worked though, so not relevant anymore

<!-- gh-comment-id:3864361402 --> @GladOSkar commented on GitHub (Feb 7, 2026): Yes. A few days later it suddenly worked though, so not relevant anymore
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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: github-starred/lan-mouse#192
No description provided.