Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions templates/dioxus-adapter/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
[package]
name = "{{project-name}}"
version = "1.1.0"
version = "2.0.0"
authors = ["{{authors}}"]
edition = "2021"
license = "MIT OR Apache-2.0"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
dioxus = { version = "0.6.2", features = ["router"] }
dioxus = { version = "0.7.1", features = ["router"] }

wallet-adapter = "1.2.2"
solana-sdk = "2.1.2"
Expand All @@ -20,9 +21,10 @@ gloo-timers = "0.3.0"
solana-transaction-error = { version = "2.1.13", features = ["serde"] }
qrcodegen = "1.8.0"
percent-encoding = "2.3.1"
fastrand = "2.3.0"


[features]
default = ["web"]
web = ["dioxus/web"]
desktop = ["dioxus/desktop"]
mobile = ["dioxus/mobile"]
29 changes: 3 additions & 26 deletions templates/dioxus-adapter/Dioxus.toml
Original file line number Diff line number Diff line change
@@ -1,40 +1,17 @@
[application]

# App (Project) Name
name = "dioxus-adapter"

# Dioxus App Default Platform
# web, desktop, fullstack
default_platform = "web"

# `build` & `serve` dist path
out_dir = "dist"

# resource (assets) file folder
asset_dir = "assets"

[web.app]

# HTML title tag content
title = "Rust Wallet Adapter"

[web.watcher]
index_on_404 = true

# when watcher trigger, regenerate the `index.html`
reload_html = true

# which files or dirs will be watcher monitoring
watch_path = ["src", "assets"]
title = "Rust Wallet Adapter for Solana"

# include `assets` in web platform
[web.resource]

# CSS style file

# Additional CSS style files
style = []

# Javascript code file
# Additional JavaScript files
script = []

[web.resource.dev]
Expand Down
20 changes: 4 additions & 16 deletions templates/dioxus-adapter/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
## Dioxus Template with Tailwind CSS

### Requirements
1. This template relies on Tailwind CSS to generate the stylesheet.

Install the standalone Tailwind CLI - [https://tailwindcss.com/docs/installation/tailwind-cli](https://tailwindcss.com/docs/installation/tailwind-cli)
2. Install Dioxus cli from official website - [https://dioxuslabs.com/](https://dioxuslabs.com/)


### Running the dev server
1. Start the tailwind CLI within the Root of the directory
```sh
tailwindcss -i ./tailwind.css -o ./assets/tailwind.css --watch
```
2. Start the Dioxus CLI
```sh
dx serve
```
Start the Dioxus CLI
```sh
dx serve
```

- Open the browser at default port http://localhost:8080 or the port described by Dioxus CLI in case port `8080` was already in use

Expand Down
Loading
Loading