Skip to content

Commit c20904d

Browse files
v1.37.0: vix run --auto-deps for single-file C++ (#331)
1 parent 9a25268 commit c20904d

2 files changed

Lines changed: 33 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
---
99

1010
## [Unreleased]
11+
# 🚀 New: `--auto-deps` for single-file C++ (script mode)
12+
13+
You can now use libraries installed from the Vix registry directly inside a single `.cpp` file:
14+
15+
```bash
16+
vix run server.cpp --auto-deps
17+
```
18+
19+
- Automatically detects installed dependencies in `.vix/deps`
20+
- Injects the correct `-I` include paths
21+
- Avoids duplicate include flags
22+
- No `CMakeLists.txt` required
23+
24+
---
25+
26+
# 🔼 New: `--auto-deps=up`
27+
28+
```bash
29+
vix run src/server.cpp --auto-deps=up
30+
```
31+
32+
In addition to the script directory, Vix can now search for `.vix/deps` in parent directories.
33+
Useful for nested layouts and running scripts from subfolders.
34+
35+
---
36+
37+
# 🧠 Improvements
38+
39+
- Introduced `AutoDepsMode` (`None`, `Local`, `Up`)
40+
- Proper validation and error handling for invalid `--auto-deps` values
41+
- Improved `vix run --help` documentation
42+
- Cleaner separation between runtime args (`--args`) and compiler flags (`--`)
1143
## [v1.36.3] - 2026-02-19
1244

1345
### Improved

0 commit comments

Comments
 (0)