Skip to content

Commit 80fbcb5

Browse files
committed
chore: Run prettier formatting (No visibile changes)
1 parent b4c503c commit 80fbcb5

File tree

16 files changed

+1437
-1437
lines changed

16 files changed

+1437
-1437
lines changed

.github/workflows/msrv-check.yml

Lines changed: 57 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
1-
name: Check MSRV
2-
3-
on:
4-
push:
5-
branches:
6-
- v1
7-
- v2
8-
paths:
9-
- ".github/workflows/msrv-check.yml"
10-
- "plugins/*/src/**"
11-
- "**/Cargo.toml"
12-
- "**/Cargo.lock"
13-
pull_request:
14-
branches:
15-
- v1
16-
- v2
17-
paths:
18-
- ".github/workflows/msrv-check.yml"
19-
- "plugins/*/src/**"
20-
- "**/Cargo.toml"
21-
- "**/Cargo.lock"
22-
23-
concurrency:
24-
group: ${{ github.workflow }}-${{ github.ref }}
25-
cancel-in-progress: true
26-
27-
jobs:
28-
msrv:
29-
runs-on: ubuntu-latest
30-
strategy:
31-
fail-fast: false
32-
33-
steps:
34-
- uses: actions/checkout@v3
35-
36-
- name: install webkit2gtk
37-
run: |
38-
sudo apt-get update
39-
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev
40-
41-
- uses: dtolnay/[email protected]
42-
43-
- uses: Swatinem/rust-cache@v2
44-
45-
- name: build
46-
run: cargo build --workspace --exclude 'tauri-plugin-sql' --all-targets --all-features
47-
48-
- uses: dtolnay/[email protected]
49-
50-
- name: build sql:sqlite
51-
run: cargo build --package 'tauri-plugin-sql' --all-targets --features sqlite
52-
53-
- name: build sql:mysql
54-
run: cargo build --package 'tauri-plugin-sql' --all-targets --features mysql
55-
56-
- name: build sql:postgres
57-
run: cargo build --package 'tauri-plugin-sql' --all-targets --features postgres
1+
name: Check MSRV
2+
3+
on:
4+
push:
5+
branches:
6+
- v1
7+
- v2
8+
paths:
9+
- ".github/workflows/msrv-check.yml"
10+
- "plugins/*/src/**"
11+
- "**/Cargo.toml"
12+
- "**/Cargo.lock"
13+
pull_request:
14+
branches:
15+
- v1
16+
- v2
17+
paths:
18+
- ".github/workflows/msrv-check.yml"
19+
- "plugins/*/src/**"
20+
- "**/Cargo.toml"
21+
- "**/Cargo.lock"
22+
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.ref }}
25+
cancel-in-progress: true
26+
27+
jobs:
28+
msrv:
29+
runs-on: ubuntu-latest
30+
strategy:
31+
fail-fast: false
32+
33+
steps:
34+
- uses: actions/checkout@v3
35+
36+
- name: install webkit2gtk
37+
run: |
38+
sudo apt-get update
39+
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev
40+
41+
- uses: dtolnay/[email protected]
42+
43+
- uses: Swatinem/rust-cache@v2
44+
45+
- name: build
46+
run: cargo build --workspace --exclude 'tauri-plugin-sql' --all-targets --all-features
47+
48+
- uses: dtolnay/[email protected]
49+
50+
- name: build sql:sqlite
51+
run: cargo build --package 'tauri-plugin-sql' --all-targets --features sqlite
52+
53+
- name: build sql:mysql
54+
run: cargo build --package 'tauri-plugin-sql' --all-targets --features mysql
55+
56+
- name: build sql:postgres
57+
run: cargo build --package 'tauri-plugin-sql' --all-targets --features postgres

README.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
## Plugins Found Here
2-
3-
| | | Win | Mac | Lin | iOS | And |
4-
| ------------------------------------------ | --------------------------------------------------------- | --- | --- | --- | --- | --- |
5-
| [autostart](plugins/autostart) | Automatically launch your app at system startup. |||| ? | ? |
6-
| [fs-extra](plugins/fs-extra) | File system methods that aren't included in the core API. |||| ? | ? |
7-
| [fs-watch](plugins/fs-watch) | Watch the filesystem for changes. |||| ? | ? |
8-
| [localhost](plugins/localhost) | Use a localhost server in production apps. |||| ? | ? |
9-
| [log](plugins/log) | Configurable logging. ||||||
10-
| [persisted-scope](plugins/persisted-scope) | Persist runtime scope changes on the filesystem. |||| ? | ? |
11-
| [positioner](plugins/positioner) | Move windows to common locations. |||| ? | ? |
12-
| [single-instance](plugins/single-instance) | Ensure a single instance of your tauri app is running. || ? || ? | ? |
13-
| [sql](plugins/sql) | Interface with SQL databases. |||| ? | ? |
14-
| [store](plugins/store) | Persistent key value storage. |||| ? | ? |
15-
| [stronghold](plugins/stronghold) | Encrypted, secure database. |||| ? | ? |
16-
| [upload](plugins/upload) | Tauri plugin for file uploads through HTTP. |||| ? | ? |
17-
| [websocket](plugins/websocket) | Open a WebSocket connection using a Rust client in JS. |||| ? | ? |
18-
| [window-state](plugins/window-state) | Persist window sizes and positions. |||| ? | ? |
19-
20-
_This repo and all plugins require a Rust version of at least **1.67**_
21-
22-
## Partners
23-
24-
<table>
25-
<tbody>
26-
<tr>
27-
<td align="center" valign="middle">
28-
<a href="https://crabnebula.dev" target="_blank">
29-
<img src=".github/sponsors/crabnebula.svg" alt="CrabNebula" width="283">
30-
</a>
31-
</td>
32-
</tr>
33-
</tbody>
34-
</table>
35-
36-
For the complete list of sponsors please visit our [website](https://tauri.app#sponsors) and [Open Collective](https://opencollective.com/tauri).
1+
## Plugins Found Here
2+
3+
| | | Win | Mac | Lin | iOS | And |
4+
| ------------------------------------------ | --------------------------------------------------------- | --- | --- | --- | --- | --- |
5+
| [autostart](plugins/autostart) | Automatically launch your app at system startup. |||| ? | ? |
6+
| [fs-extra](plugins/fs-extra) | File system methods that aren't included in the core API. |||| ? | ? |
7+
| [fs-watch](plugins/fs-watch) | Watch the filesystem for changes. |||| ? | ? |
8+
| [localhost](plugins/localhost) | Use a localhost server in production apps. |||| ? | ? |
9+
| [log](plugins/log) | Configurable logging. ||||||
10+
| [persisted-scope](plugins/persisted-scope) | Persist runtime scope changes on the filesystem. |||| ? | ? |
11+
| [positioner](plugins/positioner) | Move windows to common locations. |||| ? | ? |
12+
| [single-instance](plugins/single-instance) | Ensure a single instance of your tauri app is running. || ? || ? | ? |
13+
| [sql](plugins/sql) | Interface with SQL databases. |||| ? | ? |
14+
| [store](plugins/store) | Persistent key value storage. |||| ? | ? |
15+
| [stronghold](plugins/stronghold) | Encrypted, secure database. |||| ? | ? |
16+
| [upload](plugins/upload) | Tauri plugin for file uploads through HTTP. |||| ? | ? |
17+
| [websocket](plugins/websocket) | Open a WebSocket connection using a Rust client in JS. |||| ? | ? |
18+
| [window-state](plugins/window-state) | Persist window sizes and positions. |||| ? | ? |
19+
20+
_This repo and all plugins require a Rust version of at least **1.67**_
21+
22+
## Partners
23+
24+
<table>
25+
<tbody>
26+
<tr>
27+
<td align="center" valign="middle">
28+
<a href="https://crabnebula.dev" target="_blank">
29+
<img src=".github/sponsors/crabnebula.svg" alt="CrabNebula" width="283">
30+
</a>
31+
</td>
32+
</tr>
33+
</tbody>
34+
</table>
35+
36+
For the complete list of sponsors please visit our [website](https://tauri.app#sponsors) and [Open Collective](https://opencollective.com/tauri).

plugins/autostart/README.md

Lines changed: 89 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,89 @@
1-
![plugin-autostart](https://github.com/tauri-apps/plugins-workspace/raw/v1/plugins/autostart/banner.png)
2-
3-
Automatically launch your application at startup. Supports Windows, Mac (via AppleScript or Launch Agent), and Linux.
4-
5-
## Install
6-
7-
_This plugin requires a Rust version of at least **1.67**_
8-
9-
There are three general methods of installation that we can recommend.
10-
11-
1. Use crates.io and npm (easiest, and requires you to trust that our publishing pipeline worked)
12-
2. Pull sources directly from Github using git tags / revision hashes (most secure)
13-
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)
14-
15-
Install the Core plugin by adding the following to your `Cargo.toml` file:
16-
17-
`src-tauri/Cargo.toml`
18-
19-
```toml
20-
[dependencies]
21-
tauri-plugin-autostart = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
22-
```
23-
24-
You can install the JavaScript Guest bindings using your preferred JavaScript package manager:
25-
26-
> 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.
27-
28-
```sh
29-
pnpm add https://github.com/tauri-apps/tauri-plugin-autostart#v1
30-
# or
31-
npm add https://github.com/tauri-apps/tauri-plugin-autostart#v1
32-
# or
33-
yarn add https://github.com/tauri-apps/tauri-plugin-autostart#v1
34-
```
35-
36-
## Usage
37-
38-
First you need to register the core plugin with Tauri:
39-
40-
`src-tauri/src/main.rs`
41-
42-
```rust
43-
use tauri_plugin_autostart::MacosLauncher;
44-
45-
fn main() {
46-
tauri::Builder::default()
47-
.plugin(tauri_plugin_autostart::init(MacosLauncher::LaunchAgent, Some(vec!["--flag1", "--flag2"]) /* arbitrary number of args to pass to your app */))
48-
.run(tauri::generate_context!())
49-
.expect("error while running tauri application");
50-
}
51-
```
52-
53-
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
54-
55-
```javascript
56-
import { enable, isEnabled, disable } from "tauri-plugin-autostart-api";
57-
58-
await enable();
59-
60-
console.log(`registered for autostart? ${await isEnabled()}`);
61-
62-
disable();
63-
```
64-
65-
## Contributing
66-
67-
PRs accepted. Please make sure to read the Contributing Guide before making a pull request.
68-
69-
## Partners
70-
71-
<table>
72-
<tbody>
73-
<tr>
74-
<td align="center" valign="middle">
75-
<a href="https://crabnebula.dev" target="_blank">
76-
<img src="https://github.com/tauri-apps/plugins-workspace/raw/v1/.github/sponsors/crabnebula.svg" alt="CrabNebula" width="283">
77-
</a>
78-
</td>
79-
</tr>
80-
</tbody>
81-
</table>
82-
83-
For the complete list of sponsors please visit our [website](https://tauri.app#sponsors) and [Open Collective](https://opencollective.com/tauri).
84-
85-
## License
86-
87-
Code: (c) 2015 - Present - The Tauri Programme within The Commons Conservancy.
88-
89-
MIT or MIT/Apache 2.0 where applicable.
1+
![plugin-autostart](https://github.com/tauri-apps/plugins-workspace/raw/v1/plugins/autostart/banner.png)
2+
3+
Automatically launch your application at startup. Supports Windows, Mac (via AppleScript or Launch Agent), and Linux.
4+
5+
## Install
6+
7+
_This plugin requires a Rust version of at least **1.67**_
8+
9+
There are three general methods of installation that we can recommend.
10+
11+
1. Use crates.io and npm (easiest, and requires you to trust that our publishing pipeline worked)
12+
2. Pull sources directly from Github using git tags / revision hashes (most secure)
13+
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)
14+
15+
Install the Core plugin by adding the following to your `Cargo.toml` file:
16+
17+
`src-tauri/Cargo.toml`
18+
19+
```toml
20+
[dependencies]
21+
tauri-plugin-autostart = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
22+
```
23+
24+
You can install the JavaScript Guest bindings using your preferred JavaScript package manager:
25+
26+
> 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.
27+
28+
```sh
29+
pnpm add https://github.com/tauri-apps/tauri-plugin-autostart#v1
30+
# or
31+
npm add https://github.com/tauri-apps/tauri-plugin-autostart#v1
32+
# or
33+
yarn add https://github.com/tauri-apps/tauri-plugin-autostart#v1
34+
```
35+
36+
## Usage
37+
38+
First you need to register the core plugin with Tauri:
39+
40+
`src-tauri/src/main.rs`
41+
42+
```rust
43+
use tauri_plugin_autostart::MacosLauncher;
44+
45+
fn main() {
46+
tauri::Builder::default()
47+
.plugin(tauri_plugin_autostart::init(MacosLauncher::LaunchAgent, Some(vec!["--flag1", "--flag2"]) /* arbitrary number of args to pass to your app */))
48+
.run(tauri::generate_context!())
49+
.expect("error while running tauri application");
50+
}
51+
```
52+
53+
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
54+
55+
```javascript
56+
import { enable, isEnabled, disable } from "tauri-plugin-autostart-api";
57+
58+
await enable();
59+
60+
console.log(`registered for autostart? ${await isEnabled()}`);
61+
62+
disable();
63+
```
64+
65+
## Contributing
66+
67+
PRs accepted. Please make sure to read the Contributing Guide before making a pull request.
68+
69+
## Partners
70+
71+
<table>
72+
<tbody>
73+
<tr>
74+
<td align="center" valign="middle">
75+
<a href="https://crabnebula.dev" target="_blank">
76+
<img src="https://github.com/tauri-apps/plugins-workspace/raw/v1/.github/sponsors/crabnebula.svg" alt="CrabNebula" width="283">
77+
</a>
78+
</td>
79+
</tr>
80+
</tbody>
81+
</table>
82+
83+
For the complete list of sponsors please visit our [website](https://tauri.app#sponsors) and [Open Collective](https://opencollective.com/tauri).
84+
85+
## License
86+
87+
Code: (c) 2015 - Present - The Tauri Programme within The Commons Conservancy.
88+
89+
MIT or MIT/Apache 2.0 where applicable.

0 commit comments

Comments
 (0)