Skip to content

[feat] 2.0: Add plugin to lib.rs with tauri plugin add #7696

@lorenzolewis

Description

@lorenzolewis

Describe the problem

tauri plugin add updates package.json and Cargo.toml from what I understand, but there's one more friction point for non-Rust devs: adding the plugin initialiser to the builder in lib.rs. tauri plugin add should do this as part of it's logic

Describe the solution you'd like

Example flow for notification plugin:

  1. ✅ User runs tauri plugin add notification
  2. ✅ Add dependency to package.json and Cargo.toml (I believe this is already done today)
  3. 🆕 Add plugin initialiser to lib.rs on the Tauri app builder (not done today)
  4. ❓(optional) Prompt the user with "these are the changes to the files that are going to be made, ready to accept them?" or similar (check out the astro add CLI for how they do that)

Alternatives considered

No response

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions