Skip to content

[bug] error[E0252]: webview_version defined multiple times when both wry and cef features active #15265

@bl4z3ng41n

Description

@bl4z3ng41n

Describe the bug

When building with features = ["cef"] on Linux, both tauri_runtime_wry and tauri_runtime_cef are compiled, causing a name conflict:

error[E0252]: the name webview_version is defined multiple times

 --> crates/tauri/src/lib.rs:232:9

Cause: Both re-exports compile simultaneously:

// line 228
pub use tauri_runtime_wry::webview_version;
// line 232  
pub use tauri_runtime_cef::webview_version;

Temporary Fix: Gate the wry export behind not(feature = "cef"):

line 226, change:

#[cfg(feature = "wry")]
//to:
#[cfg(all(feature = "wry", not(feature = "cef")))]

Environment: Linux (Arch), Tauri feat/cef branch @ 562bc59

Reproduction

No response

Expected behavior

No response

Full tauri info output

n/a

Stack trace


Additional context

No response

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