Skip to content

Migrate cargo-raze into rules_rust #590

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

Closed
wants to merge 264 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
264 commits
Select commit Hold shift + click to select a range
f0ddd97
Run Rustfmt over everything (#9)
acmcarther Mar 5, 2018
eae2a98
Update README.md (#11)
bspeice Mar 8, 2018
c08631b
Support './' in lib.path targets (#13)
acmcarther Mar 11, 2018
9293a28
Add `data_attr` for defining rust_library data dependencies (#10)
acmcarther Mar 11, 2018
9c33c3b
Up to 0.0.19
acmcarther Mar 11, 2018
4970262
Complain to stderr about unused raze settings. (#18)
mfarrugi Mar 12, 2018
1a8e659
Update skipped_deps docs
acmcarther Mar 14, 2018
88fdc20
Follow my own best practices (#26)
acmcarther Mar 14, 2018
1a1f2ab
Add cargo-raze-examples smoketest (#27)
acmcarther Mar 14, 2018
308d297
Refactor planning in the manner of `cargo metadata` (but keep using i…
acmcarther Mar 15, 2018
0b28d00
Up to 0.0.20
acmcarther Mar 15, 2018
7466537
Prettify metadata test fixture (#30)
acmcarther Mar 15, 2018
2f65244
Add RUSTC as env_var to buildscripts (#33)
acmcarther Mar 20, 2018
f453818
Inline smoke test (#35)
bspeice Mar 27, 2018
941a3ca
Update examples for f453818
acmcarther Mar 27, 2018
a0c3432
Swap Genmode::Vendored and Genmode::Remote docs
acmcarther Mar 30, 2018
0bec1af
Packaging update (#40)
bspeice Apr 6, 2018
ca9321b
Add missing license header files (#46)
acmcarther Apr 14, 2018
c864bbf
Fix link to settings.rs
acmcarther May 18, 2018
3b0d496
Add SHA-256 to the local_repositories (#47)
damienmg Jun 5, 2018
b69f242
Add version number to imported crates (#49)
damienmg Jun 6, 2018
aadff8b
Remote: do not create http repository if it already exists. (#50)
damienmg Jun 6, 2018
efa6ea2
Take two on remote Git targets (#44)
bspeice Jun 21, 2018
930d8a8
Reverts google/cargo-raze#33 (#37)
acmcarther Jun 21, 2018
19afaef
Remove remote templates and use additional data in context (#45)
acmcarther Jun 21, 2018
b90dfea
Update README.md (#55)
bspeice Jun 23, 2018
2e4128f
Run the formatter in isolation
acmcarther Jun 25, 2018
afe4255
Clean up the planner code (#56)
acmcarther Jun 26, 2018
ab679d2
Remove rust_bench_test from generated imports (#60)
damienmg Aug 27, 2018
03e2996
Rel 0.1.0: Update deps, fix deprecation warnings, patch examples dire…
acmcarther Sep 22, 2018
dc18b4b
Rel 0.1.1: Fix the cargo.toml:readme directive by including a local R…
acmcarther Sep 22, 2018
0d747c4
Update dependencies and fix for cargo 0.30.0 (#67)
acmcarther Oct 22, 2018
4caf334
Remove rust_library.rustc_flag.target setting per rules_rust changes …
acmcarther Oct 22, 2018
c61566c
Rel 0.1.2: Update dependencies and fix smoke test
acmcarther Oct 22, 2018
d3ea117
Remove --target flag (#72)
damienmg Nov 5, 2018
7c103ce
README: correct name for generated cargo_fetch_remote_crates() (#74)
th0br0 Nov 8, 2018
3031a15
Use --flag=value syntax for cap-lints (#76)
damienmg Nov 9, 2018
29fd059
Remote mode: use Label() and non native git/http. (#77)
damienmg Nov 10, 2018
1a79366
Rel 0.1.3: Fixes for updated rules_rust, updates for idiomatic starlark
acmcarther Dec 1, 2018
d98b681
Support for Rust editions (#80)
kornholi Jan 9, 2019
8ec495b
Up to 0.2.0 on account of 'edition' becoming basically required
acmcarther Jan 9, 2019
e257aa6
Add lock file for 0.2.0
acmcarther Jan 9, 2019
8a75aa0
Bump Bazel on Travis to 0.17.1 (#81)
kornholi Jan 9, 2019
1271536
Fix Broken smoke-test.sh (#82)
acmcarther Jan 10, 2019
966e872
Add dump_metadata bin for quickly producing serialized metadata (#84)
acmcarther Jan 22, 2019
4be5181
Revert "Add dump_metadata bin for quickly producing serialized metada…
acmcarther Jan 22, 2019
30fb8b4
Roll forward of "Add dump_metadata bin" (#86)
acmcarther Jan 22, 2019
1e38935
Support binary dependencies that do not have associated libs (#87)
acmcarther Feb 4, 2019
0a72a8c
Remove requirement for lib in crate for adding aliases (#90)
acmcarther Apr 5, 2019
03b0005
Up to 0.2.2
acmcarther Apr 5, 2019
9a74754
sanitize binary's lib dep (#91)
mfarrugi Apr 6, 2019
4181d32
[settings] Add output_buildfile_suffix option (#93)
mstg Apr 16, 2019
0790cfd
Up to 0.2.3
acmcarther Apr 16, 2019
35d9aa7
Update path to rand repo PROPERLY (#95)
acmcarther Apr 26, 2019
2e9e112
Support cargo-raze into // (#96)
acmcarther Apr 27, 2019
4a045b3
Bump to 0.2.4
acmcarther Apr 27, 2019
7498805
[BUILD] Fix inconsistent casing in targets and dep targets (#94)
mstg Apr 27, 2019
867caf5
Up to 0.2.5
acmcarther Apr 27, 2019
bdc7076
Update examples directory
acmcarther May 20, 2019
9c9e480
Allow specifying additional environment variables to the build script…
johnedmonds May 22, 2019
251a99e
Up to 0.2.6
acmcarther May 22, 2019
40c5354
Fix output_buildfile_suffix for remote (#102)
acmcarther May 23, 2019
4e5bc46
Up to version 0.2.7
acmcarther May 23, 2019
a871166
Ensure build script genrule uses nested output dir (#103)
vitalyd May 24, 2019
8138a75
Replace build script local=1 with tags=no-sandbox (#105)
acmcarther May 24, 2019
483bc11
Up to 0.2.8
acmcarther May 24, 2019
e815f0c
Fix broken link in README.md (#106)
ian-h-chamberlain Jul 5, 2019
d03d042
Update references to 'cargo vendor -x' to 'cargo-vendor vendor -x' (#…
acmcarther Aug 26, 2019
527d171
Don't include aliases for the crate if it doesn't export a lib. (#109)
johnedmonds Aug 28, 2019
e2f6f34
Up to 0.2.9
acmcarther Aug 28, 2019
105c647
Ignore workspace crates when doing crate planning and vendor validati…
acmcarther Sep 23, 2019
3b9cb84
Up to 0.2.10
acmcarther Sep 23, 2019
7b08aee
Fix docopt's usage (#118)
ok32 Dec 10, 2019
375f98d
[Planning] Allow proc-macros to export (#119) (#120)
GregBowyer Dec 19, 2019
08e41f4
Up to 0.2.11
acmcarther Jan 6, 2020
a1e0358
Update raze (#122)
GregBowyer Jan 6, 2020
d0ebc43
Add in the ability to add patches to remote deps (#121)
GregBowyer Jan 31, 2020
258b580
Update docs and impl to refer to cargo vendor instead of cargo-vendor…
acmcarther Jan 31, 2020
818ca54
Up to 0.2.12
acmcarther Jan 31, 2020
c8ba113
Update cargo version to 0.42 and add cargo_platform 0.1.0 (#133)
acmcarther Feb 16, 2020
816ea69
Use `cargo-metadata` by default (instead of cargo internals) (#134)
acmcarther Feb 16, 2020
5477360
Fix incorrect package source id String in CargoInternalsMetadataFetch…
vitalyd Apr 1, 2020
9820249
Clean-up no-op conditional (#145)
Apr 23, 2020
7daf5ba
Apply clippy lints and cargo format (#146)
Apr 23, 2020
8337c7b
[smoke-test] Update rules_rust version (#151)
smklein Apr 30, 2020
fb17d3f
Update cargo vendor usage in smoke test (#153)
kornholi May 11, 2020
b23d9eb
Allow customizing generated BUILD files (#152)
kornholi May 11, 2020
73b87ab
Update version of bazel used by Travis CI (0.17.1 -> 3.1.0) (#155)
smklein May 12, 2020
9005fae
Remove CargoInternalsMetadataFetcher (#149)
smklein May 13, 2020
8c26d23
Rely on cargo_metadata crate (#150)
smklein May 13, 2020
548fa54
Update to 0.3.0
acmcarther May 13, 2020
a4cf174
Remove remaining dependencies on Cargo (#156)
kornholi May 14, 2020
cf70e45
Update to 0.3.1
acmcarther May 14, 2020
b20c29f
upgrade to latest versions of rules_rust, skylib (#157)
mobileink May 26, 2020
777a0be
Add additional_env setting for rules_rust rustc_env (#161)
tommilligan Jun 3, 2020
e237370
Update to 0.3.2
acmcarther Jun 3, 2020
6d07e1e
Resolve formatting changes in rust_binary and rust_library templates …
dfreese Jun 5, 2020
2e92246
Fix: Alias renamed dependencies in generated build rules. (#162)
Arm1stice Jun 8, 2020
bc739e7
Update to 0.3.3
acmcarther Jun 8, 2020
2451fbe
Use new cargo_build_script_run rule
illicitonion Jun 10, 2020
b588af0
Glob more sources
illicitonion Jun 10, 2020
e2cc36f
Bump rules_rust for examples
illicitonion Jun 10, 2020
ff20b0b
Use crate_name_sanitized
illicitonion Jun 10, 2020
f6ad8dd
Merge pull request #166 from illicitonion/build-script
damienmg Jun 10, 2020
de9b1a9
Fix some spelling and grammar errors in README (#169)
Jun 10, 2020
7273ab4
Bump example workspace to latest master (#168)
illicitonion Jun 12, 2020
d0ed12d
Add workspace-wide default for gen_buildrs (#167)
illicitonion Jun 12, 2020
cd57340
proc_macro_deps is its own attribute (#164)
illicitonion Jun 15, 2020
6e07deb
docs: minor README clarifications on genmode (#173)
gibfahn Jun 16, 2020
69784a0
Update to 0.3.4
acmcarther Jun 17, 2020
ad14d2b
Fix: Make crate license identification more robust (#174)
wcalandro Jun 17, 2020
24c311b
Update to 0.3.5
acmcarther Jun 17, 2020
a2115bb
Add build script dependencies on sys crates build scripts. (#170)
a1ph Jun 29, 2020
d966255
Add --output param specifying output folder for generated files. (#175)
boxdot Jun 29, 2020
de2b4f1
Tag all cargo-raze rules with "cargo-raze" tag. (#176)
a1ph Jun 29, 2020
99f9e37
Update to 0.3.6
acmcarther Jun 29, 2020
8ee049e
Support additional enviroment variable for build script (#180)
damienmg Jul 1, 2020
439f393
Update to 0.3.7
acmcarther Jul 5, 2020
5bd36b5
Handle proc macros in build dependencies (#182)
Jul 8, 2020
f77ba88
Update to 0.3.8
Jul 10, 2020
1185436
Add @generated signature to templates (#197)
atadau Aug 13, 2020
8b4c6b9
Emit crate_root with forward slashes on Windows (#200)
rickwebiii Aug 21, 2020
3cdb6e4
Update to 0.3.9
Aug 21, 2020
eac33e6
workspace_path can now act as a Bazel label within a Bazel workspace …
UebelAndre Aug 24, 2020
53fdc23
Generate valid Starlark files when Cargo.toml defines no dependencies…
UebelAndre Aug 24, 2020
e7253fe
Updated smoke-test.sh to generate a more up to date Bazel workspace f…
UebelAndre Aug 26, 2020
7b63f24
test: check that /examples has no changes (#199)
samschlegel Aug 27, 2020
a3c5c3f
Updated remote crates.bzl template to use 'maybe' and fixed Buildifie…
UebelAndre Aug 28, 2020
d76a21d
Update `output_buildfile_suffix` default to `BUILD.bazel` (#205)
UebelAndre Aug 28, 2020
f4fa736
Cleanups (#209)
UebelAndre Sep 8, 2020
f4d9072
Formalized 'load_settings' by moving it into the settings module (#213)
UebelAndre Sep 9, 2020
135354f
Optimized smoke test script (#214)
UebelAndre Sep 9, 2020
c446fbb
Improved tera error logs (#211)
UebelAndre Sep 9, 2020
2450b9a
Up to 0.5.0 [via publish-new-version.sh]
acmcarther Sep 15, 2020
fa1672c
Multi target support (#212)
UebelAndre Sep 16, 2020
69f45d0
Add publish-new-version.sh for pushing versions of the crate (#217)
acmcarther Sep 17, 2020
b4b8cfa
Added additional smoketests and improved testing speed (#224)
UebelAndre Sep 21, 2020
67b7fb5
Added support for custom registry url (#226)
UebelAndre Sep 21, 2020
e1c4d85
Pruned vendored examples (#225)
UebelAndre Sep 21, 2020
bad2c31
Change &String function parameters to &str
sitaktif Sep 24, 2020
b637e82
Merge pull request #228 from sitaktif/str-ref
smklein Sep 24, 2020
39786eb
Replaced strings with Path objects (#231)
UebelAndre Sep 25, 2020
5c8f45c
Added testing module (#230)
UebelAndre Sep 28, 2020
80474cd
Allow matching triples directly (#232)
sitaktif Sep 28, 2020
3cf55ae
Updated dependencies (#233)
UebelAndre Oct 8, 2020
48b53d8
fetch_metadata does not need '&mut self' (#239)
UebelAndre Oct 8, 2020
3454349
Update registry url (#238)
UebelAndre Oct 8, 2020
24c9d3a
Update smoketest (#237)
UebelAndre Oct 8, 2020
80332d9
Fixed rust-analyzer errors (#236)
UebelAndre Oct 8, 2020
fd59642
Updated dependencies (#235)
UebelAndre Oct 8, 2020
253a853
Record path to crate root for git deps (#246)
illicitonion Oct 12, 2020
35c4fef
build script was missing platform-specific deps (#243)
dae Oct 13, 2020
7ac629e
platform-specific aliases were missing (#244)
dae Oct 13, 2020
2d190e1
Added support for binary dependencies (#227)
UebelAndre Oct 13, 2020
8a093dc
Up to 0.6.0 [via publish-new-version.sh]
acmcarther Oct 13, 2020
aa4ec3b
Moved utility functions out of `bazel` and into `util` (#248)
UebelAndre Oct 14, 2020
05a45b9
Binary dependencies smoketest (#240)
UebelAndre Oct 14, 2020
02f4553
docs: update instructions for lockfile generation (#219)
sudoforge Oct 14, 2020
453e3e1
Flipped default of `incompatible_relative_workspace_path` to true (#204)
UebelAndre Oct 15, 2020
e1d3bfb
Update dependencies and use semver::Version directly (#253)
UebelAndre Oct 16, 2020
852a983
Moved `RazeError` into an `error` module (#251)
UebelAndre Oct 16, 2020
1c697be
support MSVC targets (#245)
dae Oct 16, 2020
97ac111
Up to 0.6.1 [via publish-new-version.sh]
acmcarther Oct 16, 2020
aebff2c
Updated README (#256)
UebelAndre Oct 16, 2020
61c19bb
Turned the `rendering` module into a directory that contains all rele…
UebelAndre Oct 17, 2020
59931ed
Moved components of the `planning` module into a directory (#258)
UebelAndre Oct 17, 2020
7cd1f6f
Split the `planning` module into multiple submodules (#257)
UebelAndre Oct 19, 2020
13e1be7
Gated loud output behind the `--verbose` flag. (#263)
UebelAndre Oct 19, 2020
a2e4037
Added warning for missing 'genmode' setting (#252)
UebelAndre Oct 20, 2020
27853e1
Some small cleanup (#264)
UebelAndre Oct 20, 2020
2e7f0d8
Made generated files more Buildifier compliant (#260)
UebelAndre Oct 21, 2020
afa031e
Only fetch checksums for binary dependencies in remote mode (#267)
UebelAndre Oct 24, 2020
7455a06
Update cfg-expr and crates-index dependencies (#266)
UebelAndre Oct 24, 2020
622b772
Always clean the "remote" output directory (#265)
UebelAndre Oct 28, 2020
dac8a76
Fix verbose flag by changing to bool (#271)
UebelAndre Oct 30, 2020
9248dc3
Cleanup: rustfmt and minor rename of tests modules (#275)
UebelAndre Nov 2, 2020
21157ed
[Lint] Change inline test texts to use `indoc!` (#272)
GregBowyer Nov 3, 2020
48fcf81
Moved template header into it's own file (#279)
UebelAndre Nov 4, 2020
4740ef2
Updated the bazel version and rules_rust hash used for smoketest (#278)
UebelAndre Nov 4, 2020
aa2e8a1
settings.index_url can now be a path on disk and fixed tests that rel…
UebelAndre Nov 4, 2020
06eaef1
Accept `[package.metadata.raze]`, superseding `[raze]` (#274)
wchargin Nov 4, 2020
cb9f85d
Add support for wasm32-wasi target. (#280)
PiotrSikora Nov 5, 2020
9e82b65
Allow raze settings to be expressed with SemVer (#127)
GregBowyer Nov 7, 2020
1b7e178
Up to 0.7.0 [via publish-new-version.sh]
Nov 7, 2020
19d7853
cli: implement `--version` (#283)
wchargin Nov 9, 2020
b3cdc85
Fixed regression in rendered templates (#290)
UebelAndre Nov 10, 2020
7c34eaa
add default_gen_buildrs to README (#291)
dae Nov 11, 2020
90f551d
Add support for aarch64-apple-darwin target. (#292)
PiotrSikora Nov 11, 2020
69b086a
Remove unnecessary test (#284)
UebelAndre Nov 12, 2020
a3c74e8
Added code-owners file (#293)
UebelAndre Nov 12, 2020
4eed19e
Add links to CargoContext (#281)
sitaktif Nov 12, 2020
fe8bca0
Workspace support (#276)
UebelAndre Nov 21, 2020
4d1721e
Small renaming and cleanup (#296)
UebelAndre Nov 23, 2020
9c81414
Workspace support examples (#277)
UebelAndre Nov 25, 2020
3359c69
Added the ability to customize the `rules_rust` workspace name. (#298)
UebelAndre Nov 25, 2020
f209e9f
Tests no longer require internet (#300)
UebelAndre Dec 3, 2020
8068784
Fix binary dependency aliases (#312)
UebelAndre Dec 5, 2020
d10b005
Updated dependencies (#315)
UebelAndre Dec 9, 2020
87a4928
Add data deps attrs to CrateDependencyContext (#311)
sitaktif Dec 10, 2020
0ca611b
Adds `--manifest-path` command line option (#301)
UebelAndre Dec 11, 2020
10ecc94
Addressed user feedback for cargo workspace support (#306)
UebelAndre Dec 11, 2020
eb59891
Disabled tools so rust-analyzer stops trying to parse this crate. (#317)
UebelAndre Dec 11, 2020
001dff3
Updated dependencies (#318)
UebelAndre Dec 11, 2020
06c3c46
support compile_data (#308)
dae Dec 12, 2020
52f20dd
Parse settings from Cargo metadata (#302)
UebelAndre Dec 15, 2020
3515a09
Added deprecation warnings (#303)
UebelAndre Dec 16, 2020
4b1bf22
Up to 0.8.0 [via publish-new-version.sh]
acmcarther Dec 18, 2020
4fed575
Cleaning up code owners file (#320)
UebelAndre Dec 18, 2020
eae84c3
Removed `dummy_injecting_metadata` in favor of a templated metadata d…
UebelAndre Dec 22, 2020
0026a7b
Removed `incompatible_relative_workspace_path` (#322)
UebelAndre Dec 22, 2020
d6cdbc0
Unknown fields will now cause failures (#329)
UebelAndre Dec 24, 2020
0c49c1f
Make crates.bzl public (#328)
UebelAndre Dec 29, 2020
9d01e89
Add experimental api `crate_deps` and `all_crate_deps` macro for gath…
UebelAndre Dec 29, 2020
e763292
`default_gen_buildrs` now defaults to `true` (#325)
UebelAndre Dec 29, 2020
8c96a39
Cargo raze can now be run from anywhere within a cargo workspace (#330)
UebelAndre Dec 29, 2020
6258c69
Fixed missing use of `rust_rules_workspace_name` setting in templates…
UebelAndre Dec 29, 2020
330fa0b
Fixed compile error (#334)
UebelAndre Dec 29, 2020
00fc4bb
Fixed a bug where export_files was being rendered into BUILD files it…
UebelAndre Dec 30, 2020
a7625b6
Updated dependencies (#336)
UebelAndre Jan 6, 2021
a242ae4
Experimental API: Added a `render_package_aliases` setting (#332)
UebelAndre Jan 6, 2021
b965e9a
Made comments compatible with rustdoc (#333)
UebelAndre Jan 6, 2021
3b0a7cb
Update comments on workspace_path (#338)
cceckman Jan 13, 2021
32e5c27
Added settings for adding additional content to `cargo_build_script` …
UebelAndre Jan 19, 2021
0cb6178
fix(subplanners): Match aliased dependencies by name and semver (#346)
Arm1stice Jan 19, 2021
1daa913
`package_aliases_dir` now defaults to `cargo` (#324)
UebelAndre Jan 19, 2021
6e3a811
Added `--generate-lockfile` for generating a new lockfile (#341)
UebelAndre Jan 19, 2021
16bea0e
Added support for a `CARGO` environment variable (#347)
UebelAndre Jan 19, 2021
97ec109
Rust library and binary dependencies are all sorted before rendering …
UebelAndre Jan 19, 2021
0d76371
Up to 0.9.0 [via publish-new-version.sh]
acmcarther Jan 19, 2021
f350c19
Fixed argument parsing when used as a cargo subcommand (#349)
UebelAndre Jan 22, 2021
c293230
Up to 0.9.1 [via publish-new-version.sh]
acmcarther Jan 22, 2021
4779bd5
Restructured project to be buildable with Bazel (#340)
UebelAndre Jan 22, 2021
8e3b6a8
Updated dependencies (#350)
UebelAndre Jan 23, 2021
356451e
Add initial bazelci/presubmit.yml (#352)
acmcarther Jan 25, 2021
4c84f95
Add github actions for cargo-based builds (#359)
Feb 3, 2021
f5f9bf2
Fixed dev dependency aliases (#358)
UebelAndre Feb 3, 2021
7119e96
update publish new version to avoid unbound variables
Feb 4, 2021
eee9428
Up to 0.9.2 [via publish-new-version.sh]
Feb 4, 2021
138656a
Fix clippy lints and enable clippy in CI. (#363)
Feb 9, 2021
6c54759
Replaced `@bazel_tools//src/conditions/...` with `@platforms//...` (#…
UebelAndre Feb 12, 2021
bd6ad86
`rust_rules_workspace_name` now defaults to `rules_rust` (#323)
UebelAndre Feb 19, 2021
efc3a83
Up to 0.10.0 [via publish-new-version.sh]
Feb 20, 2021
3394691
Handle buildifier `out-of-order-load` by moving load statements add i…
UebelAndre Feb 20, 2021
302f6da
Update dependencies in examples to fix windows compatibility (#370)
UebelAndre Feb 20, 2021
f8162dd
Fixed missing "CARGO" environment variable uses (#371)
UebelAndre Feb 20, 2021
9ecec16
Cargo raze tests now use cargo via the toolchain. (#369)
UebelAndre Feb 20, 2021
0cbe0ef
Prefixed 3rd party dependencies with `cargo_raze__` and use rules_rus…
UebelAndre Feb 20, 2021
fd33d67
Fixed windows bug in examples repository rule
UebelAndre Feb 8, 2021
c965cee
Merge remote-tracking branch 'raze/main' into cargo-raze
UebelAndre Feb 20, 2021
f5dd0ac
Ignore cargo_raze workspace
UebelAndre Feb 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
docs
examples
examples/cargo_manifest_dir/external_crate
cargo/cargo_raze
19 changes: 19 additions & 0 deletions cargo/cargo_raze/.bazelci/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
buildifier: latest
tasks:
# TODO(acmcarther): Add check to verify that examples are up-to-date.
ubuntu1804:
build_targets:
- "..."
test_targets:
- "..."
windows:
build_targets:
- "..."
test_targets:
- "..."
macos:
build_targets:
- "..."
test_targets:
- "..."
1 change: 1 addition & 0 deletions cargo/cargo_raze/.bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
examples
1 change: 1 addition & 0 deletions cargo/cargo_raze/.bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.0.0
88 changes: 88 additions & 0 deletions cargo/cargo_raze/.github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
on: [push, pull_request]

name: CI

jobs:
check:
name: Check
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- 1.45.0
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --manifest-path impl/Cargo.toml

test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
# 1.45 triggers bug in parse_raze_settings_any_package
# with settings_packages.len() == 0
- 1.46.0
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path impl/Cargo.toml

fmt:
name: Rustfmt
runs-on: ubuntu-latest
strategy:
matrix:
rust:
# The rustfmt.toml appears to use nightly only features
- nightly-2021-01-31
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --manifest-path impl/Cargo.toml --all -- --check

clippy:
name: Clippy
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- 1.45.0
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: --manifest-path impl/Cargo.toml -- -D warnings
2 changes: 2 additions & 0 deletions cargo/cargo_raze/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**/bazel-*
**/target/
43 changes: 43 additions & 0 deletions cargo/cargo_raze/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
dist: trusty
sudo: required
language: rust
addons:
apt:
sources:
- george-edison55-precise-backports
packages:
- cmake-data
- cmake

# Thanks, github.com/pubref/rules_protobuf!
# https://github.com/bazelbuild/bazel/issues/29#issuecomment-271428146
before_install:
- OS=linux
- ARCH=x86_64
- V="$(cat ./.bazelversion)"
- GH_BASE="https://github.com/bazelbuild/bazel/releases/download/$V"
- GH_ARTIFACT="bazel-$V-installer-$OS-$ARCH.sh"
- URL="$GH_BASE/$GH_ARTIFACT"
- echo $URL
- wget -O install.sh $URL
- chmod +x install.sh
- ./install.sh --user
- rm -f install.sh

rust:
- stable
matrix:
allow_failures:
- rust: nightly

script:
- bazel build //... && bazel test //...
# Check that /examples has no changes
- |
bazel run //tools:examples_raze
if [ -n "$(git status --porcelain)" ]; then
echo '/examples is out of date. Please rerun all tests and commit the changes generated from this command' >&2
exit 1
fi
# Run Buildifier as a linter step
- bazel run //:buildifier_check
39 changes: 39 additions & 0 deletions cargo/cargo_raze/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
load("@com_github_bazelbuild_buildtools//buildifier:def.bzl", "buildifier")

alias(
name = "cargo_raze",
actual = "//impl:cargo_raze",
visibility = ["//visibility:public"],
)

alias(
name = "cargo_raze_bin",
actual = "//impl:cargo_raze_bin",
visibility = ["//visibility:public"],
)

alias(
name = "bootstrap",
actual = "//tools:bootstrap",
visibility = ["//visibility:private"],
)

alias(
name = "publish_new_version",
actual = "//tools:publish_new_version",
visibility = ["//visibility:private"],
)

test_suite(
name = "examples_tests",
tests = [
"@cargo_raze_examples//tests:examples_tests",
],
visibility = ["//visibility:private"],
)

buildifier(
name = "buildifier_check",
mode = "check",
visibility = ["//visibility:private"],
)
3 changes: 3 additions & 0 deletions cargo/cargo_raze/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Code owners of cargo-raze

* @acmcarther
23 changes: 23 additions & 0 deletions cargo/cargo_raze/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# How to Contribute

We'd love to accept your patches and contributions to this project. There are
just a few small guidelines you need to follow.

## Contributor License Agreement

Contributions to this project must be accompanied by a Contributor License
Agreement. You (or your employer) retain the copyright to your contribution;
this simply gives us permission to use and redistribute your contributions as
part of the project. Head over to <https://cla.developers.google.com/> to see
your current agreements on file or to sign a new one.

You generally only need to submit a CLA once, so if you've already submitted one
(even if it was for a different project), you probably don't need to do it
again.

## Code reviews

All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
information on using pull requests.
Loading