13 lines
537 B
Markdown
13 lines
537 B
Markdown
# tsrust hints
|
|
|
|
## Architecture
|
|
- Follows tsbuild patterns exactly (cli.js, cli.child.ts, cli.ts.js entry points)
|
|
- Uses smartcli for CLI, smartshell for cargo execution, smol-toml for TOML parsing
|
|
- Three modules: mod_cli, mod_cargo, mod_fs
|
|
|
|
## Key patterns
|
|
- smartshell `.exec()` streams output to terminal (non-silent)
|
|
- smartshell `.execSilent()` captures output without printing
|
|
- Cargo workspace detection: check for `[workspace]` section in Cargo.toml
|
|
- Binary targets: look for `[[bin]]` entries in member crate Cargo.toml files
|