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

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

Closed
6543 opened this issue May 16, 2021 · 1 comment
Closed

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

6543 opened this issue May 16, 2021 · 1 comment

Comments

@6543
Copy link

6543 commented May 16, 2021

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)

@crapStone
Copy link
Contributor

nice, thanks

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

No branches or pull requests

2 participants