You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,23 +7,27 @@
7
7
Stellar CLI is a Rust-based command-line tool for interacting with the Stellar network. It's organized as a Cargo workspace with multiple crates and uses both Cargo and Make for build automation.
- Build main CLI: `cargo build --bin stellar` -- takes 45 seconds. NEVER CANCEL.
14
15
- Install CLI: `make install` -- takes 3 minutes with potential network timeouts. NEVER CANCEL. Set timeout to 10+ minutes.
15
16
16
17
### Core Development Commands
18
+
17
19
- Format code: `make fmt` -- takes 2 seconds
18
20
- Run linting: `make check` -- takes 7 minutes. NEVER CANCEL. Set timeout to 15+ minutes.
19
21
- Build main CLI only: `cargo build --bin stellar` -- takes 45 seconds. Use this for quick iterations.
20
22
21
23
### Testing
24
+
22
25
- Test main soroban-cli library: `cargo test --package soroban-cli --lib` -- takes 52 seconds. NEVER CANCEL.
23
26
- Test individual crates: `cargo test --package <crate-name>` -- typically takes 40 seconds per crate.
24
27
-**WARNING**: Full test suite via `make test` requires building WebAssembly test fixtures and consumes significant memory and disk space. It may fail with "No space left on device" in constrained environments.
25
28
26
29
### CLI Usage and Validation
30
+
27
31
- Test CLI installation: `stellar --version`
28
32
- Basic CLI validation: `stellar --help`
29
33
- Generate test keys: `stellar keys generate <name>`
@@ -39,6 +43,7 @@ Stellar CLI is a Rust-based command-line tool for interacting with the Stellar n
39
43
## Common Tasks
40
44
41
45
### Repository Structure
46
+
42
47
```
43
48
/home/runner/work/stellar-cli/stellar-cli/
44
49
├── cmd/
@@ -55,6 +60,7 @@ Stellar CLI is a Rust-based command-line tool for interacting with the Stellar n
55
60
```
56
61
57
62
### Key Commands Reference
63
+
58
64
```bash
59
65
# Development workflow
60
66
cargo build --bin stellar # Quick build (45s)
@@ -74,6 +80,7 @@ stellar keys address test # Test key operations
74
80
```
75
81
76
82
### Build Time Expectations
83
+
77
84
-**NEVER CANCEL** any build or test command before these timeouts:
0 commit comments