Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zig Projects/Modules #2860

Closed
ghost opened this issue Jul 9, 2019 · 2 comments
Closed

Zig Projects/Modules #2860

ghost opened this issue Jul 9, 2019 · 2 comments
Labels
question No questions on the issue tracker, please.
Milestone

Comments

@ghost
Copy link

ghost commented Jul 9, 2019

Related to #943

What will zig projects/modules look like?

  • Folder structure? Project descriptor file? All in build.zig?
  • If there will be a project descriptor file, which format: DSL? project.zig? XML? JSON?
  • What should be the responsibilities of build.zig VS the zig project?

What purpose could projects/modules serve?

What existing systems out there are the most interesting to compare with?

  • Maven?
  • Java 9 module system?
  • IDE inspired, like Visual Studio Solutions
  • ... ?
@ghost ghost changed the title Project/Module descriptor file for Zig in addition to build.zig Zig Projects/Modules Jul 9, 2019
@ikskuh
Copy link
Contributor

ikskuh commented Jul 10, 2019

I really like that we only have build.zig right now. To support IDEs supporting Zig projects, the zig executable could get a feature like

[user@device my-project] zig list-files
./main.zig
./src/color.zig
./src/radial.zig
./src/foobla.zig

that would list all files references in the project. This could even output a dependency tree so the project could be viewed hierarchical in the IDE.

@andrewrk andrewrk added this to the 0.5.0 milestone Jul 12, 2019
@andrewrk andrewrk added the question No questions on the issue tracker, please. label Jul 12, 2019
@andrewrk
Copy link
Member

Let's take this discussion to one of the other community areas: https://github.com/ziglang/zig/wiki/Community

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question No questions on the issue tracker, please.
Projects
None yet
Development

No branches or pull requests

2 participants