diff --git a/.bazelrc b/.bazelrc index 38ca0fbf..d1dc477e 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,2 +1,2 @@ # Force Bazel to use --target=wasm32-wasi -build --platforms=@io_bazel_rules_rust//rust/platform:wasi +build --platforms=@rules_rust//rust/platform:wasi diff --git a/.bazelversion b/.bazelversion index 7c69a55d..fcdb2e10 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -3.7.0 +4.0.0 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d36fd619..7065c5a2 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -45,42 +45,40 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - - name: Cache - uses: actions/cache@v2 - with: - path: | - ~/.cache/bazel - ~/.cache/bazelisk - ~/.cargo/.crates.toml - ~/.cargo/.crates2.json - ~/.cargo/bin - ~/.cargo/registry - key: ${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} - - - name: Build (wasm32-unknown-unknown) - run: bazelisk --bazelrc=/dev/null build --platforms=@io_bazel_rules_rust//rust/platform:wasm //... - - - name: Build (wasm32-wasi) - run: bazelisk --bazelrc=/dev/null build --platforms=@io_bazel_rules_rust//rust/platform:wasi //... - - - name: Format (buildifier) - run: | - GO111MODULE=on go get -u github.com/bazelbuild/buildtools/buildifier@3.4.0 - export PATH=$PATH:$(go env GOPATH)/bin - buildifier -mode=check WORKSPACE - buildifier -mode=check BUILD - buildifier -mode=check examples/BUILD - - - name: Format (cargo raze) - run: | - cargo install cargo-raze --version 0.7.0 - cp -p bazel/cargo/Cargo.lock . - rm -rf bazel/cargo/ - cargo raze --output=bazel/cargo - mv Cargo.lock bazel/cargo/ - git diff --exit-code + - uses: actions/checkout@v2 + + - name: Cache + uses: actions/cache@v2 + with: + path: | + ~/.cache/bazel + ~/.cache/bazelisk + ~/.cargo/.crates.toml + ~/.cargo/.crates2.json + ~/.cargo/bin + ~/.cargo/registry + key: ${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.raze.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} + + - name: Build (wasm32-unknown-unknown) + run: bazelisk --noworkspace_rc build --platforms=@rules_rust//rust/platform:wasm //... + + - name: Build (wasm32-wasi) + run: bazelisk --noworkspace_rc build --platforms=@rules_rust//rust/platform:wasi //... + + - name: Format (buildifier) + run: | + GO111MODULE=on go get -u github.com/bazelbuild/buildtools/buildifier@3.4.0 + export PATH=$PATH:$(go env GOPATH)/bin + buildifier -mode=check WORKSPACE + buildifier -mode=check BUILD + buildifier -mode=check examples/BUILD + + - name: Format (cargo raze) + run: | + mv bazel/cargo/Cargo.raze.lock Cargo.lock + bazelisk --noworkspace_rc run @cargo_raze//:raze -- --manifest-path=$(pwd)/Cargo.toml + mv Cargo.lock bazel/cargo/Cargo.raze.lock + git diff --exit-code stable: runs-on: ubuntu-latest @@ -197,14 +195,8 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Run cargo outdated - run: cargo outdated --root-deps-only --exit-code 1 - - - name: Check freshness of bazel/cargo/Cargo.lock - run: | - cargo generate-lockfile - mv Cargo.lock bazel/cargo/ - git diff --exit-code + - name: Run cargo outdated + run: cargo outdated --root-deps-only --exit-code 1 audit: runs-on: ubuntu-latest @@ -212,87 +204,7 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Run cargo audit - run: | - cp -p bazel/cargo/Cargo.lock . - cargo audit - - docs: - name: "Docs" - runs-on: ubuntu-latest - steps: - - name: "Checkout" - uses: actions/checkout@v2 - - - name: "Install Rust" - run: | - rustup update stable - rustup default stable - rustc -vV - - - name: "Install 'wasm32-unknown-unknown'" - run: | - rustup target add wasm32-unknown-unknown - - - name: "Build docs" - run: | - cargo doc --no-deps --target=wasm32-unknown-unknown - - - name: "Publish GitHub Pages" - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/proxy-wasm-spec-0.1.0' }} - run: | - git fetch origin gh-pages # By default, 'actions/checkout' only fetches branch of the commit. - git worktree add /tmp/rustdoc gh-pages # Checkout 'gh-pages' branch into '/tmp/rustdoc' - rm -rf /tmp/rustdoc/* # Remove all files (except for hidden files, such as .git directory) - cp -rp target/wasm32-unknown-unknown/doc/* /tmp/rustdoc/ - cd /tmp/rustdoc - git add --all # This adds, modifies, and removes index entries to match the working tree. - if ! git diff --cached --exit-code ; then # There might be no changes to commit - GIT_AUTHOR_NAME="${{ github.event.head_commit.author.name }}" \ - GIT_AUTHOR_EMAIL="${{ github.event.head_commit.author.email }}" \ - GIT_AUTHOR_DATE="${{ github.event.head_commit.timestamp }}" \ - GIT_COMMITTER_NAME="${{ github.event.head_commit.committer.name }}" \ - GIT_COMMITTER_EMAIL="${{ github.event.head_commit.committer.email }}" \ - GIT_COMMITTER_DATE="${{ github.event.head_commit.timestamp }}" \ - git commit -m "${{ github.event.head_commit.message }}" - git push origin gh-pages - else - echo "There are no changes to GitHub Pages." - fi - git worktree remove --force /tmp/rustdoc # Remove the working tree. - - publish: - name: "Publish Crate" - if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} - needs: - - stable - - nightly - runs-on: ubuntu-latest - steps: - - name: "Checkout" - uses: actions/checkout@v2 - - - name: "Install Rust" - run: | - rustup update stable - rustup default stable - rustc -vV - - - name: "Install 'wasm32-unknown-unknown'" - run: | - rustup target add wasm32-unknown-unknown - - - name: "Check version" - run: | - version="$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | .version')" - tag="${GITHUB_REF##*/}" - if [[ "$version" != "$tag" ]]; then - echo "Package version according to Cargo.toml ($version) is different from the Git tag ($tag). Did you forget to bump the version in Cargo.toml ?" - exit 1 - fi - - - name: "Publish" - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} - run: | - cargo publish --target=wasm32-unknown-unknown + - name: Run cargo audit + run: | + cp -p bazel/cargo/Cargo.raze.lock . + cargo audit diff --git a/BUILD b/BUILD index f6296901..8d7f5a11 100644 --- a/BUILD +++ b/BUILD @@ -1,4 +1,4 @@ -load("@io_bazel_rules_rust//rust:rust.bzl", "rust_library") +load("@rules_rust//rust:rust.bzl", "rust_library") rust_library( name = "proxy_wasm_experimental", diff --git a/Cargo.toml b/Cargo.toml index df318dd8..bcf1185f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ edition = "2018" wee-alloc = ["wee_alloc"] [dependencies] -hashbrown = "0.9" +hashbrown = "0.11" log = "0.4" wee_alloc = { version = "0.4", optional = true } @@ -31,18 +31,10 @@ opt-level = 3 panic = "abort" [package.metadata.raze] +package_aliases_dir = "bazel/cargo" workspace_path = "//bazel/cargo" genmode = "Remote" -[package.metadata.raze.crates.getrandom.'=0.2.0'] -gen_buildrs = true - -[package.metadata.raze.crates.libc.'=0.2.85'] -gen_buildrs = true - -[package.metadata.raze.crates.log.'=0.4.14'] -gen_buildrs = true - [[example]] name = "hello_world" path = "examples/hello_world.rs" diff --git a/README.md b/README.md index 2e6d7eb9..f7f0c023 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,6 @@ When updating dependencies, you need to regenerate Bazel `BUILD` files to match updated `Cargo.toml`: ``` -cargo install cargo-raze --version 0.7.0 -rm -rf bazel/cargo/ -cargo generate-lockfile -cargo raze --output=bazel/cargo -mv Cargo.lock bazel/cargo/ +cargo install cargo-raze --version 0.11.0 +cargo raze --generate-lockfile ``` diff --git a/WORKSPACE b/WORKSPACE index 4261aeed..d409f914 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -7,3 +7,23 @@ proxy_wasm_rust_sdk_repositories() load("@proxy_wasm_rust_sdk//bazel:dependencies.bzl", "proxy_wasm_rust_sdk_dependencies") proxy_wasm_rust_sdk_dependencies() + +# Needed only when using @cargo_raze//:raze to generate BUILD files in //bazel/cargo. + +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +http_archive( + name = "cargo_raze", + sha256 = "73c5cea8ad3f4ef7788116d491070eeb27819fe0f923dbb6f451f69dd5fa752c", + # v0.11.0 with a few Bazel fixes. + strip_prefix = "cargo-raze-7614085d2748e55ad3032c9b1dca78f6011cb40e", + url = "https://github.com/google/cargo-raze/archive/7614085d2748e55ad3032c9b1dca78f6011cb40e.tar.gz", +) + +load("@cargo_raze//:repositories.bzl", "cargo_raze_repositories") + +cargo_raze_repositories() + +load("@cargo_raze//:transitive_deps.bzl", "cargo_raze_transitive_deps") + +cargo_raze_transitive_deps() diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel index 161ba0f4..c82163ac 100644 --- a/bazel/cargo/BUILD.bazel +++ b/bazel/cargo/BUILD.bazel @@ -50,7 +50,7 @@ alias( alias( name = "hashbrown", - actual = "@raze__hashbrown__0_9_1//:hashbrown", + actual = "@raze__hashbrown__0_11_2//:hashbrown", tags = [ "cargo-raze", "manual", @@ -68,9 +68,17 @@ alias( alias( name = "version_sync", - actual = "@raze__version_sync__0_9_1//:version_sync", + actual = "@raze__version_sync__0_9_2//:version_sync", tags = [ "cargo-raze", "manual", ], ) + +# Export file for Stardoc support +exports_files( + [ + "crates.bzl", + ], + visibility = ["//visibility:public"], +) diff --git a/bazel/cargo/Cargo.lock b/bazel/cargo/Cargo.lock deleted file mode 100644 index 3ce9e842..00000000 --- a/bazel/cargo/Cargo.lock +++ /dev/null @@ -1,396 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -[[package]] -name = "ahash" -version = "0.4.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "739f4a8db6605981345c5654f3a85b056ce52f37a39d34da03f25bf2151ea16e" - -[[package]] -name = "autocfg" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" - -[[package]] -name = "bitflags" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" - -[[package]] -name = "bstr" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "473fc6b38233f9af7baa94fb5852dca389e3d95b8e21c8e3719301462c5d9faf" -dependencies = [ - "lazy_static", - "memchr", - "regex-automata", -] - -[[package]] -name = "byteorder" -version = "1.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae44d1a3d5a19df61dd0c8beb138458ac2a53a7ac09eba97d55592540004306b" - -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" - -[[package]] -name = "cfg-if" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" - -[[package]] -name = "chrono" -version = "0.4.19" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" -dependencies = [ - "libc", - "num-integer", - "num-traits", - "time", - "winapi", -] - -[[package]] -name = "form_urlencoded" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ece68d15c92e84fa4f19d3780f1294e5ca82a78a6d515f1efaabcc144688be00" -dependencies = [ - "matches", - "percent-encoding", -] - -[[package]] -name = "getrandom" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8" -dependencies = [ - "cfg-if 1.0.0", - "libc", - "wasi", -] - -[[package]] -name = "hashbrown" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" -dependencies = [ - "ahash", -] - -[[package]] -name = "idna" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "02e2673c30ee86b5b96a9cb52ad15718aa1f966f5ab9ad54a8b95d5ca33120a9" -dependencies = [ - "matches", - "unicode-bidi", - "unicode-normalization", -] - -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" - -[[package]] -name = "libc" -version = "0.2.85" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ccac4b00700875e6a07c6cde370d44d32fa01c5a65cdd2fca6858c479d28bb3" - -[[package]] -name = "log" -version = "0.4.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" -dependencies = [ - "cfg-if 1.0.0", -] - -[[package]] -name = "matches" -version = "0.1.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08" - -[[package]] -name = "memchr" -version = "2.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" - -[[package]] -name = "memory_units" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8452105ba047068f40ff7093dd1d9da90898e63dd61736462e9cdda6a90ad3c3" - -[[package]] -name = "num-integer" -version = "0.1.44" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db" -dependencies = [ - "autocfg", - "num-traits", -] - -[[package]] -name = "num-traits" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290" -dependencies = [ - "autocfg", -] - -[[package]] -name = "percent-encoding" -version = "2.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" - -[[package]] -name = "proc-macro2" -version = "1.0.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71" -dependencies = [ - "unicode-xid", -] - -[[package]] -name = "proxy-wasm-experimental" -version = "0.0.8" -dependencies = [ - "bstr", - "cfg-if 1.0.0", - "chrono", - "getrandom", - "hashbrown", - "log", - "version-sync", - "wee_alloc", -] - -[[package]] -name = "pulldown-cmark" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca36dea94d187597e104a5c8e4b07576a8a45aa5db48a65e12940d3eb7461f55" -dependencies = [ - "bitflags", - "memchr", - "unicase", -] - -[[package]] -name = "quote" -version = "1.0.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "991431c3519a3f36861882da93630ce66b52918dcf1b8e2fd66b397fc96f28df" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "regex" -version = "1.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9251239e129e16308e70d853559389de218ac275b515068abc96829d05b948a" -dependencies = [ - "regex-syntax", -] - -[[package]] -name = "regex-automata" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae1ded71d66a4a97f5e961fd0cb25a5f366a42a41570d16a763a69c092c26ae4" -dependencies = [ - "byteorder", -] - -[[package]] -name = "regex-syntax" -version = "0.6.22" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5eb417147ba9860a96cfe72a0b93bf88fee1744b5636ec99ab20c1aa9376581" - -[[package]] -name = "semver-parser" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b46e1121e8180c12ff69a742aabc4f310542b6ccb69f1691689ac17fdf8618aa" - -[[package]] -name = "serde" -version = "1.0.123" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92d5161132722baa40d802cc70b15262b98258453e85e5d1d365c757c73869ae" - -[[package]] -name = "syn" -version = "1.0.60" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c700597eca8a5a762beb35753ef6b94df201c81cca676604f547495a0d7f0081" -dependencies = [ - "proc-macro2", - "quote", - "unicode-xid", -] - -[[package]] -name = "time" -version = "0.1.43" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438" -dependencies = [ - "libc", - "winapi", -] - -[[package]] -name = "tinyvec" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "317cca572a0e89c3ce0ca1f1bdc9369547fe318a683418e42ac8f59d14701023" -dependencies = [ - "tinyvec_macros", -] - -[[package]] -name = "tinyvec_macros" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" - -[[package]] -name = "toml" -version = "0.5.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa" -dependencies = [ - "serde", -] - -[[package]] -name = "unicase" -version = "2.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" -dependencies = [ - "version_check", -] - -[[package]] -name = "unicode-bidi" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" -dependencies = [ - "matches", -] - -[[package]] -name = "unicode-normalization" -version = "0.1.16" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a13e63ab62dbe32aeee58d1c5408d35c36c392bba5d9d3142287219721afe606" -dependencies = [ - "tinyvec", -] - -[[package]] -name = "unicode-xid" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" - -[[package]] -name = "url" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5909f2b0817350449ed73e8bcd81c8c3c8d9a7a5d8acba4b27db277f1868976e" -dependencies = [ - "form_urlencoded", - "idna", - "matches", - "percent-encoding", -] - -[[package]] -name = "version-sync" -version = "0.9.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7b77d2a6f56988f7bb54102fe73ab963df4e7374b58298a7efa1361f681e0e2" -dependencies = [ - "proc-macro2", - "pulldown-cmark", - "regex", - "semver-parser", - "syn", - "toml", - "url", -] - -[[package]] -name = "version_check" -version = "0.9.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed" - -[[package]] -name = "wasi" -version = "0.10.2+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" - -[[package]] -name = "wee_alloc" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbb3b5a6b2bb17cb6ad44a2e68a43e8d2722c997da10e928665c72ec6c0a0b8e" -dependencies = [ - "cfg-if 0.1.10", - "libc", - "memory_units", - "winapi", -] - -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index 895acd87..7a6d7845 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -13,12 +13,12 @@ def raze_fetch_remote_crates(): """This function defines a collection of repos and should be called in a WORKSPACE file""" maybe( http_archive, - name = "raze__ahash__0_4_7", - url = "https://crates.io/api/v1/crates/ahash/0.4.7/download", + name = "raze__ahash__0_7_2", + url = "https://crates.io/api/v1/crates/ahash/0.7.2/download", type = "tar.gz", - sha256 = "739f4a8db6605981345c5654f3a85b056ce52f37a39d34da03f25bf2151ea16e", - strip_prefix = "ahash-0.4.7", - build_file = Label("//bazel/cargo/remote:BUILD.ahash-0.4.7.bazel"), + sha256 = "7f200cbb1e856866d9eade941cf3aa0c5d7dd36f74311c4273b494f4ef036957", + strip_prefix = "ahash-0.7.2", + build_file = Label("//bazel/cargo/remote:BUILD.ahash-0.7.2.bazel"), ) maybe( @@ -103,12 +103,12 @@ def raze_fetch_remote_crates(): maybe( http_archive, - name = "raze__hashbrown__0_9_1", - url = "https://crates.io/api/v1/crates/hashbrown/0.9.1/download", + name = "raze__hashbrown__0_11_2", + url = "https://crates.io/api/v1/crates/hashbrown/0.11.2/download", type = "tar.gz", - sha256 = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04", - strip_prefix = "hashbrown-0.9.1", - build_file = Label("//bazel/cargo/remote:BUILD.hashbrown-0.9.1.bazel"), + sha256 = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e", + strip_prefix = "hashbrown-0.11.2", + build_file = Label("//bazel/cargo/remote:BUILD.hashbrown-0.11.2.bazel"), ) maybe( @@ -133,12 +133,12 @@ def raze_fetch_remote_crates(): maybe( http_archive, - name = "raze__libc__0_2_85", - url = "https://crates.io/api/v1/crates/libc/0.2.85/download", + name = "raze__libc__0_2_91", + url = "https://crates.io/api/v1/crates/libc/0.2.91/download", type = "tar.gz", - sha256 = "7ccac4b00700875e6a07c6cde370d44d32fa01c5a65cdd2fca6858c479d28bb3", - strip_prefix = "libc-0.2.85", - build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.85.bazel"), + sha256 = "8916b1f6ca17130ec6568feccee27c156ad12037880833a3b842a823236502e7", + strip_prefix = "libc-0.2.91", + build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.91.bazel"), ) maybe( @@ -191,6 +191,16 @@ def raze_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.num-traits-0.2.14.bazel"), ) + maybe( + http_archive, + name = "raze__once_cell__1_7_2", + url = "https://crates.io/api/v1/crates/once_cell/1.7.2/download", + type = "tar.gz", + sha256 = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3", + strip_prefix = "once_cell-1.7.2", + build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.7.2.bazel"), + ) + maybe( http_archive, name = "raze__percent_encoding__2_1_0", @@ -203,22 +213,22 @@ def raze_fetch_remote_crates(): maybe( http_archive, - name = "raze__proc_macro2__1_0_24", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.24/download", + name = "raze__proc_macro2__1_0_26", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.26/download", type = "tar.gz", - sha256 = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71", - strip_prefix = "proc-macro2-1.0.24", - build_file = Label("//bazel/cargo/remote:BUILD.proc-macro2-1.0.24.bazel"), + sha256 = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec", + strip_prefix = "proc-macro2-1.0.26", + build_file = Label("//bazel/cargo/remote:BUILD.proc-macro2-1.0.26.bazel"), ) maybe( http_archive, - name = "raze__pulldown_cmark__0_7_2", - url = "https://crates.io/api/v1/crates/pulldown-cmark/0.7.2/download", + name = "raze__pulldown_cmark__0_8_0", + url = "https://crates.io/api/v1/crates/pulldown-cmark/0.8.0/download", type = "tar.gz", - sha256 = "ca36dea94d187597e104a5c8e4b07576a8a45aa5db48a65e12940d3eb7461f55", - strip_prefix = "pulldown-cmark-0.7.2", - build_file = Label("//bazel/cargo/remote:BUILD.pulldown-cmark-0.7.2.bazel"), + sha256 = "ffade02495f22453cd593159ea2f59827aae7f53fa8323f756799b670881dcf8", + strip_prefix = "pulldown-cmark-0.8.0", + build_file = Label("//bazel/cargo/remote:BUILD.pulldown-cmark-0.8.0.bazel"), ) maybe( @@ -303,12 +313,12 @@ def raze_fetch_remote_crates(): maybe( http_archive, - name = "raze__tinyvec__1_1_1", - url = "https://crates.io/api/v1/crates/tinyvec/1.1.1/download", + name = "raze__tinyvec__1_2_0", + url = "https://crates.io/api/v1/crates/tinyvec/1.2.0/download", type = "tar.gz", - sha256 = "317cca572a0e89c3ce0ca1f1bdc9369547fe318a683418e42ac8f59d14701023", - strip_prefix = "tinyvec-1.1.1", - build_file = Label("//bazel/cargo/remote:BUILD.tinyvec-1.1.1.bazel"), + sha256 = "5b5220f05bb7de7f3f53c7c065e1199b3172696fe2db9f9c4d8ad9b4ee74c342", + strip_prefix = "tinyvec-1.2.0", + build_file = Label("//bazel/cargo/remote:BUILD.tinyvec-1.2.0.bazel"), ) maybe( @@ -343,22 +353,22 @@ def raze_fetch_remote_crates(): maybe( http_archive, - name = "raze__unicode_bidi__0_3_4", - url = "https://crates.io/api/v1/crates/unicode-bidi/0.3.4/download", + name = "raze__unicode_bidi__0_3_5", + url = "https://crates.io/api/v1/crates/unicode-bidi/0.3.5/download", type = "tar.gz", - sha256 = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5", - strip_prefix = "unicode-bidi-0.3.4", - build_file = Label("//bazel/cargo/remote:BUILD.unicode-bidi-0.3.4.bazel"), + sha256 = "eeb8be209bb1c96b7c177c7420d26e04eccacb0eeae6b980e35fcb74678107e0", + strip_prefix = "unicode-bidi-0.3.5", + build_file = Label("//bazel/cargo/remote:BUILD.unicode-bidi-0.3.5.bazel"), ) maybe( http_archive, - name = "raze__unicode_normalization__0_1_16", - url = "https://crates.io/api/v1/crates/unicode-normalization/0.1.16/download", + name = "raze__unicode_normalization__0_1_17", + url = "https://crates.io/api/v1/crates/unicode-normalization/0.1.17/download", type = "tar.gz", - sha256 = "a13e63ab62dbe32aeee58d1c5408d35c36c392bba5d9d3142287219721afe606", - strip_prefix = "unicode-normalization-0.1.16", - build_file = Label("//bazel/cargo/remote:BUILD.unicode-normalization-0.1.16.bazel"), + sha256 = "07fbfce1c8a97d547e8b5334978438d9d6ec8c20e38f56d4a4374d181493eaef", + strip_prefix = "unicode-normalization-0.1.17", + build_file = Label("//bazel/cargo/remote:BUILD.unicode-normalization-0.1.17.bazel"), ) maybe( @@ -373,32 +383,32 @@ def raze_fetch_remote_crates(): maybe( http_archive, - name = "raze__url__2_2_0", - url = "https://crates.io/api/v1/crates/url/2.2.0/download", + name = "raze__url__2_2_1", + url = "https://crates.io/api/v1/crates/url/2.2.1/download", type = "tar.gz", - sha256 = "5909f2b0817350449ed73e8bcd81c8c3c8d9a7a5d8acba4b27db277f1868976e", - strip_prefix = "url-2.2.0", - build_file = Label("//bazel/cargo/remote:BUILD.url-2.2.0.bazel"), + sha256 = "9ccd964113622c8e9322cfac19eb1004a07e636c545f325da085d5cdde6f1f8b", + strip_prefix = "url-2.2.1", + build_file = Label("//bazel/cargo/remote:BUILD.url-2.2.1.bazel"), ) maybe( http_archive, - name = "raze__version_sync__0_9_1", - url = "https://crates.io/api/v1/crates/version-sync/0.9.1/download", + name = "raze__version_sync__0_9_2", + url = "https://crates.io/api/v1/crates/version-sync/0.9.2/download", type = "tar.gz", - sha256 = "c7b77d2a6f56988f7bb54102fe73ab963df4e7374b58298a7efa1361f681e0e2", - strip_prefix = "version-sync-0.9.1", - build_file = Label("//bazel/cargo/remote:BUILD.version-sync-0.9.1.bazel"), + sha256 = "7cb94ca10ca0cf44f5d926ac977f0cac2d13e9789aa4bbe9d9388de445e61028", + strip_prefix = "version-sync-0.9.2", + build_file = Label("//bazel/cargo/remote:BUILD.version-sync-0.9.2.bazel"), ) maybe( http_archive, - name = "raze__version_check__0_9_2", - url = "https://crates.io/api/v1/crates/version_check/0.9.2/download", + name = "raze__version_check__0_9_3", + url = "https://crates.io/api/v1/crates/version_check/0.9.3/download", type = "tar.gz", - sha256 = "b5a972e5669d67ba988ce3dc826706fb0a8b01471c088cb0b6110b805cc36aed", - strip_prefix = "version_check-0.9.2", - build_file = Label("//bazel/cargo/remote:BUILD.version_check-0.9.2.bazel"), + sha256 = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe", + strip_prefix = "version_check-0.9.3", + build_file = Label("//bazel/cargo/remote:BUILD.version_check-0.9.3.bazel"), ) maybe( diff --git a/bazel/cargo/remote/BUILD.ahash-0.7.2.bazel b/bazel/cargo/remote/BUILD.ahash-0.7.2.bazel new file mode 100644 index 00000000..2228b82e --- /dev/null +++ b/bazel/cargo/remote/BUILD.ahash-0.7.2.bazel @@ -0,0 +1,162 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "ahash_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.7.2", + visibility = ["//visibility:private"], + deps = [ + "@raze__version_check__0_9_3//:version_check", + ] + selects.with_or({ + # cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi")) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(not(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))) + ( + "@rules_rust//rust/platform:wasm32-unknown-unknown", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "ahash" with type "bench" omitted + +# Unsupported target "map" with type "bench" omitted + +rust_library( + name = "ahash", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.7.2", + # buildifier: leave-alone + deps = [ + ":ahash_build_script", + ] + selects.with_or({ + # cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi")) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@raze__getrandom__0_2_2//:getrandom", + "@raze__once_cell__1_7_2//:once_cell", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(not(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))) + ( + "@rules_rust//rust/platform:wasm32-unknown-unknown", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "bench" with type "test" omitted + +# Unsupported target "map_tests" with type "test" omitted + +# Unsupported target "nopanic" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel index e7de20ab..22a819b6 100644 --- a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel +++ b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -45,6 +45,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel b/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel index f83a025b..2ff7b855 100644 --- a/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel +++ b/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,8 +29,36 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "bitflags_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.2.1", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "bitflags", @@ -40,6 +68,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -51,5 +80,6 @@ rust_library( version = "1.2.1", # buildifier: leave-alone deps = [ + ":bitflags_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.bstr-0.2.14.bazel b/bazel/cargo/remote/BUILD.bstr-0.2.14.bazel index 74365876..cf8877f5 100644 --- a/bazel/cargo/remote/BUILD.bstr-0.2.14.bazel +++ b/bazel/cargo/remote/BUILD.bstr-0.2.14.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -58,6 +58,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel b/bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel index 7913c3eb..558ef860 100644 --- a/bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel +++ b/bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel index 6e3db87e..c921ef91 100644 --- a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.chrono-0.4.19.bazel b/bazel/cargo/remote/BUILD.chrono-0.4.19.bazel index 7420c4cc..e7f7c763 100644 --- a/bazel/cargo/remote/BUILD.chrono-0.4.19.bazel +++ b/bazel/cargo/remote/BUILD.chrono-0.4.19.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -50,6 +50,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -61,22 +62,22 @@ rust_library( version = "0.4.19", # buildifier: leave-alone deps = [ - "@raze__libc__0_2_85//:libc", + "@raze__libc__0_2_91//:libc", "@raze__num_integer__0_1_44//:num_integer", "@raze__num_traits__0_2_14//:num_traits", "@raze__time__0_1_43//:time", ] + selects.with_or({ # cfg(all(target_arch = "wasm32", not(any(target_os = "emscripten", target_os = "wasi")))) ( - "@io_bazel_rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-unknown-unknown", ): [ ], "//conditions:default": [], }) + selects.with_or({ # cfg(windows) ( - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ "@raze__winapi__0_3_9//:winapi", ], diff --git a/bazel/cargo/remote/BUILD.form_urlencoded-1.0.0.bazel b/bazel/cargo/remote/BUILD.form_urlencoded-1.0.0.bazel index e4127f8a..bfa6b81d 100644 --- a/bazel/cargo/remote/BUILD.form_urlencoded-1.0.0.bazel +++ b/bazel/cargo/remote/BUILD.form_urlencoded-1.0.0.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel b/bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel index 0bdc50a2..ae4616f0 100644 --- a/bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel +++ b/bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,10 +29,73 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "mod" with type "bench" omitted +cargo_build_script( + name = "getrandom_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.2", + visibility = ["//visibility:private"], + deps = [ + ] + selects.with_or({ + # cfg(all(target_arch = "wasm32", target_os = "unknown")) + ( + "@rules_rust//rust/platform:wasm32-unknown-unknown", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(target_os = "wasi") + ( + "@rules_rust//rust/platform:wasm32-wasi", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(unix) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }), +) -# Unsupported target "build-script-build" with type "custom-build" omitted +# Unsupported target "mod" with type "bench" omitted rust_library( name = "getrandom", @@ -43,6 +106,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -54,18 +118,19 @@ rust_library( version = "0.2.2", # buildifier: leave-alone deps = [ + ":getrandom_build_script", "@raze__cfg_if__1_0_0//:cfg_if", ] + selects.with_or({ # cfg(all(target_arch = "wasm32", target_os = "unknown")) ( - "@io_bazel_rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-unknown-unknown", ): [ ], "//conditions:default": [], }) + selects.with_or({ # cfg(target_os = "wasi") ( - "@io_bazel_rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:wasm32-wasi", ): [ "@raze__wasi__0_10_2_wasi_snapshot_preview1//:wasi", ], @@ -73,23 +138,24 @@ rust_library( }) + selects.with_or({ # cfg(unix) ( - "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", - "@io_bazel_rules_rust//rust/platform:aarch64-linux-android", - "@io_bazel_rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", - "@io_bazel_rules_rust//rust/platform:i686-linux-android", - "@io_bazel_rules_rust//rust/platform:i686-unknown-freebsd", - "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", - "@io_bazel_rules_rust//rust/platform:x86_64-linux-android", - "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", - "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@raze__libc__0_2_85//:libc", + "@raze__libc__0_2_91//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel b/bazel/cargo/remote/BUILD.hashbrown-0.11.2.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel rename to bazel/cargo/remote/BUILD.hashbrown-0.11.2.bazel index 9cc788fd..6b577211 100644 --- a/bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel +++ b/bazel/cargo/remote/BUILD.hashbrown-0.11.2.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -42,6 +42,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -50,10 +51,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.9.1", + version = "0.11.2", # buildifier: leave-alone deps = [ - "@raze__ahash__0_4_7//:ahash", + "@raze__ahash__0_7_2//:ahash", ], ) diff --git a/bazel/cargo/remote/BUILD.idna-0.2.0.bazel b/bazel/cargo/remote/BUILD.idna-0.2.0.bazel index 16600dbf..91f7e809 100644 --- a/bazel/cargo/remote/BUILD.idna-0.2.0.bazel +++ b/bazel/cargo/remote/BUILD.idna-0.2.0.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -49,8 +50,8 @@ rust_library( # buildifier: leave-alone deps = [ "@raze__matches__0_1_8//:matches", - "@raze__unicode_bidi__0_3_4//:unicode_bidi", - "@raze__unicode_normalization__0_1_16//:unicode_normalization", + "@raze__unicode_bidi__0_3_5//:unicode_bidi", + "@raze__unicode_normalization__0_1_17//:unicode_normalization", ], ) diff --git a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel index 7587e7fd..b414da82 100644 --- a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel +++ b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.libc-0.2.85.bazel b/bazel/cargo/remote/BUILD.libc-0.2.91.bazel similarity index 86% rename from bazel/cargo/remote/BUILD.libc-0.2.85.bazel rename to bazel/cargo/remote/BUILD.libc-0.2.91.bazel index 9927ba4a..6ec44239 100644 --- a/bazel/cargo/remote/BUILD.libc-0.2.85.bazel +++ b/bazel/cargo/remote/BUILD.libc-0.2.91.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -28,9 +28,11 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated Targets# buildifier: disable=load-on-top +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) @@ -53,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.85", + version = "0.2.91", visibility = ["//visibility:private"], deps = [ ], @@ -68,6 +70,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -76,7 +79,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.85", + version = "0.2.91", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/remote/BUILD.log-0.4.14.bazel b/bazel/cargo/remote/BUILD.log-0.4.14.bazel index 61bc6926..60912516 100644 --- a/bazel/cargo/remote/BUILD.log-0.4.14.bazel +++ b/bazel/cargo/remote/BUILD.log-0.4.14.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -28,9 +28,11 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated Targets# buildifier: disable=load-on-top +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) @@ -66,6 +68,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.matches-0.1.8.bazel b/bazel/cargo/remote/BUILD.matches-0.1.8.bazel index 6a25d8b3..22b06461 100644 --- a/bazel/cargo/remote/BUILD.matches-0.1.8.bazel +++ b/bazel/cargo/remote/BUILD.matches-0.1.8.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -37,6 +37,7 @@ rust_library( ], crate_root = "lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel b/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel index 609a04f7..1e009969 100644 --- a/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel +++ b/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,8 +29,38 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "memchr_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + "use_std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.3.4", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "memchr", @@ -42,6 +72,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -53,5 +84,6 @@ rust_library( version = "2.3.4", # buildifier: leave-alone deps = [ + ":memchr_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.num-integer-0.1.44.bazel b/bazel/cargo/remote/BUILD.num-integer-0.1.44.bazel index f498d6a7..26aa4162 100644 --- a/bazel/cargo/remote/BUILD.num-integer-0.1.44.bazel +++ b/bazel/cargo/remote/BUILD.num-integer-0.1.44.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,36 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "num_integer_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.44", + visibility = ["//visibility:private"], + deps = [ + "@raze__autocfg__1_0_1//:autocfg", + ], +) # Unsupported target "average" with type "bench" omitted @@ -36,8 +66,6 @@ licenses([ # Unsupported target "roots" with type "bench" omitted -# Unsupported target "build-script-build" with type "custom-build" omitted - rust_library( name = "num_integer", srcs = glob(["**/*.rs"]), @@ -45,6 +73,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -56,6 +85,7 @@ rust_library( version = "0.1.44", # buildifier: leave-alone deps = [ + ":num_integer_build_script", "@raze__num_traits__0_2_14//:num_traits", ], ) diff --git a/bazel/cargo/remote/BUILD.num-traits-0.2.14.bazel b/bazel/cargo/remote/BUILD.num-traits-0.2.14.bazel index 683f9d57..f49065f7 100644 --- a/bazel/cargo/remote/BUILD.num-traits-0.2.14.bazel +++ b/bazel/cargo/remote/BUILD.num-traits-0.2.14.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,8 +29,36 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "num_traits_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.14", + visibility = ["//visibility:private"], + deps = [ + "@raze__autocfg__1_0_1//:autocfg", + ], +) rust_library( name = "num_traits", @@ -39,6 +67,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -50,6 +79,7 @@ rust_library( version = "0.2.14", # buildifier: leave-alone deps = [ + ":num_traits_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.ahash-0.4.7.bazel b/bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel similarity index 58% rename from bazel/cargo/remote/BUILD.ahash-0.4.7.bazel rename to bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel index 99ca0a90..d3a24768 100644 --- a/bazel/cargo/remote/BUILD.ahash-0.4.7.bazel +++ b/bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -30,17 +30,31 @@ licenses([ # Generated Targets -# Unsupported target "ahash" with type "bench" omitted +# Unsupported target "bench" with type "example" omitted + +# Unsupported target "bench_acquire" with type "example" omitted -# Unsupported target "map" with type "bench" omitted +# Unsupported target "bench_vs_lazy_static" with type "example" omitted + +# Unsupported target "lazy_static" with type "example" omitted + +# Unsupported target "reentrant_init_deadlocks" with type "example" omitted + +# Unsupported target "regex" with type "example" omitted + +# Unsupported target "test_synchronization" with type "example" omitted rust_library( - name = "ahash", + name = "once_cell", srcs = glob(["**/*.rs"]), crate_features = [ + "alloc", + "race", + "unstable", ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -49,14 +63,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.4.7", + version = "1.7.2", # buildifier: leave-alone deps = [ ], ) -# Unsupported target "bench" with type "test" omitted - -# Unsupported target "map_tests" with type "test" omitted - -# Unsupported target "nopanic" with type "test" omitted +# Unsupported target "it" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.percent-encoding-2.1.0.bazel b/bazel/cargo/remote/BUILD.percent-encoding-2.1.0.bazel index 132e764c..e3ef3716 100644 --- a/bazel/cargo/remote/BUILD.percent-encoding-2.1.0.bazel +++ b/bazel/cargo/remote/BUILD.percent-encoding-2.1.0.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -37,6 +37,7 @@ rust_library( ], crate_root = "lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel b/bazel/cargo/remote/BUILD.proc-macro2-1.0.26.bazel similarity index 63% rename from bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel rename to bazel/cargo/remote/BUILD.proc-macro2-1.0.26.bazel index 82e62f74..5592e647 100644 --- a/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel +++ b/bazel/cargo/remote/BUILD.proc-macro2-1.0.26.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,8 +29,38 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "proc_macro2_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "proc-macro", + "span-locations", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.26", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "proc_macro2", @@ -42,6 +72,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -50,9 +81,10 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.24", + version = "1.0.26", # buildifier: leave-alone deps = [ + ":proc_macro2_build_script", "@raze__unicode_xid__0_2_1//:unicode_xid", ], ) diff --git a/bazel/cargo/remote/BUILD.pulldown-cmark-0.7.2.bazel b/bazel/cargo/remote/BUILD.pulldown-cmark-0.8.0.bazel similarity index 71% rename from bazel/cargo/remote/BUILD.pulldown-cmark-0.7.2.bazel rename to bazel/cargo/remote/BUILD.pulldown-cmark-0.8.0.bazel index e529713d..2cb83a76 100644 --- a/bazel/cargo/remote/BUILD.pulldown-cmark-0.7.2.bazel +++ b/bazel/cargo/remote/BUILD.pulldown-cmark-0.8.0.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,35 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "pulldown_cmark_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.8.0", + visibility = ["//visibility:private"], + deps = [ + ], +) # Unsupported target "html_rendering" with type "bench" omitted @@ -42,6 +71,7 @@ rust_binary( crate_features = [ ], crate_root = "src/main.rs", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -50,18 +80,18 @@ rust_binary( "cargo-raze", "manual", ], - version = "0.7.2", + version = "0.8.0", # buildifier: leave-alone deps = [ - # Binaries get an implicit dependency on their crate's lib ":pulldown_cmark", + ":pulldown_cmark_build_script", "@raze__bitflags__1_2_1//:bitflags", "@raze__memchr__2_3_4//:memchr", "@raze__unicase__2_6_0//:unicase", ], ) -# Unsupported target "build-script-build" with type "custom-build" omitted +# Unsupported target "broken-link-callbacks" with type "example" omitted # Unsupported target "event-filter" with type "example" omitted @@ -74,6 +104,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -82,9 +113,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.7.2", + version = "0.8.0", # buildifier: leave-alone deps = [ + ":pulldown_cmark_build_script", "@raze__bitflags__1_2_1//:bitflags", "@raze__memchr__2_3_4//:memchr", "@raze__unicase__2_6_0//:unicase", diff --git a/bazel/cargo/remote/BUILD.quote-1.0.8.bazel b/bazel/cargo/remote/BUILD.quote-1.0.8.bazel index c3831893..164f709f 100644 --- a/bazel/cargo/remote/BUILD.quote-1.0.8.bazel +++ b/bazel/cargo/remote/BUILD.quote-1.0.8.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -38,6 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -49,7 +50,7 @@ rust_library( version = "1.0.8", # buildifier: leave-alone deps = [ - "@raze__proc_macro2__1_0_24//:proc_macro2", + "@raze__proc_macro2__1_0_26//:proc_macro2", ], ) diff --git a/bazel/cargo/remote/BUILD.regex-1.4.3.bazel b/bazel/cargo/remote/BUILD.regex-1.4.3.bazel index 6a7b723f..aa47b097 100644 --- a/bazel/cargo/remote/BUILD.regex-1.4.3.bazel +++ b/bazel/cargo/remote/BUILD.regex-1.4.3.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -58,6 +58,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.regex-automata-0.1.9.bazel b/bazel/cargo/remote/BUILD.regex-automata-0.1.9.bazel index 11cee719..5cc6e11c 100644 --- a/bazel/cargo/remote/BUILD.regex-automata-0.1.9.bazel +++ b/bazel/cargo/remote/BUILD.regex-automata-0.1.9.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel b/bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel index 134c2287..de1143cf 100644 --- a/bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel +++ b/bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -47,6 +47,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.semver-parser-0.9.0.bazel b/bazel/cargo/remote/BUILD.semver-parser-0.9.0.bazel index 25a6549a..39fde05e 100644 --- a/bazel/cargo/remote/BUILD.semver-parser-0.9.0.bazel +++ b/bazel/cargo/remote/BUILD.semver-parser-0.9.0.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.serde-1.0.123.bazel b/bazel/cargo/remote/BUILD.serde-1.0.123.bazel index ffdaa409..ba72f3b7 100644 --- a/bazel/cargo/remote/BUILD.serde-1.0.123.bazel +++ b/bazel/cargo/remote/BUILD.serde-1.0.123.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,8 +29,37 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "serde_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.123", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "serde", @@ -41,6 +70,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -52,5 +82,6 @@ rust_library( version = "1.0.123", # buildifier: leave-alone deps = [ + ":serde_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.syn-1.0.60.bazel b/bazel/cargo/remote/BUILD.syn-1.0.60.bazel index 99ced3b5..d7887964 100644 --- a/bazel/cargo/remote/BUILD.syn-1.0.60.bazel +++ b/bazel/cargo/remote/BUILD.syn-1.0.60.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,13 +29,48 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "syn_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "clone-impls", + "default", + "derive", + "full", + "parsing", + "printing", + "proc-macro", + "quote", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.60", + visibility = ["//visibility:private"], + deps = [ + ], +) # Unsupported target "file" with type "bench" omitted # Unsupported target "rust" with type "bench" omitted -# Unsupported target "build-script-build" with type "custom-build" omitted - rust_library( name = "syn", srcs = glob(["**/*.rs"]), @@ -51,6 +86,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -62,7 +98,8 @@ rust_library( version = "1.0.60", # buildifier: leave-alone deps = [ - "@raze__proc_macro2__1_0_24//:proc_macro2", + ":syn_build_script", + "@raze__proc_macro2__1_0_26//:proc_macro2", "@raze__quote__1_0_8//:quote", "@raze__unicode_xid__0_2_1//:unicode_xid", ], diff --git a/bazel/cargo/remote/BUILD.time-0.1.43.bazel b/bazel/cargo/remote/BUILD.time-0.1.43.bazel index 37c141c6..1aa9bdd9 100644 --- a/bazel/cargo/remote/BUILD.time-0.1.43.bazel +++ b/bazel/cargo/remote/BUILD.time-0.1.43.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -50,12 +51,12 @@ rust_library( version = "0.1.43", # buildifier: leave-alone deps = [ - "@raze__libc__0_2_85//:libc", + "@raze__libc__0_2_91//:libc", ] + selects.with_or({ # cfg(windows) ( - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ "@raze__winapi__0_3_9//:winapi", ], diff --git a/bazel/cargo/remote/BUILD.tinyvec-1.1.1.bazel b/bazel/cargo/remote/BUILD.tinyvec-1.2.0.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.tinyvec-1.1.1.bazel rename to bazel/cargo/remote/BUILD.tinyvec-1.2.0.bazel index 265ab1de..6c1b29d2 100644 --- a/bazel/cargo/remote/BUILD.tinyvec-1.1.1.bazel +++ b/bazel/cargo/remote/BUILD.tinyvec-1.2.0.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -42,6 +42,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -50,7 +51,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.1.1", + version = "1.2.0", # buildifier: leave-alone deps = [ "@raze__tinyvec_macros__0_1_0//:tinyvec_macros", diff --git a/bazel/cargo/remote/BUILD.tinyvec_macros-0.1.0.bazel b/bazel/cargo/remote/BUILD.tinyvec_macros-0.1.0.bazel index 2ab6e2f4..31b0a3a8 100644 --- a/bazel/cargo/remote/BUILD.tinyvec_macros-0.1.0.bazel +++ b/bazel/cargo/remote/BUILD.tinyvec_macros-0.1.0.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.toml-0.5.8.bazel b/bazel/cargo/remote/BUILD.toml-0.5.8.bazel index a2ce171b..66ba7b66 100644 --- a/bazel/cargo/remote/BUILD.toml-0.5.8.bazel +++ b/bazel/cargo/remote/BUILD.toml-0.5.8.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -44,6 +44,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.unicase-2.6.0.bazel b/bazel/cargo/remote/BUILD.unicase-2.6.0.bazel index 9d0a39cb..eafcb439 100644 --- a/bazel/cargo/remote/BUILD.unicase-2.6.0.bazel +++ b/bazel/cargo/remote/BUILD.unicase-2.6.0.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,8 +29,36 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "unicase_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.6.0", + visibility = ["//visibility:private"], + deps = [ + "@raze__version_check__0_9_3//:version_check", + ], +) rust_library( name = "unicase", @@ -39,6 +67,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -50,5 +79,6 @@ rust_library( version = "2.6.0", # buildifier: leave-alone deps = [ + ":unicase_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.unicode-bidi-0.3.4.bazel b/bazel/cargo/remote/BUILD.unicode-bidi-0.3.5.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.unicode-bidi-0.3.4.bazel rename to bazel/cargo/remote/BUILD.unicode-bidi-0.3.5.bazel index 90e8fcfd..bdeaf544 100644 --- a/bazel/cargo/remote/BUILD.unicode-bidi-0.3.4.bazel +++ b/bazel/cargo/remote/BUILD.unicode-bidi-0.3.5.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -38,7 +38,8 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", - edition = "2015", + data = [], + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -46,7 +47,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.3.4", + version = "0.3.5", # buildifier: leave-alone deps = [ "@raze__matches__0_1_8//:matches", diff --git a/bazel/cargo/remote/BUILD.unicode-normalization-0.1.16.bazel b/bazel/cargo/remote/BUILD.unicode-normalization-0.1.17.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.unicode-normalization-0.1.16.bazel rename to bazel/cargo/remote/BUILD.unicode-normalization-0.1.17.bazel index b3e35bea..a1532678 100644 --- a/bazel/cargo/remote/BUILD.unicode-normalization-0.1.16.bazel +++ b/bazel/cargo/remote/BUILD.unicode-normalization-0.1.17.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -41,6 +41,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -49,9 +50,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.1.16", + version = "0.1.17", # buildifier: leave-alone deps = [ - "@raze__tinyvec__1_1_1//:tinyvec", + "@raze__tinyvec__1_2_0//:tinyvec", ], ) diff --git a/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel b/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel index 0cd42cb6..3fd6f1d4 100644 --- a/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel +++ b/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -38,6 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.url-2.2.0.bazel b/bazel/cargo/remote/BUILD.url-2.2.1.bazel similarity index 87% rename from bazel/cargo/remote/BUILD.url-2.2.0.bazel rename to bazel/cargo/remote/BUILD.url-2.2.1.bazel index e4fdbd6d..57b42c77 100644 --- a/bazel/cargo/remote/BUILD.url-2.2.0.bazel +++ b/bazel/cargo/remote/BUILD.url-2.2.1.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -47,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "2.2.0", + version = "2.2.1", # buildifier: leave-alone deps = [ "@raze__form_urlencoded__1_0_0//:form_urlencoded", @@ -56,3 +57,7 @@ rust_library( "@raze__percent_encoding__2_1_0//:percent_encoding", ], ) + +# Unsupported target "data" with type "test" omitted + +# Unsupported target "unit" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.version-sync-0.9.1.bazel b/bazel/cargo/remote/BUILD.version-sync-0.9.2.bazel similarity index 84% rename from bazel/cargo/remote/BUILD.version-sync-0.9.1.bazel rename to bazel/cargo/remote/BUILD.version-sync-0.9.2.bazel index 0e6a96fb..844610b8 100644 --- a/bazel/cargo/remote/BUILD.version-sync-0.9.1.bazel +++ b/bazel/cargo/remote/BUILD.version-sync-0.9.2.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -45,16 +46,16 @@ rust_library( "cargo-raze", "manual", ], - version = "0.9.1", + version = "0.9.2", # buildifier: leave-alone deps = [ - "@raze__proc_macro2__1_0_24//:proc_macro2", - "@raze__pulldown_cmark__0_7_2//:pulldown_cmark", + "@raze__proc_macro2__1_0_26//:proc_macro2", + "@raze__pulldown_cmark__0_8_0//:pulldown_cmark", "@raze__regex__1_4_3//:regex", "@raze__semver_parser__0_9_0//:semver_parser", "@raze__syn__1_0_60//:syn", "@raze__toml__0_5_8//:toml", - "@raze__url__2_2_0//:url", + "@raze__url__2_2_1//:url", ], ) diff --git a/bazel/cargo/remote/BUILD.version_check-0.9.2.bazel b/bazel/cargo/remote/BUILD.version_check-0.9.3.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.version_check-0.9.2.bazel rename to bazel/cargo/remote/BUILD.version_check-0.9.3.bazel index 86f83058..0e9838c6 100644 --- a/bazel/cargo/remote/BUILD.version_check-0.9.2.bazel +++ b/bazel/cargo/remote/BUILD.version_check-0.9.3.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -45,7 +46,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.9.2", + version = "0.9.3", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel b/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel index 6375caa4..d65930a5 100644 --- a/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel index fa325c78..4c7c4282 100644 --- a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,8 +29,42 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "winapi_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "minwinbase", + "minwindef", + "ntdef", + "profileapi", + "std", + "sysinfoapi", + "timezoneapi", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.9", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "winapi", @@ -46,6 +80,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -57,5 +92,6 @@ rust_library( version = "0.3.9", # buildifier: leave-alone deps = [ + ":winapi_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel index 7a0447a4..e501d339 100644 --- a/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,8 +29,35 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "winapi_i686_pc_windows_gnu_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "winapi_i686_pc_windows_gnu", @@ -39,6 +66,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -50,5 +78,6 @@ rust_library( version = "0.4.0", # buildifier: leave-alone deps = [ + ":winapi_i686_pc_windows_gnu_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel index 95d47678..5cf1d6c3 100644 --- a/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -5,17 +5,17 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,8 +29,35 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "winapi_x86_64_pc_windows_gnu_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "winapi_x86_64_pc_windows_gnu", @@ -39,6 +66,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -50,5 +78,6 @@ rust_library( version = "0.4.0", # buildifier: leave-alone deps = [ + ":winapi_x86_64_pc_windows_gnu_build_script", ], ) diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index b8f2b84d..3a1d3245 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories") load("@proxy_wasm_rust_sdk//bazel/cargo:crates.bzl", "raze_fetch_remote_crates") +load("@rules_rust//rust:repositories.bzl", "rust_repositories") def proxy_wasm_rust_sdk_dependencies(): rust_repositories() diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 6ddf170f..9a82a47d 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -13,11 +13,13 @@ # limitations under the License. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") def proxy_wasm_rust_sdk_repositories(): - http_archive( - name = "io_bazel_rules_rust", - sha256 = "5cb2fbcc3debebc7b68f5f66c1b7ef741bdcca87c70594de688d4518538c36c8", - strip_prefix = "rules_rust-aa7c6938cf1cc2973bc065c7532f89874bf09818", - url = "https://github.com/bazelbuild/rules_rust/archive/aa7c6938cf1cc2973bc065c7532f89874bf09818.tar.gz", + maybe( + http_archive, + name = "rules_rust", + sha256 = "0044473997e40c5467aa410912ae8771aa328e2d44d71df073b87f147ab5cfcf", + strip_prefix = "rules_rust-76c44206c4d37491767446c6ccdf1a98274a0887", + url = "https://github.com/bazelbuild/rules_rust/archive/76c44206c4d37491767446c6ccdf1a98274a0887.tar.gz", ) diff --git a/examples/BUILD b/examples/BUILD index 258e55fc..85b260ab 100644 --- a/examples/BUILD +++ b/examples/BUILD @@ -1,4 +1,4 @@ -load("@io_bazel_rules_rust//rust:rust.bzl", "rust_binary") +load("@rules_rust//rust:rust.bzl", "rust_binary") rust_binary( name = "hello_world", @@ -12,7 +12,7 @@ rust_binary( "//bazel/cargo:chrono", "//bazel/cargo:log", ] + select({ - "@io_bazel_rules_rust//rust/platform:wasm32-unknown-unknown": [], + "@rules_rust//rust/platform:wasm32-unknown-unknown": [], "//conditions:default": ["//bazel/cargo:getrandom"], }), )