#tauri v1 to v2 migration help regarding plugins

3 messages · Page 1 of 1 (latest)

ashen heart
#

ive been trying to migrate from v1 to v2, and the structure i used for my plugins was
tauri-src/src
├── lib.rs
├── main.rs
└── plugins
├── basic
│ ├── lib.rs
│ └── mod.rs
└── mod.rs

in the main lib file i add the plugin
.plugin(plugins::basic::lib::init())

however, now when trying to invoke it from JS with invoke('plugin:basic|hello_world');
it returns an error in the JS console Unhandled Promise Rejection: basic.hello_world not allowed. Plugin did not define its manifest
ive been trying to find something in the v2 docs but i couldn't find anyting, everything for plugins was just unnecessarily big for me(making it with npm run tauri plugin new...) where as in v1 this would just work

lavish minnow