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
- Multi-architecture builds with cross-compilation
268
+
- PyPI publishing with trusted publishing
269
+
- Two-package distribution (htty-core + htty)
270
+
- Dry-run capabilities for testing releases
271
271
272
-
The implementation follows maturin best practices and mirrors successful Rust-Python projects like polars, ensuring reliable and efficient CI/CD for the htty project.
272
+
The implementation uses maturin for building Python wheels with Rust components.
Copy file name to clipboardExpand all lines: agent-primers/codegen.md
+31-31Lines changed: 31 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
3
3
## Overview
4
4
5
-
The htty project uses [Cog](https://nedbatchelder.com/code/cog/) for automated code generation to maintain consistency across multiple languages (Rust, Python) and file formats (TOML, source files). This ensures that constants and version information stay synchronized throughout the codebase.
5
+
The htty project uses [Cog](https://nedbatchelder.com/code/cog/) for automated code generation to maintain consistency across multiple languages (Rust, Python) and file formats (TOML, source files). Constants and version information are synchronized throughout the codebase.
6
6
7
7
## Architecture
8
8
9
9
### Central Source Files
10
10
11
-
The code generation system is driven by two central Nix files that serve as the single source of truth:
11
+
The code generation system is driven by two central Nix files:
12
12
13
13
#### 1. `nix/lib/version.nix` - Version Management
14
14
Contains all version-related information for the project:
@@ -30,9 +30,9 @@ Contains all version-related information for the project:
30
30
}
31
31
```
32
32
33
-
**Key Features:**
34
-
-Single source of truth for all version information
35
-
-Automatic git SHA integration
33
+
Features:
34
+
-Central version information
35
+
-Git SHA integration
36
36
- Python PEP 440 compatible prerelease format
37
37
- Package-specific version formatting
38
38
@@ -61,10 +61,10 @@ Contains all shared constants used across the codebase:
61
61
}
62
62
```
63
63
64
-
**Key Features:**
65
-
- Centralized configuration for the entire project
64
+
Features:
65
+
- Centralized configuration for the project
66
66
- Language-agnostic constant definitions
67
-
-Comprehensive documentation with usage references
67
+
-Documentation with usage references
68
68
- Consistent naming conventions
69
69
70
70
### Code Generation Process
@@ -91,7 +91,7 @@ Used to import constants from Nix environment variables:
91
91
//[[[end]]]
92
92
```
93
93
94
-
**Purpose**: Loads constants from environment variables into Cog variables for use in generation blocks.
94
+
Purpose: Loads constants from environment variables into Cog variables for use in generation blocks.
0 commit comments