# rust_ocr_pdf **Repository Path**: DengLibin/rust_ocr_pdf ## Basic Information - **Project Name**: rust_ocr_pdf - **Description**: rust_ocr_pdf - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-08 - **Last Updated**: 2026-02-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 1.环境 ``` cargo install create-tauri-app --locked cargo install tauri-cli --version "^2.0.0" --locked ``` ### 2.依赖 ```bash npm install ``` ### 3.运行 ```bash 新建app cargo create-tauri-app 运行 npm run tauri dev cargo tauri dev ``` ### 4.打包 ```bash 将tarui.zip内的文件夹解压到 用户目录\AppData\Local\tauri 下 npm run tauri build cargo tarui build cargo tauri build --target x86_64-pc-windows-gnu ``` ### 5.tauri2 启用功能 https://v2.tauri.app/security/capabilities/ 配置文件在: src-tauri\capabilities\default.json ### 6.打包 tauri.conf.json配置 ``` "bundle": { "active": true, "targets": "all", "windows": { "webviewInstallMode": { "type": "offlineInstaller" # webview离线包 } }, ``` win7适配 webview离线包下载: https://github.com/westinyang/WebView2RuntimeArchive/releases?page=3 # 使用nightly版本可以自建标准库 #rustup toolchain install nightly-i686-pc-windows-msvc # 用64位编译器(32位容易内存移除) rustup toolchain install nightly-x86_64-pc-windows-msvc rustup toolchain install nightly-i686-pc-windows-msvc # 切换 #rustup default nightly-i686-pc-windows-msvc rustup default nightly-x86_64-pc-windows-msvc rustup default nightly-i686-pc-windows-msvc # 添加源码 rustup component add rust-src cargo tauri build --no-bundle -- --target i686-win7-windows-msvc -Zbuild-std