Skip to content

Commit e57adb9

Browse files
committed
🎉 Release rules_mojo
0 parents  commit e57adb9

File tree

125 files changed

+11156
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+11156
-0
lines changed

‎.bazelignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Prevent infinite symlink chains
2+
.devenv

‎.bazelrc

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Don't inherit PATH and LD_LIBRARY_PATH.
2+
build --incompatible_strict_action_env
3+
4+
# Enforce C++20 as the default for rules_cc, regardless of toolchain config.
5+
build --cxxopt=-std=c++20 --host_cxxopt=-std=c++20
6+
7+
# Since expect rules_cc targets to be mainly exec_tools, use O3.
8+
build --cxxopt=-O3 --host_cxxopt=-O3
9+
10+
# Forbid network access unless explicitly enabled.
11+
build --sandbox_default_allow_network=false
12+
13+
# Use correct runfile locations.
14+
build --nolegacy_external_runfiles
15+
16+
# Enable sandboxing for exclusive tests like GPU performance tests.
17+
test --incompatible_exclusive_test_sandboxed
18+
19+
# Make sure rules_cc uses the correct transition mechanism.
20+
build --incompatible_enable_cc_toolchain_resolution
21+
22+
# Propagate tags such as no-remote for precompilations to downstream actions.
23+
common --incompatible_allow_tags_propagation
24+
25+
# Bzlmod configuration.
26+
common --registry=https://raw.githubusercontent.com/bazelbuild/bazel-central-registry/main/
27+
common --registry=https://raw.githubusercontent.com/eomii/bazel-eomii-registry/main/
28+
29+
# Remote optimizations.
30+
build --remote_build_event_upload=minimal
31+
build --remote_download_minimal
32+
build --nolegacy_important_outputs
33+
34+
# Smaller profiling.
35+
build --slim_profile
36+
build --experimental_profile_include_target_label
37+
build --noexperimental_profile_include_primary_output
38+
39+
# Workaround for NativeLink expecting this to be set to `main`
40+
build --remote_instance_name=main
41+
42+
# Nix-generated flags for rules_mojo.
43+
try-import %workspace%/.bazelrc.mojo
44+
45+
# Nix-generated flags for rules_ll.
46+
try-import %workspace%/.bazelrc.ll
47+
48+
# Nix-generated flags for LRE.
49+
try-import %workspace%/.bazelrc.lre
50+
51+
# Allow user-side customization.
52+
try-import %workspace%/.bazelrc.user

‎.bazelversion

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8.0.0-pre.20240422.4

‎.clang-format

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
BasedOnStyle: Google

‎.clang-tidy

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
---
2+
Checks: |
3+
-*
4+
bugprone-*
5+
google-*
6+
cppcoreguidelines-*
7+
misc-*
8+
modernize-*
9+
performance-*
10+
portability-*
11+
readability-*
12+
-readability-redundant-declaration
13+
14+
# Note: readability-redundant-declaration is broken when working with modules.
15+
16+
WarningsAsErrors: "*"
17+
18+
CheckOptions:
19+
- key: readability-identifier-naming.NamespaceCase
20+
value: lower_case
21+
- key: readability-identifier-naming.ClassCase
22+
value: CamelCase
23+
- key: readability-identifier-naming.StructCase
24+
value: CamelCase
25+
- key: readability-identifier-naming.FunctionCase
26+
value: aNy_CasE
27+
- key: readability-identifier-naming.VariableCase
28+
value: lower_case
29+
- key: readability-identifier-naming.ClassMemberCase
30+
value: lower_case
31+
- key: readability-identifier-naming.ClassMemberSuffix
32+
value: ""
33+
- key: readability-identifier-naming.PrivateMemberSuffix
34+
value: _
35+
- key: readability-identifier-naming.ProtectedMemberSuffix
36+
value: _
37+
- key: readability-identifier-naming.EnumConstantCase
38+
value: CamelCase
39+
- key: readability-identifier-naming.EnumConstantPrefix
40+
value: k
41+
- key: readability-identifier-naming.ConstexprVariableCase
42+
value: CamelCase
43+
- key: readability-identifier-naming.ConstexprVariablePrefix
44+
value: k
45+
- key: readability-identifier-naming.GlobalConstantCase
46+
value: CamelCase
47+
- key: readability-identifier-naming.GlobalConstantPrefix
48+
value: k
49+
- key: readability-identifier-naming.MemberConstantCase
50+
value: CamelCase
51+
- key: readability-identifier-naming.MemberConstantPrefix
52+
value: k
53+
- key: readability-identifier-naming.StaticConstantCase
54+
value: CamelCase
55+
- key: readability-identifier-naming.StaticConstantPrefix
56+
value: k
57+
- key: readability-implicit-bool-conversion.AllowIntegerConditions
58+
value: 0
59+
- key: readability-implicit-bool-conversion.AllowPointerConditions
60+
value: 0

‎.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake --impure

‎.github/styles/Microsoft/AMPM.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
extends: existence
2+
message: Use 'AM' or 'PM' (preceded by a space).
3+
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/date-time-terms
4+
level: error
5+
nonword: true
6+
tokens:
7+
- '\d{1,2}[AP]M'
8+
- '\d{1,2} ?[ap]m'
9+
- '\d{1,2} ?[aApP]\.[mM]\.'
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
extends: existence
2+
message: "Don't use language (such as '%s') that defines people by their disability."
3+
link: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/term-collections/accessibility-terms
4+
level: suggestion
5+
ignorecase: true
6+
tokens:
7+
- a victim of
8+
- able-bodied
9+
- an epileptic
10+
- birth defect
11+
- crippled
12+
- differently abled
13+
- disabled
14+
- dumb
15+
- handicapped
16+
- handicaps
17+
- healthy person
18+
- hearing-impaired
19+
- lame
20+
- maimed
21+
- mentally handicapped
22+
- missing a limb
23+
- mute
24+
- non-verbal
25+
- normal person
26+
- sight-impaired
27+
- slow learner
28+
- stricken with
29+
- suffers from
30+
- vision-impaired
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
extends: conditional
2+
message: "'%s' has no definition."
3+
link: https://docs.microsoft.com/en-us/style-guide/acronyms
4+
level: suggestion
5+
ignorecase: false
6+
# Ensures that the existence of 'first' implies the existence of 'second'.
7+
first: '\b([A-Z]{3,5})\b'
8+
second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
9+
# ... with the exception of these:
10+
exceptions:
11+
- API
12+
- ASP
13+
- CLI
14+
- CPU
15+
- CSS
16+
- CSV
17+
- DEBUG
18+
- DOM
19+
- DPI
20+
- FAQ
21+
- GCC
22+
- GDB
23+
- GET
24+
- GPU
25+
- GTK
26+
- GUI
27+
- HTML
28+
- HTTP
29+
- HTTPS
30+
- IDE
31+
- JAR
32+
- JSON
33+
- JSX
34+
- LESS
35+
- LLDB
36+
- NET
37+
- NOTE
38+
- NVDA
39+
- OSS
40+
- PATH
41+
- PDF
42+
- PHP
43+
- POST
44+
- RAM
45+
- REPL
46+
- RSA
47+
- SCM
48+
- SCSS
49+
- SDK
50+
- SQL
51+
- SSH
52+
- SSL
53+
- SVG
54+
- TBD
55+
- TCP
56+
- TODO
57+
- URI
58+
- URL
59+
- USB
60+
- UTF
61+
- XML
62+
- XSS
63+
- YAML
64+
- ZIP

0 commit comments

Comments
 (0)