Skip to content

Cant test against "tauri" whitout optional feature "wry" #1841

@6543

Description

@6543

Describe the bug
since 27a7810 "wry" is no optional dependency anymore

so either make it required or remove this dependency

To Reproduce
Steps to reproduce the behavior:

  1. clone latest tauri-apps/tauri
  2. cd core/tauri
  3. apply diff:
diff --git a/core/tauri/Cargo.toml b/core/tauri/Cargo.toml
index bb89a38..c534afe 100644
--- a/core/tauri/Cargo.toml
+++ b/core/tauri/Cargo.toml
@@ -80,7 +80,7 @@ tokio-test = "0.4.1"
mockito = "0.30"

[features]
-default = [ "wry" ]
+default = []
dox = [ "tauri-runtime-wry/dox" ]
wry = [ "tauri-runtime-wry" ]
cli = [ "clap" ]
  1. exec cargo test

Expected behavior
tests should pass

Error

    Compiling tauri-macros v1.0.0-beta.1
error[E0412]: cannot find type `Wry` in the crate root
   --> /github/home/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-1.0.0-beta.1/src/manager.rs:110:83
    |
110 |   Args<String, String, String, String, crate::api::assets::EmbeddedAssets, crate::Wry>;
    |                                                                                   ^^^ not found in the crate root

error: aborting due to previous error

For more information about this error, try `rustc --explain E0412`.

Platform and Versions (please complete the following information):
OS: 5.12.2-artix1-1
Rustc: 1.52.1 (9bc8c42bb 2021-05-09)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions