{"id":15639413,"url":"https://github.com/jonaskruckenberg/tauri-sys","last_synced_at":"2025-03-29T12:04:11.677Z","repository":{"id":62655315,"uuid":"560446206","full_name":"JonasKruckenberg/tauri-sys","owner":"JonasKruckenberg","description":"Bindings to the Tauri API for projects using wasm-bindgen","archived":false,"fork":false,"pushed_at":"2025-03-04T04:02:52.000Z","size":1992,"stargazers_count":105,"open_issues_count":19,"forks_count":26,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-22T11:04:46.642Z","etag":null,"topics":["rust","tauri","wasm","wasm-bindgen","webassembly"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JonasKruckenberg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE_APACHE-2.0","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"JonasKruckenberg"}},"created_at":"2022-11-01T14:19:04.000Z","updated_at":"2025-03-11T14:54:54.000Z","dependencies_parsed_at":"2024-01-13T01:00:21.243Z","dependency_job_id":"62592c63-1afe-4354-8523-7cba0574c6e1","html_url":"https://github.com/JonasKruckenberg/tauri-sys","commit_stats":{"total_commits":116,"total_committers":6,"mean_commits":"19.333333333333332","dds":"0.23275862068965514","last_synced_commit":"bad602fb5b0c5441e808785cdd3edc451246324a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasKruckenberg%2Ftauri-sys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasKruckenberg%2Ftauri-sys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasKruckenberg%2Ftauri-sys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasKruckenberg%2Ftauri-sys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonasKruckenberg","download_url":"https://codeload.github.com/JonasKruckenberg/tauri-sys/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246180902,"owners_count":20736460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust","tauri","wasm","wasm-bindgen","webassembly"],"created_at":"2024-10-03T11:25:45.933Z","updated_at":"2025-03-29T12:04:11.633Z","avatar_url":"https://github.com/JonasKruckenberg.png","language":"Rust","funding_links":["https://github.com/sponsors/JonasKruckenberg"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e\n    \u003ccode\u003etauri-sys\u003c/code\u003e\n  \u003c/h1\u003e\n  \u003cp\u003e\n    \u003cstrong\u003eRaw bindings to the \u003ca href=\"https://tauri.app/v1/api/js/\"\u003e\u003ccode\u003eTauri API\u003c/code\u003e\u003c/a\u003e\n      for projects using \u003ca href=\"https://github.com/rustwasm/wasm-bindgen\"\u003e\u003ccode\u003ewasm-bindgen\u003c/code\u003e\u003c/a\u003e\u003c/strong\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n[![Documentation master][docs-badge]][docs-url]\n[![MIT licensed][mit-badge]][mit-url]\n\n[docs-badge]: https://img.shields.io/badge/docs-main-blue\n[docs-url]: https://jonaskruckenberg.github.io/tauri-sys/tauri_sys\n[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg\n[mit-url]: LICENSE\n\n## Installation\n\nThis crate is not yet published to crates.io, so you need to use it from git. You also need a global installation of [`esbuild`].\n\n```toml\ntauri-sys = { git = \"https://github.com/JonasKruckenberg/tauri-sys\" } // Tauri v1\n// OR\ntauri-sys = { git = \"https://github.com/JonasKruckenberg/tauri-sys\", branch = \"v2\" } // Tauri v2\n```\n\n## Usage\n\n```rust\nuse serde::{Deserialize, Serialize};\nuse tauri_sys::tauri;\n\n#[derive(Serialize, Deserialize)]\nstruct GreetArgs\u003c'a\u003e {\n    name: \u0026'a str,\n}\n\nfn main() {\n    wasm_bindgen_futures::spawn_local(async move {\n        let new_msg: String = tauri::invoke(\"greet\", \u0026GreetArgs { name: \u0026name.get() }).await.unwrap();\n\n        println!(\"{}\", new_msg);\n    });\n}\n```\n\n## Features\n\nAll modules are gated by accordingly named Cargo features. It is recommended you keep this synced with the features enabled in your [Tauri Allowlist] but no automated tool for this exists (yet).\n\n- **all**: Enables all modules.\n- **app**: Enables the `app` module.\n- **clipboard**: Enables the `clipboard` module.\n- **dialog**: Enables the `dialog` module.\n- **event**: Enables the `event` module.\n- **fs**: Enables the `fs` module.\n- **mocks**: Enables the `mocks` module.\n- **tauri**: Enables the `tauri` module.\n\n## Are we Tauri yet?\n\nThese API bindings are not completely on-par with `@tauri-apps/api` yet, but here is the current status-quo:\n\n- [x] `app`\n- [ ] `cli`\n- [x] `clipboard`\n- [x] `dialog`\n- [x] `event`\n- [x] `fs`\n- [x] `global_shortcut`\n- [ ] `http`\n- [x] `mocks`\n- [x] `notification`\n- [x] `os`\n- [x] `path`\n- [x] `process`\n- [ ] `shell`\n- [x] `tauri`\n- [ ] `updater`\n- [x] `window`\n\nThe current API also very closely mirrors the JS API even though that might not be the most ergonomic choice, ideas for improving the API with quality-of-life features beyond the regular JS API interface are very welcome.\n\n[wasm-bindgen]: https://github.com/rustwasm/wasm-bindgen\n[tauri allowlist]: https://tauri.app/v1/api/config#allowlistconfig\n[`esbuild`]: https://esbuild.github.io/getting-started/#install-esbuild\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaskruckenberg%2Ftauri-sys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonaskruckenberg%2Ftauri-sys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonaskruckenberg%2Ftauri-sys/lists"}