Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error[E0433]: failed to resolve: use of undeclared crate or module trussed_staging #12

Open
Idriel opened this issue Jan 1, 2025 · 0 comments

Comments

@Idriel
Copy link

Idriel commented Jan 1, 2025

Hi,
Trying to test Virtual Card but getting following error while doing make ci

error[E0433]: failed to resolve: use of undeclared crate or module `trussed_staging`
  --> src/virt.rs:17:9
   |
17 |     use trussed_staging::{streaming::ChunkedExtension, StagingBackend, StagingContext};
   |         ^^^^^^^^^^^^^^^ use of undeclared crate or module `trussed_staging`

error[E0432]: unresolved import `trussed_staging`
  --> src/virt.rs:17:9
   |
17 |     use trussed_staging::{streaming::ChunkedExtension, StagingBackend, StagingContext};
   |         ^^^^^^^^^^^^^^^ use of undeclared crate or module `trussed_staging`

error[E0599]: the method `respond` exists for struct `Authenticator<ClientImplementation<Service<Platform<Ram>, Dispatch>, Dispatch>>`, but its trait bounds were not satisfied
   --> src/vpicc.rs:40:64
    |
40  | ...                   .handle(&command, |c, b| self.card.respond(c, b))
    |                                                          ^^^^^^^ method cannot be called due to unsatisfied trait bounds
    |
   ::: src/virt.rs:65:5
    |
65  |     pub struct Dispatch {
    |     ------------------- doesn't satisfy `_: ExtensionId<ChunkedExtension>`
    |
   ::: /app/.cache/cargo/git/checkouts/trussed-34d232ec9a779a47/686aa70/src/client.rs:145:1
    |
145 | pub struct ClientImplementation<S, D = CoreOnly> {
    | ------------------------------------------------ doesn't satisfy `_: Client`
    |
   ::: src/lib.rs:90:1
    |
90  | pub struct Authenticator<T> {
    | --------------------------- method `respond` not found for this struct
    |
    = note: the following trait bounds were not satisfied:
            `{type error}: Sized`
            which is required by `ClientImplementation<Service<trussed::virt::Platform<Ram>, virt::dispatch::Dispatch>, virt::dispatch::Dispatch>: Client`
            `virt::dispatch::Dispatch: ExtensionId<ChunkedExtension>`
            which is required by `ClientImplementation<Service<trussed::virt::Platform<Ram>, virt::dispatch::Dispatch>, virt::dispatch::Dispatch>: Client`
note: the trait `ExtensionId` must be implemented
   --> /app/.cache/cargo/git/checkouts/trussed-34d232ec9a779a47/686aa70/src/serde_extensions.rs:135:1
    |
135 | pub trait ExtensionId<E> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0599]: the method `deselect` exists for struct `Authenticator<ClientImplementation<Service<Platform<Ram>, Dispatch>, Dispatch>>`, but its trait bounds were not satisfied
   --> src/vpicc.rs:52:19
    |
52  |         self.card.deselect();
    |                   ^^^^^^^^ method cannot be called due to unsatisfied trait bounds
    |
   ::: src/virt.rs:65:5
    |
65  |     pub struct Dispatch {
    |     ------------------- doesn't satisfy `_: ExtensionId<ChunkedExtension>`
    |
   ::: /app/.cache/cargo/git/checkouts/trussed-34d232ec9a779a47/686aa70/src/client.rs:145:1
    |
145 | pub struct ClientImplementation<S, D = CoreOnly> {
    | ------------------------------------------------ doesn't satisfy `_: Client`
    |
   ::: src/lib.rs:90:1
    |
90  | pub struct Authenticator<T> {
    | --------------------------- method `deselect` not found for this struct
    |
    = note: the following trait bounds were not satisfied:
            `{type error}: Sized`
            which is required by `ClientImplementation<Service<trussed::virt::Platform<Ram>, virt::dispatch::Dispatch>, virt::dispatch::Dispatch>: Client`
            `virt::dispatch::Dispatch: ExtensionId<ChunkedExtension>`
            which is required by `ClientImplementation<Service<trussed::virt::Platform<Ram>, virt::dispatch::Dispatch>, virt::dispatch::Dispatch>: Client`
note: the trait `ExtensionId` must be implemented
   --> /app/.cache/cargo/git/checkouts/trussed-34d232ec9a779a47/686aa70/src/serde_extensions.rs:135:1
    |
135 | pub trait ExtensionId<E> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following trait defines an item `deselect`, perhaps you need to implement it:
            candidate #1: `apdu_dispatch::App`

error[E0599]: the method `deselect` exists for struct `Authenticator<ClientImplementation<Service<Platform<Ram>, Dispatch>, Dispatch>>`, but its trait bounds were not satisfied
   --> src/vpicc.rs:56:19
    |
56  |         self.card.deselect();
    |                   ^^^^^^^^ method cannot be called due to unsatisfied trait bounds
    |
   ::: src/virt.rs:65:5
    |
65  |     pub struct Dispatch {
    |     ------------------- doesn't satisfy `_: ExtensionId<ChunkedExtension>`
    |
   ::: /app/.cache/cargo/git/checkouts/trussed-34d232ec9a779a47/686aa70/src/client.rs:145:1
    |
145 | pub struct ClientImplementation<S, D = CoreOnly> {
    | ------------------------------------------------ doesn't satisfy `_: Client`
    |
   ::: src/lib.rs:90:1
    |
90  | pub struct Authenticator<T> {
    | --------------------------- method `deselect` not found for this struct
    |
    = note: the following trait bounds were not satisfied:
            `{type error}: Sized`
            which is required by `ClientImplementation<Service<trussed::virt::Platform<Ram>, virt::dispatch::Dispatch>, virt::dispatch::Dispatch>: Client`
            `virt::dispatch::Dispatch: ExtensionId<ChunkedExtension>`
            which is required by `ClientImplementation<Service<trussed::virt::Platform<Ram>, virt::dispatch::Dispatch>, virt::dispatch::Dispatch>: Client`
note: the trait `ExtensionId` must be implemented
   --> /app/.cache/cargo/git/checkouts/trussed-34d232ec9a779a47/686aa70/src/serde_extensions.rs:135:1
    |
135 | pub trait ExtensionId<E> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following trait defines an item `deselect`, perhaps you need to implement it:
            candidate #1: `apdu_dispatch::App`

Some errors have detailed explanations: E0432, E0433, E0599.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `piv-authenticator` (lib) due to 5 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `piv-authenticator` (lib test) due to 5 previous errors
make: *** [Makefile:21: lint] Error 101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant