-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Daniel Thompson-Yvetot <[email protected]>
- Loading branch information
1 parent
2489810
commit e78ed70
Showing
4 changed files
with
53 additions
and
5 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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Tauri Plugin Stronghold | ||
|
||
This plugin provides a "classical" Tauri Plugin Interface to the [IOTA Stronghold](https://github.com/iotaledger/stronghold.rs) encrypted database, secure runtime, and peer-to-peer service. | ||
|
||
## Architecture | ||
This repo might appear to be strange, but it is really just a hybrid Rust / Typescript project that recommends a specific type of consumption, namely using GIT as the only distribution mechanism. | ||
|
||
## Installation | ||
For more details and usage see [the svelte demo](examples/svelte-app/src/App.svelte). Please note, below in the dependencies you can also lock to a revision/tag in both the `Cargo.toml` and `package.json` | ||
|
||
### RUST | ||
`src-tauri/Cargo.toml` | ||
```yaml | ||
[dependencies.tauri-stronghold] | ||
git = "https://github.com/tauri-apps/tauri-plugin-stronghold.rs" | ||
branch = "main" | ||
``` | ||
|
||
Use in `src-tauri/src/main.rs`: | ||
```rust | ||
use tauri_stronghold::TauriStronghold; | ||
|
||
fn main() { | ||
tauri::AppBuilder::new() | ||
.plugin(TauriStronghold {}) | ||
.build() | ||
.run(); | ||
} | ||
``` | ||
|
||
### WEB | ||
`package.json` | ||
```json | ||
"dependencies": { | ||
"tauri-stronghold-plugin-api": "tauri-apps/tauri-plugin-stronghold.rs#main", | ||
``` | ||
|
||
Import in your JS/TS: | ||
``` | ||
import { Stronghold, Location } from 'tauri-stronghold-plugin-api' | ||
``` | ||
|
||
|
||
# License | ||
MIT / Apache-2.0 |
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
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
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,8 +1,11 @@ | ||
{ | ||
"name": "tauri-stronghold-api", | ||
"name": "tauri-stronghold-plugin-api", | ||
"version": "0.1.0", | ||
"author": "Lucas Nogueira <[email protected]>", | ||
"description": "API wrapper for the Stronghold Tauri plugin", | ||
"authors": [ | ||
"Lucas Nogueira <[email protected]>", | ||
"Daniel Thompson-Yvetot <[email protected]>" | ||
], | ||
"description": "API wrapper for the Tauri Plugin for Stronghold ", | ||
"browser": "dist/index.js", | ||
"private": "true", | ||
"scripts": { | ||
|