https://github.com/vertexwahn/bazeldemos
Bazel Demos
https://github.com/vertexwahn/bazeldemos
bazel bazel-examples cpp fmt hello-world java latex openexr poetry python
Last synced: 6 months ago
JSON representation
Bazel Demos
- Host: GitHub
- URL: https://github.com/vertexwahn/bazeldemos
- Owner: Vertexwahn
- Created: 2021-01-17T19:34:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-26T18:39:48.000Z (7 months ago)
- Last Synced: 2025-04-10T23:13:08.898Z (6 months ago)
- Topics: bazel, bazel-examples, cpp, fmt, hello-world, java, latex, openexr, poetry, python
- Language: HTML
- Homepage: https://vertexwahn.de/page/open_source/
- Size: 82.1 MB
- Stars: 21
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://opensource.fb.com/support-ukraine)
[](https://vertexwahn.visualstudio.com/BazelDemos/_build/latest?definitionId=6&branchName=master)# BazelDemos
[Bazel](https://bazel.build/) is a build system.
In this repository,
I store some demos, experiments,
and playgrounds that show how to use Bazel with different programming languages,
libraries, and tools.
Besides this,
you can find misc experiments related to Bazel here.
Most of the things you find here are not production-ready but can serve as a starting point for your own developments.## Organization of this repo
This repository is mainly organized into three parts:
- [core_principles](/core_principles): Core principles of Bazel with no focus on a specific programming language
- [hello_world](/hello_world): Plain Hello World demos in different programming languages supported by the Bazel build system
- [intermediate](/intermediate): Usage of different third-party dependencies and toolsFurthermore, the [ci](/ci) directory contains build jobs to ensure that specific demos work across different operating systems.
Not all demos that can be found here are also covered by CI.## Hello World
Under [hello_world](/hello_world) you can find Hello World examples in misc programming languages using Bazel.
The following table shows on which OS configurations the examples were successfully tested.| Language support on | macOS | Ubuntu | Windows |
| -------------------- | ------- | ------ | ------- |
| C++ | yes | yes | yes |
| C# | yes | yes | yes |
| D | no | yes | no |
| Go | yes | yes | |
| Python | yes | yes | |
| Rust | yes | yes | |## Similar projects
Here you can find a list of other repositories with Bazel demos:
- [aspect-build/bazel-examples](https://github.com/aspect-build/bazel-examples)
- [bazelbuild/codelabs](https://github.com/bazelbuild/codelabs)
- [bazelbuild/examples](https://github.com/bazelbuild/examples)
- [clchiou/bazel-examples](https://github.com/clchiou/bazel-examples)
- [FaBrand/bazel-learning](https://github.com/FaBrand/bazel-learning)
- [kriscfoster/multi-language-bazel-monorepo](https://github.com/kriscfoster/multi-language-bazel-monorepo)
- [limdor/bazel-examples](https://github.com/limdor/bazel-examples)
- [salesforce/bazel-demo](https://github.com/salesforce/bazel-demo)## Contributions welcome
If you have a Bazel demo you want to share, feel free to open a pull request.
I am always happy about seeing new programming languages supported by Bazel or interesting usage of tools or third-party dependencies.
Of course, improvements are also welcome.## License
If not stated otherwise the license of the source files in this repository (BazelDemos) is under the Apache License 2.0.
## Credits
A big thanks goes to all the providers, developers, and maintainers of the Bazel universe! :heart: