Skip to content

Commit 5ba9a8b

Browse files
committed
Add installation instructions
1 parent 4de9193 commit 5ba9a8b

3 files changed

Lines changed: 55 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
uses: taiki-e/upload-rust-binary-action@v1
4949
with:
5050
bin: yap
51-
features: yap-full
51+
features: yap-full,self-replace
5252
target: ${{ matrix.target }}
5353
include: LICENSE,README.md,example_configs
5454
tar: unix
@@ -60,7 +60,7 @@ jobs:
6060
uses: taiki-e/upload-rust-binary-action@v1
6161
with:
6262
bin: yap
63-
features: yap-lite
63+
features: yap-lite,self-replace
6464
target: ${{ matrix.target }}
6565
include: LICENSE,README.md,example_configs
6666
tar: unix

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ self-replace = ["dep:self-replace", "portable", "yap-lite"]
3131
# Full should have _all_ features enabled and available
3232
yap-full = ["yap-lite", "espflash", "defmt-watch"]
3333
# Lite trims things not everyone might want (i.e. espflash and defmt support)
34-
yap-lite = ["self-replace", "logging", "macros"]
34+
yap-lite = ["logging", "macros"]
3535

3636
[dependencies]
3737
ansi-to-tui = { git = "https://github.com/nullstalgia/ansi-to-tui", branch = "lossy_and_line_endings" }

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,55 @@ https://github.com/user-attachments/assets/647d0172-3f79-4d47-974d-48f344adc645
3030

3131
### espflash Flashing Example:
3232
https://github.com/user-attachments/assets/d14e6aa2-51d1-489f-b8ba-ca88f74ad3d2
33+
34+
# Pre-compiled Downloads
35+
36+
Pre-compiled portable binaries can be found in [Releases](https://github.com/nullstalgia/yap/releases).
37+
38+
`yap-full` builds have all optional features enabled!
39+
40+
`yap-lite` builds exclude less universally-applicable features (currently excluded: `espflash`, `defmt`, `defmt_watch`).
41+
42+
# Installation
43+
44+
Crates.io releases are not yet available (due to some dependencies not being available/yet released to crates.io).
45+
46+
Local installation can be accomplished by cloning the repository and running
47+
48+
```cargo install --path . --no-default-features --features yap-full```
49+
50+
(or `yap-lite` or any other combination of features).
51+
52+
Enabling `self-replace` or `portable` on installed builds is not recommended or supported.
53+
54+
# Usage
55+
56+
Open port selection:
57+
58+
```
59+
yap
60+
```
61+
62+
Try to connect to port at `COM1`:
63+
64+
```
65+
yap COM1
66+
```
67+
68+
Try to connect to port at `COM1` with 9600 baudrate:
69+
70+
```
71+
yap COM1 9600
72+
```
73+
74+
Try to connect to found USB device with VID 303A and PID 1001:
75+
76+
```
77+
yap 303A:1001
78+
```
79+
80+
Try to connect to found USB device with VID 303A and PID 1001 and Serial Number 123456 with 9600 baudrate:
81+
82+
```
83+
yap 303A:1001:123456 9600
84+
```

0 commit comments

Comments
 (0)