-
Notifications
You must be signed in to change notification settings - Fork 497
Bazelmod documentation and code examples. #2713
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
69a9b33
Added some more Bazelmod code examples.
marvin-hansen bac6a13
Merge branch 'main' into main
marvin-hansen 1f21f01
Added FFI example and dependencies vendoring example for Bazelmod.
marvin-hansen dcb42df
Merge remote-tracking branch 'origin/main'
marvin-hansen 653bb40
Updated .gitignore to exclude fluff from JetBrain IDE's
marvin-hansen 334f46b
Updated the crate_universe_bzlmod.md documentation.
marvin-hansen e7c60a3
Merge branch 'main' into main
marvin-hansen 2aa5c3b
Updated presubmit.yml to build new bazelmod proto and oci example.
marvin-hansen 50e0cc1
Added .gitignore file to all new Bazelmod examples.
marvin-hansen aaba5a3
Added CI build target for all remaining Bazelmod examples.
marvin-hansen e843c7c
Fixed a number of buildifier lint issues.
marvin-hansen 82a25e0
Fixed more buildifier lint issues.
marvin-hansen a6a9774
Fixed MUSL cross compiling with Bazelmod CI build.
marvin-hansen 893f774
Formated all bazel files in examples/bazelmod with buildifier
marvin-hansen 2dddcee
Added Readme to compiler example and oci container example.
marvin-hansen f6706eb
Merge branch 'main' into main
marvin-hansen 7f59ab6
Renovated Cross compilation with bzlmod example.
marvin-hansen 426d896
Moved sysroot into MODULE.bazel.
marvin-hansen ff02ade
Merge remote-tracking branch 'origin/main'
marvin-hansen e158359
Removed OCI example.
marvin-hansen 518a78b
Regenerate documentation
marvin-hansen 4154f20
Regenerate documentation
marvin-hansen 330fb57
Updated .gitignore files in examples to exclude hidden Mac system files.
marvin-hansen c0580e0
Fixed a corner case when compiling on older Intel Based Macs.
marvin-hansen 30a4f27
Update sysroot in MUSL example.
marvin-hansen 38752d9
Added Bazelversion file and symlinked all bzlmod examples to it.
marvin-hansen 9aedaca
Removed .DS_Store Apple stuff.
marvin-hansen 3c4d9e4
Formatted C code in FFI example.
marvin-hansen 93e0b68
Formatted proto
marvin-hansen 52eca2b
Merge branch 'bazelbuild:main' into main
marvin-hansen a2438ff
Formatted proto
marvin-hansen 106a945
Merge remote-tracking branch 'origin/main'
marvin-hansen 27ba0b6
Formatted proto
marvin-hansen 0130fa4
Formatted proto
marvin-hansen 0b405f4
Updated MUSL example
marvin-hansen 82b7546
Formatted Bazelfiles.
marvin-hansen 8c8fc22
Updated MUSL bazelmod example;
marvin-hansen 7939b5b
Added platform tests to cross compile and MUSL example.
marvin-hansen fb25308
Formatted Bazel files.
marvin-hansen 8a2f8d1
Formatted Bazel files.
marvin-hansen 1854074
Switched MUSL example to MiMalloc
marvin-hansen f651e98
Removed more .DS_Store files and updated .gitignore
marvin-hansen 200c187
Fixed platform script to work on BSD / Mac and Gnu/Linux systems.
marvin-hansen 772bd63
Added local override to bazelmod MUSL example to test against head.
marvin-hansen 1084934
Working on a patch to resolve MUSL toolchain.
marvin-hansen 7a2576a
Added debug to rust_repository_set
marvin-hansen 389508a
Added first draft to add constraint_value to MUSL toolchain via the a…
marvin-hansen ae6b370
Removed breaking return statement in abi_to_constraints
marvin-hansen e29643b
Uncommented MUSL case in abi_to_constraints
marvin-hansen ee2fd10
Reverted changed in rust_repository_set
marvin-hansen 55713c2
Reverted back
marvin-hansen 4fa6a19
Disabled MUSL on x86_64 due to issue #2726
marvin-hansen dbe63d7
Update examples/bzlmod/compile_opt/README.md
marvin-hansen 96e1d83
Update examples/bzlmod/musl_cross_compiling/README.md
marvin-hansen 95484c6
Removed bzlmod musl_cross_compiling example due to issue #2726
marvin-hansen 0cc29b9
Updated cross compile Readme.
marvin-hansen 6e97e3e
Removed .DS_Store files files and updated .gitignore
marvin-hansen dd99d68
Removed musl bazelmod example from CI config.
marvin-hansen 7d099ab
Readme formatting in bzlmod/proto example.
marvin-hansen b8f87e0
Merge branch 'main' into main
marvin-hansen ab287dd
Removed all .DS_Store files in proto example.
marvin-hansen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,10 @@ MODULE.bazel.lock | |
.vscode | ||
*.code-workspace | ||
|
||
# JetBrains | ||
.idea | ||
.idea/** | ||
|
||
# BazelCI | ||
bazelci.py | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
USE_BAZEL_VERSION=7.2.0 |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module( | ||
name = "deps_vendored", | ||
version = "0.0.0" | ||
) | ||
############################################################################### | ||
# B A Z E L C E N T R A L R E G I S T R Y # https://registry.bazel.build/ | ||
############################################################################### | ||
# https://github.com/bazelbuild/bazel-skylib/releases/ | ||
bazel_dep(name = "bazel_skylib", version = "1.7.1") | ||
|
||
# https://github.com/bazelbuild/rules_rust/releases | ||
bazel_dep(name = "rules_rust", version = "0.46.0") | ||
|
||
############################################################################### | ||
# T O O L C H A I N S | ||
############################################################################### | ||
|
||
# Rust toolchain | ||
RUST_EDITION = "2021" | ||
RUST_VERSION = "1.79.0" | ||
|
||
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust") | ||
rust.toolchain( | ||
edition = RUST_EDITION, | ||
versions = [RUST_VERSION], | ||
) | ||
use_repo(rust, "rust_toolchains") | ||
register_toolchains("@rust_toolchains//:all") | ||
|
||
############################################################################### | ||
# R U S T C R A T E S | ||
############################################################################### | ||
crate = use_extension("@rules_rust//crate_universe:extension.bzl", "crate") |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.