-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Run prettier formatting (No visibile changes)
- Loading branch information
1 parent
b4c503c
commit 80fbcb5
Showing
16 changed files
with
1,437 additions
and
1,437 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,57 @@ | ||
name: Check MSRV | ||
|
||
on: | ||
push: | ||
branches: | ||
- v1 | ||
- v2 | ||
paths: | ||
- ".github/workflows/msrv-check.yml" | ||
- "plugins/*/src/**" | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
pull_request: | ||
branches: | ||
- v1 | ||
- v2 | ||
paths: | ||
- ".github/workflows/msrv-check.yml" | ||
- "plugins/*/src/**" | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
msrv: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: install webkit2gtk | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev | ||
- uses: dtolnay/rust-toolchain@1.67.0 | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: build | ||
run: cargo build --workspace --exclude 'tauri-plugin-sql' --all-targets --all-features | ||
|
||
- uses: dtolnay/rust-toolchain@1.80.1 | ||
|
||
- name: build sql:sqlite | ||
run: cargo build --package 'tauri-plugin-sql' --all-targets --features sqlite | ||
|
||
- name: build sql:mysql | ||
run: cargo build --package 'tauri-plugin-sql' --all-targets --features mysql | ||
|
||
- name: build sql:postgres | ||
run: cargo build --package 'tauri-plugin-sql' --all-targets --features postgres | ||
name: Check MSRV | ||
|
||
on: | ||
push: | ||
branches: | ||
- v1 | ||
- v2 | ||
paths: | ||
- ".github/workflows/msrv-check.yml" | ||
- "plugins/*/src/**" | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
pull_request: | ||
branches: | ||
- v1 | ||
- v2 | ||
paths: | ||
- ".github/workflows/msrv-check.yml" | ||
- "plugins/*/src/**" | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
msrv: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: install webkit2gtk | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev | ||
- uses: dtolnay/rust-toolchain@1.67.0 | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: build | ||
run: cargo build --workspace --exclude 'tauri-plugin-sql' --all-targets --all-features | ||
|
||
- uses: dtolnay/rust-toolchain@1.80.1 | ||
|
||
- name: build sql:sqlite | ||
run: cargo build --package 'tauri-plugin-sql' --all-targets --features sqlite | ||
|
||
- name: build sql:mysql | ||
run: cargo build --package 'tauri-plugin-sql' --all-targets --features mysql | ||
|
||
- name: build sql:postgres | ||
run: cargo build --package 'tauri-plugin-sql' --all-targets --features postgres |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,36 @@ | ||
## Plugins Found Here | ||
|
||
| | | Win | Mac | Lin | iOS | And | | ||
| ------------------------------------------ | --------------------------------------------------------- | --- | --- | --- | --- | --- | | ||
| [autostart](plugins/autostart) | Automatically launch your app at system startup. | ✅ | ✅ | ✅ | ? | ? | | ||
| [fs-extra](plugins/fs-extra) | File system methods that aren't included in the core API. | ✅ | ✅ | ✅ | ? | ? | | ||
| [fs-watch](plugins/fs-watch) | Watch the filesystem for changes. | ✅ | ✅ | ✅ | ? | ? | | ||
| [localhost](plugins/localhost) | Use a localhost server in production apps. | ✅ | ✅ | ✅ | ? | ? | | ||
| [log](plugins/log) | Configurable logging. | ✅ | ✅ | ✅ | ✅ | ✅ | | ||
| [persisted-scope](plugins/persisted-scope) | Persist runtime scope changes on the filesystem. | ✅ | ✅ | ✅ | ? | ? | | ||
| [positioner](plugins/positioner) | Move windows to common locations. | ✅ | ✅ | ✅ | ? | ? | | ||
| [single-instance](plugins/single-instance) | Ensure a single instance of your tauri app is running. | ✅ | ? | ✅ | ? | ? | | ||
| [sql](plugins/sql) | Interface with SQL databases. | ✅ | ✅ | ✅ | ? | ? | | ||
| [store](plugins/store) | Persistent key value storage. | ✅ | ✅ | ✅ | ? | ? | | ||
| [stronghold](plugins/stronghold) | Encrypted, secure database. | ✅ | ✅ | ✅ | ? | ? | | ||
| [upload](plugins/upload) | Tauri plugin for file uploads through HTTP. | ✅ | ✅ | ✅ | ? | ? | | ||
| [websocket](plugins/websocket) | Open a WebSocket connection using a Rust client in JS. | ✅ | ✅ | ✅ | ? | ? | | ||
| [window-state](plugins/window-state) | Persist window sizes and positions. | ✅ | ✅ | ✅ | ? | ? | | ||
|
||
_This repo and all plugins require a Rust version of at least **1.67**_ | ||
|
||
## Partners | ||
|
||
<table> | ||
<tbody> | ||
<tr> | ||
<td align="center" valign="middle"> | ||
<a href="https://crabnebula.dev" target="_blank"> | ||
<img src=".github/sponsors/crabnebula.svg" alt="CrabNebula" width="283"> | ||
</a> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
For the complete list of sponsors please visit our [website](https://tauri.app#sponsors) and [Open Collective](https://opencollective.com/tauri). | ||
## Plugins Found Here | ||
|
||
| | | Win | Mac | Lin | iOS | And | | ||
| ------------------------------------------ | --------------------------------------------------------- | --- | --- | --- | --- | --- | | ||
| [autostart](plugins/autostart) | Automatically launch your app at system startup. | ✅ | ✅ | ✅ | ? | ? | | ||
| [fs-extra](plugins/fs-extra) | File system methods that aren't included in the core API. | ✅ | ✅ | ✅ | ? | ? | | ||
| [fs-watch](plugins/fs-watch) | Watch the filesystem for changes. | ✅ | ✅ | ✅ | ? | ? | | ||
| [localhost](plugins/localhost) | Use a localhost server in production apps. | ✅ | ✅ | ✅ | ? | ? | | ||
| [log](plugins/log) | Configurable logging. | ✅ | ✅ | ✅ | ✅ | ✅ | | ||
| [persisted-scope](plugins/persisted-scope) | Persist runtime scope changes on the filesystem. | ✅ | ✅ | ✅ | ? | ? | | ||
| [positioner](plugins/positioner) | Move windows to common locations. | ✅ | ✅ | ✅ | ? | ? | | ||
| [single-instance](plugins/single-instance) | Ensure a single instance of your tauri app is running. | ✅ | ? | ✅ | ? | ? | | ||
| [sql](plugins/sql) | Interface with SQL databases. | ✅ | ✅ | ✅ | ? | ? | | ||
| [store](plugins/store) | Persistent key value storage. | ✅ | ✅ | ✅ | ? | ? | | ||
| [stronghold](plugins/stronghold) | Encrypted, secure database. | ✅ | ✅ | ✅ | ? | ? | | ||
| [upload](plugins/upload) | Tauri plugin for file uploads through HTTP. | ✅ | ✅ | ✅ | ? | ? | | ||
| [websocket](plugins/websocket) | Open a WebSocket connection using a Rust client in JS. | ✅ | ✅ | ✅ | ? | ? | | ||
| [window-state](plugins/window-state) | Persist window sizes and positions. | ✅ | ✅ | ✅ | ? | ? | | ||
|
||
_This repo and all plugins require a Rust version of at least **1.67**_ | ||
|
||
## Partners | ||
|
||
<table> | ||
<tbody> | ||
<tr> | ||
<td align="center" valign="middle"> | ||
<a href="https://crabnebula.dev" target="_blank"> | ||
<img src=".github/sponsors/crabnebula.svg" alt="CrabNebula" width="283"> | ||
</a> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
For the complete list of sponsors please visit our [website](https://tauri.app#sponsors) and [Open Collective](https://opencollective.com/tauri). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,89 @@ | ||
![plugin-autostart](https://github.com/tauri-apps/plugins-workspace/raw/v1/plugins/autostart/banner.png) | ||
|
||
Automatically launch your application at startup. Supports Windows, Mac (via AppleScript or Launch Agent), and Linux. | ||
|
||
## Install | ||
|
||
_This plugin requires a Rust version of at least **1.67**_ | ||
|
||
There are three general methods of installation that we can recommend. | ||
|
||
1. Use crates.io and npm (easiest, and requires you to trust that our publishing pipeline worked) | ||
2. Pull sources directly from Github using git tags / revision hashes (most secure) | ||
3. Git submodule install this repo in your tauri project and then use file protocol to ingest the source (most secure, but inconvenient to use) | ||
|
||
Install the Core plugin by adding the following to your `Cargo.toml` file: | ||
|
||
`src-tauri/Cargo.toml` | ||
|
||
```toml | ||
[dependencies] | ||
tauri-plugin-autostart = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" } | ||
``` | ||
|
||
You can install the JavaScript Guest bindings using your preferred JavaScript package manager: | ||
|
||
> Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. | ||
```sh | ||
pnpm add https://github.com/tauri-apps/tauri-plugin-autostart#v1 | ||
# or | ||
npm add https://github.com/tauri-apps/tauri-plugin-autostart#v1 | ||
# or | ||
yarn add https://github.com/tauri-apps/tauri-plugin-autostart#v1 | ||
``` | ||
|
||
## Usage | ||
|
||
First you need to register the core plugin with Tauri: | ||
|
||
`src-tauri/src/main.rs` | ||
|
||
```rust | ||
use tauri_plugin_autostart::MacosLauncher; | ||
|
||
fn main() { | ||
tauri::Builder::default() | ||
.plugin(tauri_plugin_autostart::init(MacosLauncher::LaunchAgent, Some(vec!["--flag1", "--flag2"]) /* arbitrary number of args to pass to your app */)) | ||
.run(tauri::generate_context!()) | ||
.expect("error while running tauri application"); | ||
} | ||
``` | ||
|
||
Afterwards all the plugin's APIs are available through the JavaScript guest bindings: | ||
|
||
```javascript | ||
import { enable, isEnabled, disable } from "tauri-plugin-autostart-api"; | ||
|
||
await enable(); | ||
|
||
console.log(`registered for autostart? ${await isEnabled()}`); | ||
|
||
disable(); | ||
``` | ||
|
||
## Contributing | ||
|
||
PRs accepted. Please make sure to read the Contributing Guide before making a pull request. | ||
|
||
## Partners | ||
|
||
<table> | ||
<tbody> | ||
<tr> | ||
<td align="center" valign="middle"> | ||
<a href="https://crabnebula.dev" target="_blank"> | ||
<img src="https://github.com/tauri-apps/plugins-workspace/raw/v1/.github/sponsors/crabnebula.svg" alt="CrabNebula" width="283"> | ||
</a> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
For the complete list of sponsors please visit our [website](https://tauri.app#sponsors) and [Open Collective](https://opencollective.com/tauri). | ||
|
||
## License | ||
|
||
Code: (c) 2015 - Present - The Tauri Programme within The Commons Conservancy. | ||
|
||
MIT or MIT/Apache 2.0 where applicable. | ||
![plugin-autostart](https://github.com/tauri-apps/plugins-workspace/raw/v1/plugins/autostart/banner.png) | ||
|
||
Automatically launch your application at startup. Supports Windows, Mac (via AppleScript or Launch Agent), and Linux. | ||
|
||
## Install | ||
|
||
_This plugin requires a Rust version of at least **1.67**_ | ||
|
||
There are three general methods of installation that we can recommend. | ||
|
||
1. Use crates.io and npm (easiest, and requires you to trust that our publishing pipeline worked) | ||
2. Pull sources directly from Github using git tags / revision hashes (most secure) | ||
3. Git submodule install this repo in your tauri project and then use file protocol to ingest the source (most secure, but inconvenient to use) | ||
|
||
Install the Core plugin by adding the following to your `Cargo.toml` file: | ||
|
||
`src-tauri/Cargo.toml` | ||
|
||
```toml | ||
[dependencies] | ||
tauri-plugin-autostart = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" } | ||
``` | ||
|
||
You can install the JavaScript Guest bindings using your preferred JavaScript package manager: | ||
|
||
> Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use. | ||
```sh | ||
pnpm add https://github.com/tauri-apps/tauri-plugin-autostart#v1 | ||
# or | ||
npm add https://github.com/tauri-apps/tauri-plugin-autostart#v1 | ||
# or | ||
yarn add https://github.com/tauri-apps/tauri-plugin-autostart#v1 | ||
``` | ||
|
||
## Usage | ||
|
||
First you need to register the core plugin with Tauri: | ||
|
||
`src-tauri/src/main.rs` | ||
|
||
```rust | ||
use tauri_plugin_autostart::MacosLauncher; | ||
|
||
fn main() { | ||
tauri::Builder::default() | ||
.plugin(tauri_plugin_autostart::init(MacosLauncher::LaunchAgent, Some(vec!["--flag1", "--flag2"]) /* arbitrary number of args to pass to your app */)) | ||
.run(tauri::generate_context!()) | ||
.expect("error while running tauri application"); | ||
} | ||
``` | ||
|
||
Afterwards all the plugin's APIs are available through the JavaScript guest bindings: | ||
|
||
```javascript | ||
import { enable, isEnabled, disable } from "tauri-plugin-autostart-api"; | ||
|
||
await enable(); | ||
|
||
console.log(`registered for autostart? ${await isEnabled()}`); | ||
|
||
disable(); | ||
``` | ||
|
||
## Contributing | ||
|
||
PRs accepted. Please make sure to read the Contributing Guide before making a pull request. | ||
|
||
## Partners | ||
|
||
<table> | ||
<tbody> | ||
<tr> | ||
<td align="center" valign="middle"> | ||
<a href="https://crabnebula.dev" target="_blank"> | ||
<img src="https://github.com/tauri-apps/plugins-workspace/raw/v1/.github/sponsors/crabnebula.svg" alt="CrabNebula" width="283"> | ||
</a> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
For the complete list of sponsors please visit our [website](https://tauri.app#sponsors) and [Open Collective](https://opencollective.com/tauri). | ||
|
||
## License | ||
|
||
Code: (c) 2015 - Present - The Tauri Programme within The Commons Conservancy. | ||
|
||
MIT or MIT/Apache 2.0 where applicable. |
Oops, something went wrong.