tauri-apps / tauri-apps/plugins-workspace
[docs] Can't add nfc plugin as shown in readme
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
### Describe the bug
Tried to follow [https://docs.rs/crate/tauri-plugin-nfc/latest](url)
My lib.rs
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_nfc::init())
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
But this gives an error
.plugin(tauri_plugin_nfc::init())
| ^^^^ not found in `tauri_plugin_nfc
How do i solve this ?
I tried to import use tauri_plugin_nfc::init; but still same issue.
### Reproduction
_No response_
### Expected behavior
_No response_
### Full `tauri info` output
```text
[✔] Environment
- OS: Windows 10.0.22621 X64
✔ WebView2: 123.0.2420.65
✔ MSVC: Visual Studio Build Tools 2022
✔ rustc: 1.77.0 (aedd173a2 2024-03-17)
✔ cargo: 1.77.0 (3fe68eabf 2024-02-29)
✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
- node: 18.16.1
- pnpm: 8.15.4
- npm: 9.5.1
[-] Packages
- tauri [RUST]: 2.0.0-beta.13
- tauri-build [RUST]: 2.0.0-beta.10
- wry [RUST]: 0.37.0
- tao [RUST]: 0.26.1
- @tauri-apps/api [NPM]: 2.0.0-beta.5
- @tauri-apps/cli [NPM]: 2.0.0-beta.9
[-] App
- build-type: bundle
- CSP: unset
- frontendDist: ../dist
- devUrl: http://localhost:1420/
- framework: Vue.js
- bundler: Vite
```
### Stack trace
_No response_
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.