1
- # Tauri Plugin graphql
1
+ # Mizuki
2
2
3
3
[ ![ Crates.io] [ crates-badge ]] [ crates-url ]
4
4
[ ![ Documentation] [ docs-badge ]] [ docs-url ]
5
5
[ ![ MIT licensed] [ mit-badge ]] [ mit-url ]
6
6
7
- [ crates-badge ] : https://img.shields.io/crates/v/tauri-plugin-graphql .svg
8
- [ crates-url ] : https://crates.io/crates/tauri-plugin-graphql
9
- [ docs-badge ] : https://img.shields.io/docsrs/tauri-plugin-graphql .svg
10
- [ docs-url ] : https://docs.rs/tauri-plugin-graphql
7
+ [ crates-badge ] : https://img.shields.io/crates/v/mizuki .svg
8
+ [ crates-url ] : https://crates.io/crates/mizuki
9
+ [ docs-badge ] : https://img.shields.io/docsrs/mizuki .svg
10
+ [ docs-url ] : https://docs.rs/mizuki
11
11
[ mit-badge ] : https://img.shields.io/badge/license-MIT-blue.svg
12
12
[ mit-url ] : LICENSE
13
13
14
- A plugin for Tauri that enables type-safe IPC through GraphQL.
14
+ A toolkit for building Tauri plugins that enables type-safe IPC through GraphQL.
15
+
16
+ ## Notice
17
+
18
+ This project is a fork from [ JonasKruckenberg/tauri-plugin-graphql] [ initial-repo ] .
19
+
20
+ But I thought that it would be a great a idea to push the plugin futher
21
+ and create a toolkit for building GraphQL Tauri Plugins.
15
22
16
23
## Install
17
24
18
25
### Rust
19
26
20
27
``` toml
21
28
[dependencies ]
22
- tauri-plugin-graphql = " 2.0 .0"
29
+ mizuki = " 0.1 .0"
23
30
```
24
31
25
32
### JavaScript
26
33
27
- The only client-side adapter currently is ` tauri-plugin-graphql- urql` , a custom exchange for [ ` urql ` ] .
34
+ The only client-side adapter currently is ` @mizuki/ urql` , a custom exchange for [ ` urql ` ] .
28
35
If you need adapters for other GraphQL clients, open a PR!
29
36
30
37
| Package | Version (click for changelogs) |
31
38
| -------------------------------| --------------------------------|
32
- | [ ` tauri-plugin-graphql- urql` ] | [ ![ urql adapter version] [ urql-adapter-version-badge ]] [ urql-adapter-changelog ]
39
+ | [ ` @mizuki/ urql` ] | [ ![ urql adapter version] [ urql-adapter-version-badge ]] [ urql-adapter-changelog ]
33
40
34
41
## Usage
35
42
@@ -75,7 +82,8 @@ fn main() {
75
82
);
76
83
77
84
tauri :: Builder :: default ()
78
- . plugin (tauri_plugin_graphql :: init (schema ))
85
+ // The plugin name is required
86
+ . plugin (mizuki :: MizukiPlugin :: new (" todo-plugin" , schema ))
79
87
. run (tauri :: generate_context! ())
80
88
. expect (" failed to run app" );
81
89
}
@@ -91,10 +99,11 @@ PRs are welcome!
91
99
92
100
## License
93
101
94
- [ MIT © Jonas Kruckenberg ] ( ./LICENSE )
102
+ [ MIT © Tony Mushah ] ( ./LICENSE )
95
103
96
- [ `tauri-plugin-graphql- urql` ] : packages/urql
97
- [ urql-adapter-version-badge ] : https://img.shields.io/npm/v/tauri-plugin-graphql- urql?label=%20
104
+ [ `@mizuki/ urql` ] : packages/urql
105
+ [ urql-adapter-version-badge ] : https://img.shields.io/npm/v/@mizuki/ urql?label=%20
98
106
[ urql-adapter-changelog ] : packages/urql/CHANGELOG.md
99
107
[ `urql` ] : https://formidable.com/open-source/urql/
100
108
[ `async_graphql::Schema` ] : https://docs.rs/async-graphql/latest/async_graphql/struct.Schema.html
109
+ [ initial-repo ] : https://github.com/JonasKruckenberg/tauri-plugin-graphql
0 commit comments