An open API service indexing awesome lists of open source software.

https://github.com/basilysf1709/zarn

zig package manager
https://github.com/basilysf1709/zarn

Last synced: 5 months ago
JSON representation

zig package manager

Awesome Lists containing this project

README

          

# Zarn

## Documentation

### Phase #1:
Screenshot 1446-02-21 at 4 26 37 PM

- 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:
Screenshot 1446-02-21 at 4 27 15 PM

- Trying to understand zig build
- Added a test to see if zarn.toml file with "init" command works properly

Zarn 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