https://github.com/basilysf1709/zarn
zig package manager
https://github.com/basilysf1709/zarn
Last synced: 5 months ago
JSON representation
zig package manager
- Host: GitHub
- URL: https://github.com/basilysf1709/zarn
- Owner: basilysf1709
- License: mit
- Created: 2024-08-20T11:05:42.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-25T13:28:02.000Z (about 1 year ago)
- Last Synced: 2025-02-26T00:44:07.456Z (8 months ago)
- Language: Zig
- Homepage:
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zarn
## Documentation
### Phase #1:
- Designed the diagram above
- Setting up build system
- Ran into issues with changing directories in the test system
- Connected commands.zig to cli.zig, which is then connected to cli_tests.zig for testing### Phase #2:
- Trying to understand zig build
- Added a test to see if zarn.toml file with "init" command works properlyZarn is a package manager written in Zig.
## Project Structure
The project is structured as follows:
- `src/`
- `main.zig`: Entry point of the application
- `package/`: Package-related functionality
- `cli/`: Command-line interface implementation
- `util/`: Utility functions
- `resolver/`: Dependency resolution logic
- `build.zig`: Build configuration## Building the Project
To build the project, you need to have Zig installed. Then run:
```
zig build
```This will create an executable named `zarn` in the `zig-out/bin` directory.
## Running the Application
To run the application, use:
```
zig build run
```Or, after building, you can directly run the executable:
```
./zig-out/bin/zarn
```## Development
The main application logic is located in `src/main.zig`. Currently, it only prints "Hello, World!":
```zig:src/main.zig
startLine: 3
endLine: 5
```Contributions are welcome! Please feel free to submit a Pull Request.
## License
MIT License