diff --git a/BUILD b/BUILD index 1aa823d91..328d65f4e 100644 --- a/BUILD +++ b/BUILD @@ -1,18 +1,9 @@ +load("//:bazel/variables.bzl", "COPTS", "LINKOPTS") + licenses(["notice"]) # Apache 2 package(default_visibility = ["//visibility:public"]) -COPTS = select({ - "@bazel_tools//src/conditions:windows": [ - "/std:c++17", - "-DWITHOUT_ZLIB", - ], - "//conditions:default": [ - "-std=c++17", - "-DWITHOUT_ZLIB", - ], -}) - cc_library( name = "include", hdrs = glob(["include/proxy-wasm/**/*.h"]), @@ -21,6 +12,8 @@ cc_library( ], ) +# TODO(mathetkae): once other runtimes(WAVM,V8) can be linked in this repos, +# use -define=wasm=v8|wavm|wasmtime and switch cc_library( name = "lib", srcs = glob( @@ -36,27 +29,6 @@ cc_library( "@boringssl//:crypto", "@com_google_protobuf//:protobuf_lite", "@proxy_wasm_cpp_sdk//:api_lib", - ], -) - -cc_test( - name = "wasm_vm_test", - srcs = ["wasm_vm_test.cc"], - copts = COPTS, - deps = [ - ":lib", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", - ], -) - -cc_test( - name = "context_test", - srcs = ["context_test.cc"], - copts = COPTS, - deps = [ - ":include", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@wasm_c_api//:wasmtime_lib", ], ) diff --git a/WORKSPACE b/WORKSPACE index bc20f1fa5..874d39b13 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -31,6 +31,26 @@ load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() +# rust rules +http_archive( + name = "io_bazel_rules_rust", + sha256 = "7401878bf966325bbec5224eeb4ff7e8762681070b401acaa168da68d383563a", + strip_prefix = "rules_rust-9741a32e50a8c50c504c0931111bb6048d6d6888", + url = "https://github.com/bazelbuild/rules_rust/archive/9741a32e50a8c50c504c0931111bb6048d6d6888.tar.gz", +) + +load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories") + +rust_repositories() + +load("@io_bazel_rules_rust//:workspace.bzl", "rust_workspace") + +rust_workspace() + +load("//bazel/cargo:crates.bzl", "proxy_wasm_cpp_host_raze__fetch_remote_crates") + +proxy_wasm_cpp_host_raze__fetch_remote_crates() + git_repository( name = "com_google_protobuf", commit = "655310ca192a6e3a050e0ca0b7084a2968072260", @@ -51,3 +71,19 @@ http_archive( strip_prefix = "googletest-release-1.10.0", urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], ) + +http_archive( + name = "wasmtime", + build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", + sha256 = "7874feb1026bbef06796bd5ab80e73f15b8e83752bde8dc93994f5bc039a4952", + strip_prefix = "wasmtime-0.21.0", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.21.0.tar.gz", +) + +http_archive( + name = "wasm_c_api", + build_file = "@proxy_wasm_cpp_host//bazel/external:wasm-c-api.BUILD", + sha256 = "aea8cd095e9937f1e14f2c93e026317b197eb2345e7a817fe3932062eb7b792c", + strip_prefix = "wasm-c-api-d9a80099d496b5cdba6f3fe8fc77586e0e505ddc", + url = "https://github.com/WebAssembly/wasm-c-api/archive/d9a80099d496b5cdba6f3fe8fc77586e0e505ddc.tar.gz", +) diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel new file mode 100644 index 000000000..35660e366 --- /dev/null +++ b/bazel/cargo/BUILD.bazel @@ -0,0 +1,76 @@ +""" +@generated +cargo-raze workspace build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +package(default_visibility = ["//visibility:public"]) + +licenses([ + "notice", # See individual crates for specific licenses +]) + +# Aliased targets +alias( + name = "anyhow", + actual = "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "env_logger", + actual = "@proxy_wasm_cpp_host_raze___env_logger__0_8_1//:env_logger", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "indexmap", + actual = "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "object", + actual = "@proxy_wasm_cpp_host_raze___object__0_21_1//:object", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "once_cell", + actual = "@proxy_wasm_cpp_host_raze___once_cell__1_4_1//:once_cell", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "wasmtime", + actual = "@proxy_wasm_cpp_host_raze___wasmtime__0_21_0//:wasmtime", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "wasmtime_c_api_macros", + actual = "@proxy_wasm_cpp_host_raze___wasmtime_c_api_macros__0_19_0//:wasmtime_c_api_macros", + tags = [ + "cargo-raze", + "manual", + ], +) diff --git a/bazel/cargo/Cargo.lock b/bazel/cargo/Cargo.lock new file mode 100644 index 000000000..1854b9e1d --- /dev/null +++ b/bazel/cargo/Cargo.lock @@ -0,0 +1,795 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "addr2line" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c0929d69e78dd9bf5408269919fcbcaeb2e35e5d43e5815517cdc6a8e11a423" +dependencies = [ + "gimli 0.23.0", +] + +[[package]] +name = "adler" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e" + +[[package]] +name = "aho-corasick" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5" +dependencies = [ + "memchr", +] + +[[package]] +name = "anyhow" +version = "1.0.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf8dcb5b4bbaa28653b647d8c77bd4ed40183b48882e130c1f1ffb73de069fd7" + +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi", + "libc", + "winapi", +] + +[[package]] +name = "autocfg" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" + +[[package]] +name = "backtrace" +version = "0.3.54" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2baad346b2d4e94a24347adeee9c7a93f412ee94b9cc26e5b59dea23848e9f28" +dependencies = [ + "addr2line", + "cfg-if 1.0.0", + "libc", + "miniz_oxide", + "object 0.22.0", + "rustc-demangle", +] + +[[package]] +name = "bincode" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f30d3a39baa26f9651f17b375061f3233dde33424a8b72b0dbe93a68a0bc896d" +dependencies = [ + "byteorder", + "serde", +] + +[[package]] +name = "bitflags" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" + +[[package]] +name = "byteorder" +version = "1.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" + +[[package]] +name = "cc" +version = "1.0.62" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1770ced377336a88a67c473594ccc14eca6f4559217c34f64aac8f83d641b40" + +[[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 = "cranelift-bforest" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9221545c0507dc08a62b2d8b5ffe8e17ac580b0a74d1813b496b8d70b070fbd0" +dependencies = [ + "cranelift-entity", +] + +[[package]] +name = "cranelift-codegen" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e9936ea608b6cd176f107037f6adbb4deac933466fc7231154f96598b2d3ab1" +dependencies = [ + "byteorder", + "cranelift-bforest", + "cranelift-codegen-meta", + "cranelift-codegen-shared", + "cranelift-entity", + "gimli 0.22.0", + "log", + "regalloc", + "serde", + "smallvec", + "target-lexicon", + "thiserror", +] + +[[package]] +name = "cranelift-codegen-meta" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ef2b2768568306540f4c8db3acce9105534d34c4a1e440529c1e702d7f8c8d7" +dependencies = [ + "cranelift-codegen-shared", + "cranelift-entity", +] + +[[package]] +name = "cranelift-codegen-shared" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6759012d6d19c4caec95793f052613e9d4113e925e7f14154defbac0f1d4c938" + +[[package]] +name = "cranelift-entity" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86badbce14e15f52a45b666b38abe47b204969dd7f8fb7488cb55dd46b361fa6" +dependencies = [ + "serde", +] + +[[package]] +name = "cranelift-frontend" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b608bb7656c554d0a4cf8f50c7a10b857e80306f6ff829ad6d468a7e2323c8d8" +dependencies = [ + "cranelift-codegen", + "log", + "smallvec", + "target-lexicon", +] + +[[package]] +name = "cranelift-native" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5246a1af14b7812ee4d94a3f0c4b295ec02c370c08b0ecc3dec512890fdad175" +dependencies = [ + "cranelift-codegen", + "raw-cpuid", + "target-lexicon", +] + +[[package]] +name = "cranelift-wasm" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ef491714e82f9fb910547e2047a3b1c47c03861eca67540c5abd0416371a2ac" +dependencies = [ + "cranelift-codegen", + "cranelift-entity", + "cranelift-frontend", + "itertools", + "log", + "serde", + "smallvec", + "thiserror", + "wasmparser 0.65.0", +] + +[[package]] +name = "crc32fast" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a" +dependencies = [ + "cfg-if 1.0.0", +] + +[[package]] +name = "either" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" + +[[package]] +name = "env_logger" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54532e3223c5af90a6a757c90b5c5521564b07e5e7a958681bcd2afad421cdcd" +dependencies = [ + "atty", + "humantime", + "log", + "regex", + "termcolor", +] + +[[package]] +name = "fallible-iterator" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" + +[[package]] +name = "gimli" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aaf91faf136cb47367fa430cd46e37a788775e7fa104f8b4bcb3861dc389b724" +dependencies = [ + "fallible-iterator", + "indexmap", + "stable_deref_trait", +] + +[[package]] +name = "gimli" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce" + +[[package]] +name = "hermit-abi" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8" +dependencies = [ + "libc", +] + +[[package]] +name = "humantime" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c1ad908cc71012b7bea4d0c53ba96a8cba9962f048fa68d143376143d863b7a" + +[[package]] +name = "indexmap" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4d6d89e0948bf10c08b9ecc8ac5b83f07f857ebe2c0cbe38de15b4e4f510356" +dependencies = [ + "serde", +] + +[[package]] +name = "itertools" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b" +dependencies = [ + "either", +] + +[[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.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614" + +[[package]] +name = "log" +version = "0.4.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b" +dependencies = [ + "cfg-if 0.1.10", +] + +[[package]] +name = "mach" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa" +dependencies = [ + "libc", +] + +[[package]] +name = "memchr" +version = "2.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" + +[[package]] +name = "memoffset" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa" +dependencies = [ + "autocfg", +] + +[[package]] +name = "miniz_oxide" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f2d26ec3309788e423cfbf68ad1800f061638098d76a83681af979dc4eda19d" +dependencies = [ + "adler", + "autocfg", +] + +[[package]] +name = "more-asserts" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238" + +[[package]] +name = "object" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37fd5004feb2ce328a52b0b3d01dbf4ffff72583493900ed15f22d4111c51693" +dependencies = [ + "crc32fast", + "indexmap", + "wasmparser 0.57.0", +] + +[[package]] +name = "object" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397" + +[[package]] +name = "once_cell" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "260e51e7efe62b592207e9e13a68e43692a7a279171d6ba57abd208bf23645ad" + +[[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 = "psm" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96e0536f6528466dbbbbe6b986c34175a8d0ff25b794c4bacda22e068cd2f2c5" +dependencies = [ + "cc", +] + +[[package]] +name = "quote" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "raw-cpuid" +version = "7.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4a349ca83373cfa5d6dbb66fd76e58b2cca08da71a5f6400de0a0a6a9bceeaf" +dependencies = [ + "bitflags", + "cc", + "rustc_version", +] + +[[package]] +name = "regalloc" +version = "0.0.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5" +dependencies = [ + "log", + "rustc-hash", + "smallvec", +] + +[[package]] +name = "regex" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", + "thread_local", +] + +[[package]] +name = "regex-syntax" +version = "0.6.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189" + +[[package]] +name = "region" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877e54ea2adcd70d80e9179344c97f93ef0dffd6b03e1f4529e6e83ab2fa9ae0" +dependencies = [ + "bitflags", + "libc", + "mach", + "winapi", +] + +[[package]] +name = "rustc-demangle" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232" + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc_version" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" +dependencies = [ + "semver", +] + +[[package]] +name = "semver" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" +dependencies = [ + "semver-parser", +] + +[[package]] +name = "semver-parser" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" + +[[package]] +name = "serde" +version = "1.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b88fa983de7720629c9387e9f517353ed404164b1e482c970a90c1a4aaf7dc1a" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbd1ae72adb44aab48f325a02444a5fc079349a8d804c1fc922aed3f7454c74e" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "smallvec" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252" + +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + +[[package]] +name = "syn" +version = "1.0.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "target-lexicon" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ee5a98e506fb7231a304c3a1bd7c132a55016cf65001e0282480665870dfcb9" + +[[package]] +name = "termcolor" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "thiserror" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e9ae34b84616eedaaf1e9dd6026dbe00dcafa92aa0c8077cb69df1fcfe5e53e" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ba20f23e85b10754cd195504aebf6a27e2e6cbe28c17778a0c930724628dd56" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thread_local" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "unicode-xid" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" + +[[package]] +name = "wasmparser" +version = "0.57.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32fddd575d477c6e9702484139cf9f23dcd554b06d185ed0f56c857dd3a47aa6" + +[[package]] +name = "wasmparser" +version = "0.65.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cc2fe6350834b4e528ba0901e7aa405d78b89dc1fa3145359eb4de0e323fcf" + +[[package]] +name = "wasmtime" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a4d945221f4d29feecdac80514c1ef1527dfcdcc7715ff1b4a5161fe5c8ebab" +dependencies = [ + "anyhow", + "backtrace", + "bincode", + "cfg-if 1.0.0", + "lazy_static", + "libc", + "log", + "region", + "rustc-demangle", + "serde", + "smallvec", + "target-lexicon", + "wasmparser 0.65.0", + "wasmtime-environ", + "wasmtime-jit", + "wasmtime-profiling", + "wasmtime-runtime", + "winapi", +] + +[[package]] +name = "wasmtime-c-api-bazel" +version = "0.21.0" +dependencies = [ + "anyhow", + "env_logger", + "indexmap", + "object 0.21.1", + "once_cell", + "wasmtime", + "wasmtime-c-api-macros", +] + +[[package]] +name = "wasmtime-c-api-macros" +version = "0.19.0" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.21.0#ab1958434a2b7a5b07d197e71b88200d9e06e026" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "wasmtime-cranelift" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1e55c17317922951a9bdd5547b527d2cc7be3cea118dc17ad7c05a4c8e67c7a" +dependencies = [ + "cranelift-codegen", + "cranelift-entity", + "cranelift-frontend", + "cranelift-wasm", + "wasmtime-environ", +] + +[[package]] +name = "wasmtime-debug" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a576daa6b228f8663c38bede2f7f23d094d578b0061c39fc122cc28eee1e2c18" +dependencies = [ + "anyhow", + "gimli 0.22.0", + "more-asserts", + "object 0.21.1", + "target-lexicon", + "thiserror", + "wasmparser 0.65.0", + "wasmtime-environ", +] + +[[package]] +name = "wasmtime-environ" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "396ceda32fd67205235c098e092a85716942883bfd2c773c250cf5f2457b8307" +dependencies = [ + "anyhow", + "cfg-if 1.0.0", + "cranelift-codegen", + "cranelift-entity", + "cranelift-wasm", + "gimli 0.22.0", + "indexmap", + "log", + "more-asserts", + "serde", + "thiserror", + "wasmparser 0.65.0", +] + +[[package]] +name = "wasmtime-jit" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a45f6dd5bdf12d41f10100482d58d9cb160a85af5884dfd41a2861af4b0f50" +dependencies = [ + "anyhow", + "cfg-if 1.0.0", + "cranelift-codegen", + "cranelift-entity", + "cranelift-frontend", + "cranelift-native", + "cranelift-wasm", + "gimli 0.22.0", + "log", + "more-asserts", + "object 0.21.1", + "region", + "serde", + "target-lexicon", + "thiserror", + "wasmparser 0.65.0", + "wasmtime-cranelift", + "wasmtime-debug", + "wasmtime-environ", + "wasmtime-obj", + "wasmtime-profiling", + "wasmtime-runtime", + "winapi", +] + +[[package]] +name = "wasmtime-obj" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a84aebe3b4331a603625f069944192fa3f6ffe499802ef91273fd73af9a8087d" +dependencies = [ + "anyhow", + "more-asserts", + "object 0.21.1", + "target-lexicon", + "wasmtime-debug", + "wasmtime-environ", +] + +[[package]] +name = "wasmtime-profiling" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25f27fda1b81d701f7ea1da9ae51b5b62d4cdc37ca5b93eae771ca2cde53b70c" +dependencies = [ + "anyhow", + "cfg-if 1.0.0", + "lazy_static", + "libc", + "serde", + "target-lexicon", + "wasmtime-environ", + "wasmtime-runtime", +] + +[[package]] +name = "wasmtime-runtime" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e452b8b3b32dbf1b831f05003a740581cc2c3c2122f5806bae9f167495e1e66c" +dependencies = [ + "backtrace", + "cc", + "cfg-if 1.0.0", + "indexmap", + "lazy_static", + "libc", + "log", + "memoffset", + "more-asserts", + "psm", + "region", + "thiserror", + "wasmtime-environ", + "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-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" +dependencies = [ + "winapi", +] + +[[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/Cargo.toml b/bazel/cargo/Cargo.toml new file mode 100644 index 000000000..2461eed30 --- /dev/null +++ b/bazel/cargo/Cargo.toml @@ -0,0 +1,68 @@ +[package] +edition = "2018" +name = "wasmtime-c-api-bazel" +version = "0.21.0" + +[lib] +crate-type = ["staticlib", "cdylib"] +doc = false +doctest = false +name = "wasmtime" +path = "src/lib.rs" +proc-macro = true +test = false + +[dependencies] +anyhow = "1.0" +env_logger = "0.8" +indexmap = {version = "=1.1.0", features = ["serde-1"]} +object = {version = "=0.21.1", default-features = false, features = ["write"]} +once_cell = "1.3" +wasmtime = {version = "0.21.0", default-features = false} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.21.0", path = "crates/c-api/macros"} + +[raze] +gen_workspace_prefix = "proxy_wasm_cpp_host_raze_" +genmode = "Remote" +workspace_path = "//bazel/cargo" + +[raze.crates.target-lexicon.'0.11.1'] +additional_flags = [ + "--cfg=feature=\\\"force_unix_path_separator\\\"", +] +gen_buildrs = true + +[raze.crates.proc-macro2.'1.0.24'] +additional_flags = [ + "--cfg=use_proc_macro", +] + +[raze.crates.log.'0.4.11'] +additional_flags = [ + "--cfg=atomic_cas", +] + +[raze.crates.indexmap.'1.1.0'] +additional_flags = [ + "--cfg=feature=\\\"serde-1\\\"", +] + +[raze.crates.raw-cpuid.'7.0.3'] +additional_flags = [ + "--cfg=feature=\\\"bindgen\\\"", +] +gen_buildrs = true + +[raze.crates.cranelift-codegen.'0.68.0'] +additional_flags = [ + "--cfg=feature=\\\"enable-serde\\\"", + "--cfg=feature=\\\"bindgen\\\"", +] +gen_buildrs = true + +[raze.crates.psm.'0.1.11'] +additional_flags = [ + "--cfg=asm", + "--cfg=feature=\\\"bindgen\\\"", +] +gen_buildrs = true diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl new file mode 100644 index 000000000..b7d1121ce --- /dev/null +++ b/bazel/cargo/crates.bzl @@ -0,0 +1,821 @@ +""" +@generated +cargo-raze crate workspace functions + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load + +def proxy_wasm_cpp_host_raze__fetch_remote_crates(): + """This function defines a collection of repos and should be called in a WORKSPACE file""" + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___addr2line__0_14_0", + url = "https://crates.io/api/v1/crates/addr2line/0.14.0/download", + type = "tar.gz", + sha256 = "7c0929d69e78dd9bf5408269919fcbcaeb2e35e5d43e5815517cdc6a8e11a423", + strip_prefix = "addr2line-0.14.0", + build_file = Label("//bazel/cargo/remote:BUILD.addr2line-0.14.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___adler__0_2_3", + url = "https://crates.io/api/v1/crates/adler/0.2.3/download", + type = "tar.gz", + sha256 = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e", + strip_prefix = "adler-0.2.3", + build_file = Label("//bazel/cargo/remote:BUILD.adler-0.2.3.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___aho_corasick__0_7_15", + url = "https://crates.io/api/v1/crates/aho-corasick/0.7.15/download", + type = "tar.gz", + sha256 = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5", + strip_prefix = "aho-corasick-0.7.15", + build_file = Label("//bazel/cargo/remote:BUILD.aho-corasick-0.7.15.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___anyhow__1_0_34", + url = "https://crates.io/api/v1/crates/anyhow/1.0.34/download", + type = "tar.gz", + sha256 = "bf8dcb5b4bbaa28653b647d8c77bd4ed40183b48882e130c1f1ffb73de069fd7", + strip_prefix = "anyhow-1.0.34", + build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.34.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___atty__0_2_14", + url = "https://crates.io/api/v1/crates/atty/0.2.14/download", + type = "tar.gz", + sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8", + strip_prefix = "atty-0.2.14", + build_file = Label("//bazel/cargo/remote:BUILD.atty-0.2.14.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___autocfg__1_0_1", + url = "https://crates.io/api/v1/crates/autocfg/1.0.1/download", + type = "tar.gz", + sha256 = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a", + strip_prefix = "autocfg-1.0.1", + build_file = Label("//bazel/cargo/remote:BUILD.autocfg-1.0.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___backtrace__0_3_54", + url = "https://crates.io/api/v1/crates/backtrace/0.3.54/download", + type = "tar.gz", + sha256 = "2baad346b2d4e94a24347adeee9c7a93f412ee94b9cc26e5b59dea23848e9f28", + strip_prefix = "backtrace-0.3.54", + build_file = Label("//bazel/cargo/remote:BUILD.backtrace-0.3.54.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___bincode__1_3_1", + url = "https://crates.io/api/v1/crates/bincode/1.3.1/download", + type = "tar.gz", + sha256 = "f30d3a39baa26f9651f17b375061f3233dde33424a8b72b0dbe93a68a0bc896d", + strip_prefix = "bincode-1.3.1", + build_file = Label("//bazel/cargo/remote:BUILD.bincode-1.3.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___bitflags__1_2_1", + url = "https://crates.io/api/v1/crates/bitflags/1.2.1/download", + type = "tar.gz", + sha256 = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693", + strip_prefix = "bitflags-1.2.1", + build_file = Label("//bazel/cargo/remote:BUILD.bitflags-1.2.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___byteorder__1_3_4", + url = "https://crates.io/api/v1/crates/byteorder/1.3.4/download", + type = "tar.gz", + sha256 = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de", + strip_prefix = "byteorder-1.3.4", + build_file = Label("//bazel/cargo/remote:BUILD.byteorder-1.3.4.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cc__1_0_62", + url = "https://crates.io/api/v1/crates/cc/1.0.62/download", + type = "tar.gz", + sha256 = "f1770ced377336a88a67c473594ccc14eca6f4559217c34f64aac8f83d641b40", + strip_prefix = "cc-1.0.62", + build_file = Label("//bazel/cargo/remote:BUILD.cc-1.0.62.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cfg_if__0_1_10", + url = "https://crates.io/api/v1/crates/cfg-if/0.1.10/download", + type = "tar.gz", + sha256 = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822", + strip_prefix = "cfg-if-0.1.10", + build_file = Label("//bazel/cargo/remote:BUILD.cfg-if-0.1.10.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cfg_if__1_0_0", + url = "https://crates.io/api/v1/crates/cfg-if/1.0.0/download", + type = "tar.gz", + sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", + strip_prefix = "cfg-if-1.0.0", + build_file = Label("//bazel/cargo/remote:BUILD.cfg-if-1.0.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_bforest__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.68.0/download", + type = "tar.gz", + sha256 = "9221545c0507dc08a62b2d8b5ffe8e17ac580b0a74d1813b496b8d70b070fbd0", + strip_prefix = "cranelift-bforest-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.68.0/download", + type = "tar.gz", + sha256 = "7e9936ea608b6cd176f107037f6adbb4deac933466fc7231154f96598b2d3ab1", + strip_prefix = "cranelift-codegen-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_codegen_meta__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.68.0/download", + type = "tar.gz", + sha256 = "4ef2b2768568306540f4c8db3acce9105534d34c4a1e440529c1e702d7f8c8d7", + strip_prefix = "cranelift-codegen-meta-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_codegen_shared__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.68.0/download", + type = "tar.gz", + sha256 = "6759012d6d19c4caec95793f052613e9d4113e925e7f14154defbac0f1d4c938", + strip_prefix = "cranelift-codegen-shared-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.68.0/download", + type = "tar.gz", + sha256 = "86badbce14e15f52a45b666b38abe47b204969dd7f8fb7488cb55dd46b361fa6", + strip_prefix = "cranelift-entity-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_frontend__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.68.0/download", + type = "tar.gz", + sha256 = "b608bb7656c554d0a4cf8f50c7a10b857e80306f6ff829ad6d468a7e2323c8d8", + strip_prefix = "cranelift-frontend-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_native__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-native/0.68.0/download", + type = "tar.gz", + sha256 = "5246a1af14b7812ee4d94a3f0c4b295ec02c370c08b0ecc3dec512890fdad175", + strip_prefix = "cranelift-native-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_wasm__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.68.0/download", + type = "tar.gz", + sha256 = "8ef491714e82f9fb910547e2047a3b1c47c03861eca67540c5abd0416371a2ac", + strip_prefix = "cranelift-wasm-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___crc32fast__1_2_1", + url = "https://crates.io/api/v1/crates/crc32fast/1.2.1/download", + type = "tar.gz", + sha256 = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a", + strip_prefix = "crc32fast-1.2.1", + build_file = Label("//bazel/cargo/remote:BUILD.crc32fast-1.2.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___either__1_6_1", + url = "https://crates.io/api/v1/crates/either/1.6.1/download", + type = "tar.gz", + sha256 = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457", + strip_prefix = "either-1.6.1", + build_file = Label("//bazel/cargo/remote:BUILD.either-1.6.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___env_logger__0_8_1", + url = "https://crates.io/api/v1/crates/env_logger/0.8.1/download", + type = "tar.gz", + sha256 = "54532e3223c5af90a6a757c90b5c5521564b07e5e7a958681bcd2afad421cdcd", + strip_prefix = "env_logger-0.8.1", + build_file = Label("//bazel/cargo/remote:BUILD.env_logger-0.8.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___fallible_iterator__0_2_0", + url = "https://crates.io/api/v1/crates/fallible-iterator/0.2.0/download", + type = "tar.gz", + sha256 = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7", + strip_prefix = "fallible-iterator-0.2.0", + build_file = Label("//bazel/cargo/remote:BUILD.fallible-iterator-0.2.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___gimli__0_22_0", + url = "https://crates.io/api/v1/crates/gimli/0.22.0/download", + type = "tar.gz", + sha256 = "aaf91faf136cb47367fa430cd46e37a788775e7fa104f8b4bcb3861dc389b724", + strip_prefix = "gimli-0.22.0", + build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.22.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___gimli__0_23_0", + url = "https://crates.io/api/v1/crates/gimli/0.23.0/download", + type = "tar.gz", + sha256 = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce", + strip_prefix = "gimli-0.23.0", + build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.23.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___hermit_abi__0_1_17", + url = "https://crates.io/api/v1/crates/hermit-abi/0.1.17/download", + type = "tar.gz", + sha256 = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8", + strip_prefix = "hermit-abi-0.1.17", + build_file = Label("//bazel/cargo/remote:BUILD.hermit-abi-0.1.17.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___humantime__2_0_1", + url = "https://crates.io/api/v1/crates/humantime/2.0.1/download", + type = "tar.gz", + sha256 = "3c1ad908cc71012b7bea4d0c53ba96a8cba9962f048fa68d143376143d863b7a", + strip_prefix = "humantime-2.0.1", + build_file = Label("//bazel/cargo/remote:BUILD.humantime-2.0.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___indexmap__1_1_0", + url = "https://crates.io/api/v1/crates/indexmap/1.1.0/download", + type = "tar.gz", + sha256 = "a4d6d89e0948bf10c08b9ecc8ac5b83f07f857ebe2c0cbe38de15b4e4f510356", + strip_prefix = "indexmap-1.1.0", + build_file = Label("//bazel/cargo/remote:BUILD.indexmap-1.1.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___itertools__0_9_0", + url = "https://crates.io/api/v1/crates/itertools/0.9.0/download", + type = "tar.gz", + sha256 = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b", + strip_prefix = "itertools-0.9.0", + build_file = Label("//bazel/cargo/remote:BUILD.itertools-0.9.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___lazy_static__1_4_0", + url = "https://crates.io/api/v1/crates/lazy_static/1.4.0/download", + type = "tar.gz", + sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646", + strip_prefix = "lazy_static-1.4.0", + build_file = Label("//bazel/cargo/remote:BUILD.lazy_static-1.4.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___libc__0_2_80", + url = "https://crates.io/api/v1/crates/libc/0.2.80/download", + type = "tar.gz", + sha256 = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614", + strip_prefix = "libc-0.2.80", + build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.80.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___log__0_4_11", + url = "https://crates.io/api/v1/crates/log/0.4.11/download", + type = "tar.gz", + sha256 = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b", + strip_prefix = "log-0.4.11", + build_file = Label("//bazel/cargo/remote:BUILD.log-0.4.11.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___mach__0_3_2", + url = "https://crates.io/api/v1/crates/mach/0.3.2/download", + type = "tar.gz", + sha256 = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa", + strip_prefix = "mach-0.3.2", + build_file = Label("//bazel/cargo/remote:BUILD.mach-0.3.2.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___memchr__2_3_4", + url = "https://crates.io/api/v1/crates/memchr/2.3.4/download", + type = "tar.gz", + sha256 = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525", + strip_prefix = "memchr-2.3.4", + build_file = Label("//bazel/cargo/remote:BUILD.memchr-2.3.4.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___memoffset__0_5_6", + url = "https://crates.io/api/v1/crates/memoffset/0.5.6/download", + type = "tar.gz", + sha256 = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa", + strip_prefix = "memoffset-0.5.6", + build_file = Label("//bazel/cargo/remote:BUILD.memoffset-0.5.6.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___miniz_oxide__0_4_3", + url = "https://crates.io/api/v1/crates/miniz_oxide/0.4.3/download", + type = "tar.gz", + sha256 = "0f2d26ec3309788e423cfbf68ad1800f061638098d76a83681af979dc4eda19d", + strip_prefix = "miniz_oxide-0.4.3", + build_file = Label("//bazel/cargo/remote:BUILD.miniz_oxide-0.4.3.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___more_asserts__0_2_1", + url = "https://crates.io/api/v1/crates/more-asserts/0.2.1/download", + type = "tar.gz", + sha256 = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238", + strip_prefix = "more-asserts-0.2.1", + build_file = Label("//bazel/cargo/remote:BUILD.more-asserts-0.2.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___object__0_21_1", + url = "https://crates.io/api/v1/crates/object/0.21.1/download", + type = "tar.gz", + sha256 = "37fd5004feb2ce328a52b0b3d01dbf4ffff72583493900ed15f22d4111c51693", + strip_prefix = "object-0.21.1", + build_file = Label("//bazel/cargo/remote:BUILD.object-0.21.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___object__0_22_0", + url = "https://crates.io/api/v1/crates/object/0.22.0/download", + type = "tar.gz", + sha256 = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397", + strip_prefix = "object-0.22.0", + build_file = Label("//bazel/cargo/remote:BUILD.object-0.22.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___once_cell__1_4_1", + url = "https://crates.io/api/v1/crates/once_cell/1.4.1/download", + type = "tar.gz", + sha256 = "260e51e7efe62b592207e9e13a68e43692a7a279171d6ba57abd208bf23645ad", + strip_prefix = "once_cell-1.4.1", + build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.4.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___proc_macro2__1_0_24", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.24/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"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___psm__0_1_11", + url = "https://crates.io/api/v1/crates/psm/0.1.11/download", + type = "tar.gz", + sha256 = "96e0536f6528466dbbbbe6b986c34175a8d0ff25b794c4bacda22e068cd2f2c5", + strip_prefix = "psm-0.1.11", + build_file = Label("//bazel/cargo/remote:BUILD.psm-0.1.11.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___quote__1_0_7", + url = "https://crates.io/api/v1/crates/quote/1.0.7/download", + type = "tar.gz", + sha256 = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37", + strip_prefix = "quote-1.0.7", + build_file = Label("//bazel/cargo/remote:BUILD.quote-1.0.7.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___raw_cpuid__7_0_3", + url = "https://crates.io/api/v1/crates/raw-cpuid/7.0.3/download", + type = "tar.gz", + sha256 = "b4a349ca83373cfa5d6dbb66fd76e58b2cca08da71a5f6400de0a0a6a9bceeaf", + strip_prefix = "raw-cpuid-7.0.3", + build_file = Label("//bazel/cargo/remote:BUILD.raw-cpuid-7.0.3.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___regalloc__0_0_31", + url = "https://crates.io/api/v1/crates/regalloc/0.0.31/download", + type = "tar.gz", + sha256 = "571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5", + strip_prefix = "regalloc-0.0.31", + build_file = Label("//bazel/cargo/remote:BUILD.regalloc-0.0.31.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___regex__1_4_2", + url = "https://crates.io/api/v1/crates/regex/1.4.2/download", + type = "tar.gz", + sha256 = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c", + strip_prefix = "regex-1.4.2", + build_file = Label("//bazel/cargo/remote:BUILD.regex-1.4.2.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___regex_syntax__0_6_21", + url = "https://crates.io/api/v1/crates/regex-syntax/0.6.21/download", + type = "tar.gz", + sha256 = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189", + strip_prefix = "regex-syntax-0.6.21", + build_file = Label("//bazel/cargo/remote:BUILD.regex-syntax-0.6.21.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___region__2_2_0", + url = "https://crates.io/api/v1/crates/region/2.2.0/download", + type = "tar.gz", + sha256 = "877e54ea2adcd70d80e9179344c97f93ef0dffd6b03e1f4529e6e83ab2fa9ae0", + strip_prefix = "region-2.2.0", + build_file = Label("//bazel/cargo/remote:BUILD.region-2.2.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___rustc_demangle__0_1_18", + url = "https://crates.io/api/v1/crates/rustc-demangle/0.1.18/download", + type = "tar.gz", + sha256 = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232", + strip_prefix = "rustc-demangle-0.1.18", + build_file = Label("//bazel/cargo/remote:BUILD.rustc-demangle-0.1.18.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___rustc_hash__1_1_0", + url = "https://crates.io/api/v1/crates/rustc-hash/1.1.0/download", + type = "tar.gz", + sha256 = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2", + strip_prefix = "rustc-hash-1.1.0", + build_file = Label("//bazel/cargo/remote:BUILD.rustc-hash-1.1.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___rustc_version__0_2_3", + url = "https://crates.io/api/v1/crates/rustc_version/0.2.3/download", + type = "tar.gz", + sha256 = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a", + strip_prefix = "rustc_version-0.2.3", + build_file = Label("//bazel/cargo/remote:BUILD.rustc_version-0.2.3.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___semver__0_9_0", + url = "https://crates.io/api/v1/crates/semver/0.9.0/download", + type = "tar.gz", + sha256 = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403", + strip_prefix = "semver-0.9.0", + build_file = Label("//bazel/cargo/remote:BUILD.semver-0.9.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___semver_parser__0_7_0", + url = "https://crates.io/api/v1/crates/semver-parser/0.7.0/download", + type = "tar.gz", + sha256 = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3", + strip_prefix = "semver-parser-0.7.0", + build_file = Label("//bazel/cargo/remote:BUILD.semver-parser-0.7.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___serde__1_0_117", + url = "https://crates.io/api/v1/crates/serde/1.0.117/download", + type = "tar.gz", + sha256 = "b88fa983de7720629c9387e9f517353ed404164b1e482c970a90c1a4aaf7dc1a", + strip_prefix = "serde-1.0.117", + build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.117.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___serde_derive__1_0_117", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.117/download", + type = "tar.gz", + sha256 = "cbd1ae72adb44aab48f325a02444a5fc079349a8d804c1fc922aed3f7454c74e", + strip_prefix = "serde_derive-1.0.117", + build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.117.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___smallvec__1_4_2", + url = "https://crates.io/api/v1/crates/smallvec/1.4.2/download", + type = "tar.gz", + sha256 = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252", + strip_prefix = "smallvec-1.4.2", + build_file = Label("//bazel/cargo/remote:BUILD.smallvec-1.4.2.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___stable_deref_trait__1_2_0", + url = "https://crates.io/api/v1/crates/stable_deref_trait/1.2.0/download", + type = "tar.gz", + sha256 = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3", + strip_prefix = "stable_deref_trait-1.2.0", + build_file = Label("//bazel/cargo/remote:BUILD.stable_deref_trait-1.2.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___syn__1_0_48", + url = "https://crates.io/api/v1/crates/syn/1.0.48/download", + type = "tar.gz", + sha256 = "cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac", + strip_prefix = "syn-1.0.48", + build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.48.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___target_lexicon__0_11_1", + url = "https://crates.io/api/v1/crates/target-lexicon/0.11.1/download", + type = "tar.gz", + sha256 = "4ee5a98e506fb7231a304c3a1bd7c132a55016cf65001e0282480665870dfcb9", + strip_prefix = "target-lexicon-0.11.1", + build_file = Label("//bazel/cargo/remote:BUILD.target-lexicon-0.11.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___termcolor__1_1_0", + url = "https://crates.io/api/v1/crates/termcolor/1.1.0/download", + type = "tar.gz", + sha256 = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f", + strip_prefix = "termcolor-1.1.0", + build_file = Label("//bazel/cargo/remote:BUILD.termcolor-1.1.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___thiserror__1_0_22", + url = "https://crates.io/api/v1/crates/thiserror/1.0.22/download", + type = "tar.gz", + sha256 = "0e9ae34b84616eedaaf1e9dd6026dbe00dcafa92aa0c8077cb69df1fcfe5e53e", + strip_prefix = "thiserror-1.0.22", + build_file = Label("//bazel/cargo/remote:BUILD.thiserror-1.0.22.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___thiserror_impl__1_0_22", + url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.22/download", + type = "tar.gz", + sha256 = "9ba20f23e85b10754cd195504aebf6a27e2e6cbe28c17778a0c930724628dd56", + strip_prefix = "thiserror-impl-1.0.22", + build_file = Label("//bazel/cargo/remote:BUILD.thiserror-impl-1.0.22.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___thread_local__1_0_1", + url = "https://crates.io/api/v1/crates/thread_local/1.0.1/download", + type = "tar.gz", + sha256 = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14", + strip_prefix = "thread_local-1.0.1", + build_file = Label("//bazel/cargo/remote:BUILD.thread_local-1.0.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___unicode_xid__0_2_1", + url = "https://crates.io/api/v1/crates/unicode-xid/0.2.1/download", + type = "tar.gz", + sha256 = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564", + strip_prefix = "unicode-xid-0.2.1", + build_file = Label("//bazel/cargo/remote:BUILD.unicode-xid-0.2.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmparser__0_57_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.57.0/download", + type = "tar.gz", + sha256 = "32fddd575d477c6e9702484139cf9f23dcd554b06d185ed0f56c857dd3a47aa6", + strip_prefix = "wasmparser-0.57.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.57.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmparser__0_65_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.65.0/download", + type = "tar.gz", + sha256 = "87cc2fe6350834b4e528ba0901e7aa405d78b89dc1fa3145359eb4de0e323fcf", + strip_prefix = "wasmparser-0.65.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.65.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime/0.21.0/download", + type = "tar.gz", + sha256 = "7a4d945221f4d29feecdac80514c1ef1527dfcdcc7715ff1b4a5161fe5c8ebab", + strip_prefix = "wasmtime-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.21.0.bazel"), + ) + + maybe( + new_git_repository, + name = "proxy_wasm_cpp_host_raze___wasmtime_c_api_macros__0_19_0", + remote = "https://github.com/bytecodealliance/wasmtime", + commit = "ab1958434a2b7a5b07d197e71b88200d9e06e026", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), + init_submodules = True, + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_cranelift__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.21.0/download", + type = "tar.gz", + sha256 = "f1e55c17317922951a9bdd5547b527d2cc7be3cea118dc17ad7c05a4c8e67c7a", + strip_prefix = "wasmtime-cranelift-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_debug__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-debug/0.21.0/download", + type = "tar.gz", + sha256 = "a576daa6b228f8663c38bede2f7f23d094d578b0061c39fc122cc28eee1e2c18", + strip_prefix = "wasmtime-debug-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-debug-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.21.0/download", + type = "tar.gz", + sha256 = "396ceda32fd67205235c098e092a85716942883bfd2c773c250cf5f2457b8307", + strip_prefix = "wasmtime-environ-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_jit__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.21.0/download", + type = "tar.gz", + sha256 = "b2a45f6dd5bdf12d41f10100482d58d9cb160a85af5884dfd41a2861af4b0f50", + strip_prefix = "wasmtime-jit-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_obj__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-obj/0.21.0/download", + type = "tar.gz", + sha256 = "a84aebe3b4331a603625f069944192fa3f6ffe499802ef91273fd73af9a8087d", + strip_prefix = "wasmtime-obj-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-obj-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_profiling__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-profiling/0.21.0/download", + type = "tar.gz", + sha256 = "25f27fda1b81d701f7ea1da9ae51b5b62d4cdc37ca5b93eae771ca2cde53b70c", + strip_prefix = "wasmtime-profiling-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-profiling-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_runtime__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.21.0/download", + type = "tar.gz", + sha256 = "e452b8b3b32dbf1b831f05003a740581cc2c3c2122f5806bae9f167495e1e66c", + strip_prefix = "wasmtime-runtime-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___winapi__0_3_9", + url = "https://crates.io/api/v1/crates/winapi/0.3.9/download", + type = "tar.gz", + sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", + strip_prefix = "winapi-0.3.9", + build_file = Label("//bazel/cargo/remote:BUILD.winapi-0.3.9.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___winapi_i686_pc_windows_gnu__0_4_0", + url = "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download", + type = "tar.gz", + sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", + strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", + build_file = Label("//bazel/cargo/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___winapi_util__0_1_5", + url = "https://crates.io/api/v1/crates/winapi-util/0.1.5/download", + type = "tar.gz", + sha256 = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178", + strip_prefix = "winapi-util-0.1.5", + build_file = Label("//bazel/cargo/remote:BUILD.winapi-util-0.1.5.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___winapi_x86_64_pc_windows_gnu__0_4_0", + url = "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download", + type = "tar.gz", + sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", + strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", + build_file = Label("//bazel/cargo/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), + ) diff --git a/bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel b/bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel new file mode 100644 index 000000000..8e672af0f --- /dev/null +++ b/bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel @@ -0,0 +1,61 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "addr2line" with type "example" omitted + +rust_library( + name = "addr2line", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.14.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___gimli__0_23_0//:gimli", + ], +) + +# Unsupported target "correctness" with type "test" omitted + +# Unsupported target "output_equivalence" with type "test" omitted + +# Unsupported target "parse" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.adler-0.2.3.bazel b/bazel/cargo/remote/BUILD.adler-0.2.3.bazel new file mode 100644 index 000000000..7b70ba01a --- /dev/null +++ b/bazel/cargo/remote/BUILD.adler-0.2.3.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "0BSD OR (MIT OR Apache-2.0)" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +rust_library( + name = "adler", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.3", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel b/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel new file mode 100644 index 000000000..b512eb895 --- /dev/null +++ b/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +rust_library( + name = "aho_corasick", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.7.15", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___memchr__2_3_4//:memchr", + ], +) diff --git a/bazel/cargo/remote/BUILD.anyhow-1.0.34.bazel b/bazel/cargo/remote/BUILD.anyhow-1.0.34.bazel new file mode 100644 index 000000000..29f953abf --- /dev/null +++ b/bazel/cargo/remote/BUILD.anyhow-1.0.34.bazel @@ -0,0 +1,80 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "anyhow", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.34", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test_autotrait" with type "test" omitted + +# Unsupported target "test_backtrace" with type "test" omitted + +# Unsupported target "test_boxed" with type "test" omitted + +# Unsupported target "test_chain" with type "test" omitted + +# Unsupported target "test_context" with type "test" omitted + +# Unsupported target "test_convert" with type "test" omitted + +# Unsupported target "test_downcast" with type "test" omitted + +# Unsupported target "test_fmt" with type "test" omitted + +# Unsupported target "test_macros" with type "test" omitted + +# Unsupported target "test_repr" with type "test" omitted + +# Unsupported target "test_source" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel new file mode 100644 index 000000000..1a8a6392e --- /dev/null +++ b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel @@ -0,0 +1,87 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "atty" with type "example" omitted + +rust_library( + name = "atty", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.14", + # buildifier: leave-alone + deps = [ + ] + 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", + ): [ + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + ], + "//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", + ): [ + "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel new file mode 100644 index 000000000..e7de20ab2 --- /dev/null +++ b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel @@ -0,0 +1,62 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "integers" with type "example" omitted + +# Unsupported target "paths" with type "example" omitted + +# Unsupported target "traits" with type "example" omitted + +# Unsupported target "versions" with type "example" omitted + +rust_library( + name = "autocfg", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.1", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "rustflags" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.backtrace-0.3.54.bazel b/bazel/cargo/remote/BUILD.backtrace-0.3.54.bazel new file mode 100644 index 000000000..825595e80 --- /dev/null +++ b/bazel/cargo/remote/BUILD.backtrace-0.3.54.bazel @@ -0,0 +1,90 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "benchmarks" with type "bench" omitted + +# Unsupported target "backtrace" with type "example" omitted + +# Unsupported target "raw" with type "example" omitted + +rust_library( + name = "backtrace", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "addr2line", + "default", + "gimli-symbolize", + "miniz_oxide", + "object", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.54", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___addr2line__0_14_0//:addr2line", + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + "@proxy_wasm_cpp_host_raze___miniz_oxide__0_4_3//:miniz_oxide", + "@proxy_wasm_cpp_host_raze___object__0_22_0//:object", + "@proxy_wasm_cpp_host_raze___rustc_demangle__0_1_18//:rustc_demangle", + ] + 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", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "accuracy" with type "test" omitted + +# Unsupported target "concurrent-panics" with type "test" omitted + +# Unsupported target "long_fn_name" with type "test" omitted + +# Unsupported target "skip_inner_frames" with type "test" omitted + +# Unsupported target "smoke" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.bazel b/bazel/cargo/remote/BUILD.bazel new file mode 100644 index 000000000..e69de29bb diff --git a/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel b/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel new file mode 100644 index 000000000..06e7de23f --- /dev/null +++ b/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "bincode", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.3.1", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___byteorder__1_3_4//:byteorder", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + ], +) + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel b/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel new file mode 100644 index 000000000..f83a025bd --- /dev/null +++ b/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "bitflags", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.2.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel b/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel new file mode 100644 index 000000000..9329b7930 --- /dev/null +++ b/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "byteorder", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.3.4", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.cc-1.0.62.bazel b/bazel/cargo/remote/BUILD.cc-1.0.62.bazel new file mode 100644 index 000000000..05c8e0993 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cc-1.0.62.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_binary( + # Prefix bin name to disambiguate from (probable) collision with lib name + # N.B.: The exact form of this is subject to change. + name = "cargo_bin_gcc_shim", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/bin/gcc-shim.rs", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.62", + # buildifier: leave-alone + deps = [ + # Binaries get an implicit dependency on their crate's lib + ":cc", + ], +) + +rust_library( + name = "cc", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.62", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "cc_env" with type "test" omitted + +# Unsupported target "cflags" with type "test" omitted + +# Unsupported target "cxxflags" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel b/bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel new file mode 100644 index 000000000..32abbfaeb --- /dev/null +++ b/bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "cfg_if", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.10", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "xcrate" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel new file mode 100644 index 000000000..6e3db87e1 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "cfg_if", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "xcrate" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel new file mode 100644 index 000000000..a0195b2ea --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel @@ -0,0 +1,53 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_bforest", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel new file mode 100644 index 000000000..9d2c40da6 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel @@ -0,0 +1,106 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "cranelift_codegen_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "enable-serde", + "gimli", + "serde", + "std", + "unwind", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_codegen_meta__0_68_0//:cranelift_codegen_meta", + ], +) + +rust_library( + name = "cranelift_codegen", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "enable-serde", + "gimli", + "serde", + "std", + "unwind", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=feature=\"enable-serde\"", + "--cfg=feature=\"bindgen\"", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + ":cranelift_codegen_build_script", + "@proxy_wasm_cpp_host_raze___byteorder__1_3_4//:byteorder", + "@proxy_wasm_cpp_host_raze___cranelift_bforest__0_68_0//:cranelift_bforest", + "@proxy_wasm_cpp_host_raze___cranelift_codegen_shared__0_68_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host_raze___gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___regalloc__0_0_31//:regalloc", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel new file mode 100644 index 000000000..9973cf865 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_codegen_meta", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_codegen_shared__0_68_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel new file mode 100644 index 000000000..112e40aaf --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_codegen_shared", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel new file mode 100644 index 000000000..8eeab0087 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_entity", + srcs = glob(["**/*.rs"]), + crate_features = [ + "enable-serde", + "serde", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel new file mode 100644 index 000000000..8272a3047 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_frontend", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel new file mode 100644 index 000000000..4eebedc80 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel @@ -0,0 +1,76 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_native", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + ] + selects.with_or({ + # cfg(any(target_arch = "x86", target_arch = "x86_64")) + ( + "@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-pc-windows-msvc", + "@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: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-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@proxy_wasm_cpp_host_raze___raw_cpuid__7_0_3//:raw_cpuid", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel new file mode 100644 index 000000000..a0e0a9cb2 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel @@ -0,0 +1,67 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_wasm", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "enable-serde", + "serde", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host_raze___cranelift_frontend__0_68_0//:cranelift_frontend", + "@proxy_wasm_cpp_host_raze___itertools__0_9_0//:itertools", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", + "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", + ], +) + +# Unsupported target "wasm_testsuite" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel b/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel new file mode 100644 index 000000000..fddaa77a7 --- /dev/null +++ b/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "crc32fast", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.2.1", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + ], +) diff --git a/bazel/cargo/remote/BUILD.either-1.6.1.bazel b/bazel/cargo/remote/BUILD.either-1.6.1.bazel new file mode 100644 index 000000000..712ffc01a --- /dev/null +++ b/bazel/cargo/remote/BUILD.either-1.6.1.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "either", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.6.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.env_logger-0.8.1.bazel b/bazel/cargo/remote/BUILD.env_logger-0.8.1.bazel new file mode 100644 index 000000000..7e3dec3bd --- /dev/null +++ b/bazel/cargo/remote/BUILD.env_logger-0.8.1.bazel @@ -0,0 +1,86 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "custom_default_format" with type "example" omitted + +# Unsupported target "custom_format" with type "example" omitted + +# Unsupported target "custom_logger" with type "example" omitted + +# Unsupported target "default" with type "example" omitted + +# Unsupported target "direct_logger" with type "example" omitted + +# Unsupported target "filters_from_code" with type "example" omitted + +# Unsupported target "in_tests" with type "example" omitted + +# Unsupported target "syslog_friendly_format" with type "example" omitted + +rust_library( + name = "env_logger", + srcs = glob(["**/*.rs"]), + crate_features = [ + "atty", + "default", + "humantime", + "regex", + "termcolor", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.8.1", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___atty__0_2_14//:atty", + "@proxy_wasm_cpp_host_raze___humantime__2_0_1//:humantime", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___regex__1_4_2//:regex", + "@proxy_wasm_cpp_host_raze___termcolor__1_1_0//:termcolor", + ], +) + +# Unsupported target "init-twice-retains-filter" with type "test" omitted + +# Unsupported target "log-in-log" with type "test" omitted + +# Unsupported target "log_tls_dtors" with type "test" omitted + +# Unsupported target "regexp_filter" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel b/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel new file mode 100644 index 000000000..e9a0d68df --- /dev/null +++ b/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel @@ -0,0 +1,53 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "fallible_iterator", + srcs = glob(["**/*.rs"]), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel new file mode 100644 index 000000000..6e2f33808 --- /dev/null +++ b/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel @@ -0,0 +1,77 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "dwarf-validate" with type "example" omitted + +# Unsupported target "dwarfdump" with type "example" omitted + +# Unsupported target "simple" with type "example" omitted + +# Unsupported target "simple_line" with type "example" omitted + +rust_library( + name = "gimli", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "endian-reader", + "fallible-iterator", + "indexmap", + "read", + "stable_deref_trait", + "std", + "write", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.22.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___fallible_iterator__0_2_0//:fallible_iterator", + "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host_raze___stable_deref_trait__1_2_0//:stable_deref_trait", + ], +) + +# Unsupported target "convert_self" with type "test" omitted + +# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel new file mode 100644 index 000000000..7367e05a6 --- /dev/null +++ b/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel @@ -0,0 +1,67 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "dwarf-validate" with type "example" omitted + +# Unsupported target "dwarfdump" with type "example" omitted + +# Unsupported target "simple" with type "example" omitted + +# Unsupported target "simple_line" with type "example" omitted + +rust_library( + name = "gimli", + srcs = glob(["**/*.rs"]), + crate_features = [ + "read", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.23.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "convert_self" with type "test" omitted + +# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel b/bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel new file mode 100644 index 000000000..71bb282fd --- /dev/null +++ b/bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "hermit_abi", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.17", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + ], +) diff --git a/bazel/cargo/remote/BUILD.humantime-2.0.1.bazel b/bazel/cargo/remote/BUILD.humantime-2.0.1.bazel new file mode 100644 index 000000000..a19c8e435 --- /dev/null +++ b/bazel/cargo/remote/BUILD.humantime-2.0.1.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "datetime_format" with type "bench" omitted + +# Unsupported target "datetime_parse" with type "bench" omitted + +rust_library( + name = "humantime", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.0.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel b/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel new file mode 100644 index 000000000..01fe69cba --- /dev/null +++ b/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel @@ -0,0 +1,68 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "faststring" with type "bench" omitted + +rust_library( + name = "indexmap", + srcs = glob(["**/*.rs"]), + crate_features = [ + "serde", + "serde-1", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=feature=\"serde-1\"", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.1.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + ], +) + +# Unsupported target "equivalent_trait" with type "test" omitted + +# Unsupported target "quick" with type "test" omitted + +# Unsupported target "serde" with type "test" omitted + +# Unsupported target "tests" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel b/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel new file mode 100644 index 000000000..2c204a05e --- /dev/null +++ b/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel @@ -0,0 +1,89 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "bench1" with type "bench" omitted + +# Unsupported target "combinations_with_replacement" with type "bench" omitted + +# Unsupported target "fold_specialization" with type "bench" omitted + +# Unsupported target "tree_fold1" with type "bench" omitted + +# Unsupported target "tuple_combinations" with type "bench" omitted + +# Unsupported target "tuples" with type "bench" omitted + +# Unsupported target "iris" with type "example" omitted + +rust_library( + name = "itertools", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "use_std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___either__1_6_1//:either", + ], +) + +# Unsupported target "adaptors_no_collect" with type "test" omitted + +# Unsupported target "fold_specialization" with type "test" omitted + +# Unsupported target "merge_join" with type "test" omitted + +# Unsupported target "peeking_take_while" with type "test" omitted + +# Unsupported target "quick" with type "test" omitted + +# Unsupported target "specializations" with type "test" omitted + +# Unsupported target "test_core" with type "test" omitted + +# Unsupported target "test_std" with type "test" omitted + +# Unsupported target "tuples" with type "test" omitted + +# Unsupported target "zip" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel new file mode 100644 index 000000000..7587e7fd9 --- /dev/null +++ b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "lazy_static", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.4.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "no_std" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.libc-0.2.80.bazel b/bazel/cargo/remote/BUILD.libc-0.2.80.bazel new file mode 100644 index 000000000..838522ff8 --- /dev/null +++ b/bazel/cargo/remote/BUILD.libc-0.2.80.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "libc", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.80", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "const_fn" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.log-0.4.11.bazel b/bazel/cargo/remote/BUILD.log-0.4.11.bazel new file mode 100644 index 000000000..6dfd85e41 --- /dev/null +++ b/bazel/cargo/remote/BUILD.log-0.4.11.bazel @@ -0,0 +1,61 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "log", + srcs = glob(["**/*.rs"]), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=atomic_cas", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.11", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cfg_if__0_1_10//:cfg_if", + ], +) + +# Unsupported target "filters" with type "test" omitted + +# Unsupported target "macros" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel new file mode 100644 index 000000000..0235f284d --- /dev/null +++ b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel @@ -0,0 +1,68 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "restricted", # BSD-2-Clause from expression "BSD-2-Clause" +]) + +# Generated Targets + +# Unsupported target "dump_process_registers" with type "example" omitted + +rust_library( + name = "mach", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.2", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(any(target_os = "macos", target_os = "ios")) + ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", + "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + ): [ + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel b/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel new file mode 100644 index 000000000..609a04f72 --- /dev/null +++ b/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "memchr", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + "use_std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.3.4", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel b/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel new file mode 100644 index 000000000..fcd27b849 --- /dev/null +++ b/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "memoffset", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.6", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel new file mode 100644 index 000000000..2ba57dca7 --- /dev/null +++ b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR (Zlib OR Apache-2.0)" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "miniz_oxide", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.3", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___adler__0_2_3//:adler", + ], +) diff --git a/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel b/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel new file mode 100644 index 000000000..cf3ccba1f --- /dev/null +++ b/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # CC0-1.0 from expression "CC0-1.0" +]) + +# Generated Targets + +rust_library( + name = "more_asserts", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.object-0.21.1.bazel b/bazel/cargo/remote/BUILD.object-0.21.1.bazel new file mode 100644 index 000000000..13a5d548d --- /dev/null +++ b/bazel/cargo/remote/BUILD.object-0.21.1.bazel @@ -0,0 +1,79 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "nm" with type "example" omitted + +# Unsupported target "objcopy" with type "example" omitted + +# Unsupported target "objdump" with type "example" omitted + +rust_library( + name = "object", + srcs = glob(["**/*.rs"]), + crate_features = [ + "coff", + "crc32fast", + "elf", + "indexmap", + "macho", + "pe", + "read", + "read_core", + "std", + "unaligned", + "wasm", + "wasmparser", + "write", + "write_core", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.1", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___crc32fast__1_2_1//:crc32fast", + "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host_raze___wasmparser__0_57_0//:wasmparser", + ], +) + +# Unsupported target "integration" with type "test" omitted + +# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.object-0.22.0.bazel b/bazel/cargo/remote/BUILD.object-0.22.0.bazel new file mode 100644 index 000000000..0fc165ee0 --- /dev/null +++ b/bazel/cargo/remote/BUILD.object-0.22.0.bazel @@ -0,0 +1,73 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "ar" with type "example" omitted + +# Unsupported target "nm" with type "example" omitted + +# Unsupported target "objcopy" with type "example" omitted + +# Unsupported target "objdump" with type "example" omitted + +# Unsupported target "objectmap" with type "example" omitted + +rust_library( + name = "object", + srcs = glob(["**/*.rs"]), + crate_features = [ + "archive", + "coff", + "elf", + "macho", + "pe", + "read_core", + "unaligned", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.22.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "integration" with type "test" omitted + +# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.once_cell-1.4.1.bazel b/bazel/cargo/remote/BUILD.once_cell-1.4.1.bazel new file mode 100644 index 000000000..26c675b0e --- /dev/null +++ b/bazel/cargo/remote/BUILD.once_cell-1.4.1.bazel @@ -0,0 +1,70 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "bench" with type "example" omitted + +# Unsupported target "bench_acquire" with type "example" 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 = "once_cell", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.4.1", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel b/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel new file mode 100644 index 000000000..3e5b60aae --- /dev/null +++ b/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel @@ -0,0 +1,68 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "proc_macro2", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=use_proc_macro", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.24", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___unicode_xid__0_2_1//:unicode_xid", + ], +) + +# Unsupported target "comments" with type "test" omitted + +# Unsupported target "features" with type "test" omitted + +# Unsupported target "marker" with type "test" omitted + +# Unsupported target "test" with type "test" omitted + +# Unsupported target "test_fmt" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.psm-0.1.11.bazel b/bazel/cargo/remote/BUILD.psm-0.1.11.bazel new file mode 100644 index 000000000..8db8bbb94 --- /dev/null +++ b/bazel/cargo/remote/BUILD.psm-0.1.11.bazel @@ -0,0 +1,99 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "psm_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.11", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host_raze___cc__1_0_62//:cc", + ], +) + +# Unsupported target "info" with type "example" omitted + +# Unsupported target "on_stack_fibo" with type "example" omitted + +# Unsupported target "on_stack_fibo_alloc_each_frame" with type "example" omitted + +# Unsupported target "panics" with type "example" omitted + +# Unsupported target "replace_stack_1" with type "example" omitted + +# Unsupported target "thread" with type "example" omitted + +rust_library( + name = "psm", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=asm", + "--cfg=feature=\"bindgen\"", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.11", + # buildifier: leave-alone + deps = [ + ":psm_build_script", + ], +) + +# Unsupported target "stack_direction" with type "test" omitted + +# Unsupported target "stack_direction_2" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.quote-1.0.7.bazel b/bazel/cargo/remote/BUILD.quote-1.0.7.bazel new file mode 100644 index 000000000..e00e89b69 --- /dev/null +++ b/bazel/cargo/remote/BUILD.quote-1.0.7.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "quote", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.7", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel b/bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel new file mode 100644 index 000000000..8b473a75c --- /dev/null +++ b/bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel @@ -0,0 +1,186 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "raw_cpuid_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 = "7.0.3", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host_raze___cc__1_0_62//:cc", + "@proxy_wasm_cpp_host_raze___rustc_version__0_2_3//:rustc_version", + ] + 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", + ): [ + ], + "//conditions:default": [], + }), +) + +rust_binary( + # Prefix bin name to disambiguate from (probable) collision with lib name + # N.B.: The exact form of this is subject to change. + name = "cargo_bin_cpuid", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/bin/cpuid.rs", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=feature=\"bindgen\"", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "7.0.3", + # buildifier: leave-alone + deps = [ + # Binaries get an implicit dependency on their crate's lib + ":raw_cpuid", + ":raw_cpuid_build_script", + "@proxy_wasm_cpp_host_raze___bitflags__1_2_1//:bitflags", + ] + 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", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "cache" with type "example" omitted + +# Unsupported target "cpu" with type "example" omitted + +# Unsupported target "topology" with type "example" omitted + +# Unsupported target "tsc_frequency" with type "example" omitted + +rust_library( + name = "raw_cpuid", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=feature=\"bindgen\"", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "7.0.3", + # buildifier: leave-alone + deps = [ + ":raw_cpuid_build_script", + "@proxy_wasm_cpp_host_raze___bitflags__1_2_1//:bitflags", + ] + 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", + ): [ + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel new file mode 100644 index 000000000..f51d1d49b --- /dev/null +++ b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "regalloc", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.0.31", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___rustc_hash__1_1_0//:rustc_hash", + "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", + ], +) diff --git a/bazel/cargo/remote/BUILD.regex-1.4.2.bazel b/bazel/cargo/remote/BUILD.regex-1.4.2.bazel new file mode 100644 index 000000000..d87e8e31e --- /dev/null +++ b/bazel/cargo/remote/BUILD.regex-1.4.2.bazel @@ -0,0 +1,95 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "shootout-regex-dna" with type "example" omitted + +# Unsupported target "shootout-regex-dna-bytes" with type "example" omitted + +# Unsupported target "shootout-regex-dna-cheat" with type "example" omitted + +# Unsupported target "shootout-regex-dna-replace" with type "example" omitted + +# Unsupported target "shootout-regex-dna-single" with type "example" omitted + +# Unsupported target "shootout-regex-dna-single-cheat" with type "example" omitted + +rust_library( + name = "regex", + srcs = glob(["**/*.rs"]), + crate_features = [ + "aho-corasick", + "memchr", + "perf", + "perf-cache", + "perf-dfa", + "perf-inline", + "perf-literal", + "std", + "thread_local", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.4.2", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___aho_corasick__0_7_15//:aho_corasick", + "@proxy_wasm_cpp_host_raze___memchr__2_3_4//:memchr", + "@proxy_wasm_cpp_host_raze___regex_syntax__0_6_21//:regex_syntax", + "@proxy_wasm_cpp_host_raze___thread_local__1_0_1//:thread_local", + ], +) + +# Unsupported target "backtrack" with type "test" omitted + +# Unsupported target "backtrack-bytes" with type "test" omitted + +# Unsupported target "backtrack-utf8bytes" with type "test" omitted + +# Unsupported target "crates-regex" with type "test" omitted + +# Unsupported target "default" with type "test" omitted + +# Unsupported target "default-bytes" with type "test" omitted + +# Unsupported target "nfa" with type "test" omitted + +# Unsupported target "nfa-bytes" with type "test" omitted + +# Unsupported target "nfa-utf8bytes" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.regex-syntax-0.6.21.bazel b/bazel/cargo/remote/BUILD.regex-syntax-0.6.21.bazel new file mode 100644 index 000000000..0ba2aa07b --- /dev/null +++ b/bazel/cargo/remote/BUILD.regex-syntax-0.6.21.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "bench" with type "bench" omitted + +rust_library( + name = "regex_syntax", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.6.21", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/remote/BUILD.region-2.2.0.bazel new file mode 100644 index 000000000..f2b384bda --- /dev/null +++ b/bazel/cargo/remote/BUILD.region-2.2.0.bazel @@ -0,0 +1,76 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "region", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.2.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___bitflags__1_2_1//:bitflags", + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + ] + selects.with_or({ + # cfg(any(target_os = "macos", target_os = "ios")) + ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", + "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + ): [ + "@proxy_wasm_cpp_host_raze___mach__0_3_2//:mach", + ], + "//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", + ): [ + "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel new file mode 100644 index 000000000..94aa88801 --- /dev/null +++ b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "rustc_demangle", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.18", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel new file mode 100644 index 000000000..cf73dd69a --- /dev/null +++ b/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +rust_library( + name = "rustc_hash", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.1.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel b/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel new file mode 100644 index 000000000..ee1d731cf --- /dev/null +++ b/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel @@ -0,0 +1,53 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "rustc_version", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.3", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___semver__0_9_0//:semver", + ], +) diff --git a/bazel/cargo/remote/BUILD.semver-0.9.0.bazel b/bazel/cargo/remote/BUILD.semver-0.9.0.bazel new file mode 100644 index 000000000..b50520c54 --- /dev/null +++ b/bazel/cargo/remote/BUILD.semver-0.9.0.bazel @@ -0,0 +1,60 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "semver", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___semver_parser__0_7_0//:semver_parser", + ], +) + +# Unsupported target "deprecation" with type "test" omitted + +# Unsupported target "regression" with type "test" omitted + +# Unsupported target "serde" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel b/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel new file mode 100644 index 000000000..7d54b9362 --- /dev/null +++ b/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "semver_parser", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.7.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.serde-1.0.117.bazel b/bazel/cargo/remote/BUILD.serde-1.0.117.bazel new file mode 100644 index 000000000..0134fe601 --- /dev/null +++ b/bazel/cargo/remote/BUILD.serde-1.0.117.bazel @@ -0,0 +1,61 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "serde", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "derive", + "serde_derive", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + proc_macro_deps = [ + "@proxy_wasm_cpp_host_raze___serde_derive__1_0_117//:serde_derive", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.117", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.serde_derive-1.0.117.bazel b/bazel/cargo/remote/BUILD.serde_derive-1.0.117.bazel new file mode 100644 index 000000000..9f281a89f --- /dev/null +++ b/bazel/cargo/remote/BUILD.serde_derive-1.0.117.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "serde_derive", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.117", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host_raze___quote__1_0_7//:quote", + "@proxy_wasm_cpp_host_raze___syn__1_0_48//:syn", + ], +) diff --git a/bazel/cargo/remote/BUILD.smallvec-1.4.2.bazel b/bazel/cargo/remote/BUILD.smallvec-1.4.2.bazel new file mode 100644 index 000000000..27cef18cd --- /dev/null +++ b/bazel/cargo/remote/BUILD.smallvec-1.4.2.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "bench" with type "bench" omitted + +rust_library( + name = "smallvec", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.4.2", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "macro" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel b/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel new file mode 100644 index 000000000..5355877b2 --- /dev/null +++ b/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "stable_deref_trait", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.2.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.syn-1.0.48.bazel b/bazel/cargo/remote/BUILD.syn-1.0.48.bazel new file mode 100644 index 000000000..cb2cf240e --- /dev/null +++ b/bazel/cargo/remote/BUILD.syn-1.0.48.bazel @@ -0,0 +1,121 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# 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"]), + crate_features = [ + "clone-impls", + "default", + "derive", + "parsing", + "printing", + "proc-macro", + "quote", + "visit", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.48", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host_raze___quote__1_0_7//:quote", + "@proxy_wasm_cpp_host_raze___unicode_xid__0_2_1//:unicode_xid", + ], +) + +# Unsupported target "test_asyncness" with type "test" omitted + +# Unsupported target "test_attribute" with type "test" omitted + +# Unsupported target "test_derive_input" with type "test" omitted + +# Unsupported target "test_expr" with type "test" omitted + +# Unsupported target "test_generics" with type "test" omitted + +# Unsupported target "test_grouping" with type "test" omitted + +# Unsupported target "test_ident" with type "test" omitted + +# Unsupported target "test_item" with type "test" omitted + +# Unsupported target "test_iterators" with type "test" omitted + +# Unsupported target "test_lit" with type "test" omitted + +# Unsupported target "test_meta" with type "test" omitted + +# Unsupported target "test_parse_buffer" with type "test" omitted + +# Unsupported target "test_parse_stream" with type "test" omitted + +# Unsupported target "test_pat" with type "test" omitted + +# Unsupported target "test_path" with type "test" omitted + +# Unsupported target "test_precedence" with type "test" omitted + +# Unsupported target "test_receiver" with type "test" omitted + +# Unsupported target "test_round_trip" with type "test" omitted + +# Unsupported target "test_shebang" with type "test" omitted + +# Unsupported target "test_should_parse" with type "test" omitted + +# Unsupported target "test_size" with type "test" omitted + +# Unsupported target "test_stmt" with type "test" omitted + +# Unsupported target "test_token_trees" with type "test" omitted + +# Unsupported target "test_ty" with type "test" omitted + +# Unsupported target "test_visibility" with type "test" omitted + +# Unsupported target "zzz_stable" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.target-lexicon-0.11.1.bazel b/bazel/cargo/remote/BUILD.target-lexicon-0.11.1.bazel new file mode 100644 index 000000000..851de7a80 --- /dev/null +++ b/bazel/cargo/remote/BUILD.target-lexicon-0.11.1.bazel @@ -0,0 +1,87 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "target_lexicon_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.11.1", + visibility = ["//visibility:private"], + deps = [ + ], +) + +# Unsupported target "host" with type "example" omitted + +# Unsupported target "misc" with type "example" omitted + +rust_library( + name = "target_lexicon", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=feature=\"force_unix_path_separator\"", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.11.1", + # buildifier: leave-alone + deps = [ + ":target_lexicon_build_script", + ], +) diff --git a/bazel/cargo/remote/BUILD.termcolor-1.1.0.bazel b/bazel/cargo/remote/BUILD.termcolor-1.1.0.bazel new file mode 100644 index 000000000..d3e4edb9a --- /dev/null +++ b/bazel/cargo/remote/BUILD.termcolor-1.1.0.bazel @@ -0,0 +1,63 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +rust_library( + name = "termcolor", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.1.0", + # buildifier: leave-alone + deps = [ + ] + 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", + ): [ + "@proxy_wasm_cpp_host_raze___winapi_util__0_1_5//:winapi_util", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel b/bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel new file mode 100644 index 000000000..d2d447c7c --- /dev/null +++ b/bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel @@ -0,0 +1,79 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "thiserror", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + proc_macro_deps = [ + "@proxy_wasm_cpp_host_raze___thiserror_impl__1_0_22//:thiserror_impl", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.22", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test_backtrace" with type "test" omitted + +# Unsupported target "test_deprecated" with type "test" omitted + +# Unsupported target "test_display" with type "test" omitted + +# Unsupported target "test_error" with type "test" omitted + +# Unsupported target "test_expr" with type "test" omitted + +# Unsupported target "test_from" with type "test" omitted + +# Unsupported target "test_lints" with type "test" omitted + +# Unsupported target "test_option" with type "test" omitted + +# Unsupported target "test_path" with type "test" omitted + +# Unsupported target "test_source" with type "test" omitted + +# Unsupported target "test_transparent" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel new file mode 100644 index 000000000..52912792e --- /dev/null +++ b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "thiserror_impl", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.22", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host_raze___quote__1_0_7//:quote", + "@proxy_wasm_cpp_host_raze___syn__1_0_48//:syn", + ], +) diff --git a/bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel b/bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel new file mode 100644 index 000000000..bda31ef2f --- /dev/null +++ b/bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "thread_local" with type "bench" omitted + +rust_library( + name = "thread_local", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.1", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___lazy_static__1_4_0//:lazy_static", + ], +) diff --git a/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel b/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel new file mode 100644 index 000000000..0cd42cb6f --- /dev/null +++ b/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +rust_library( + name = "unicode_xid", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "exhaustive_tests" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel new file mode 100644 index 000000000..9320d255b --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "benchmark" with type "bench" omitted + +# Unsupported target "dump" with type "example" omitted + +# Unsupported target "simple" with type "example" omitted + +rust_library( + name = "wasmparser", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.57.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel new file mode 100644 index 000000000..d29245faa --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "benchmark" with type "bench" omitted + +# Unsupported target "simple" with type "example" omitted + +rust_library( + name = "wasmparser", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.65.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel new file mode 100644 index 000000000..9fc65ff9b --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel @@ -0,0 +1,80 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + "@proxy_wasm_cpp_host_raze___backtrace__0_3_54//:backtrace", + "@proxy_wasm_cpp_host_raze___bincode__1_3_1//:bincode", + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host_raze___lazy_static__1_4_0//:lazy_static", + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___region__2_2_0//:region", + "@proxy_wasm_cpp_host_raze___rustc_demangle__0_1_18//:rustc_demangle", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host_raze___wasmtime_jit__0_21_0//:wasmtime_jit", + "@proxy_wasm_cpp_host_raze___wasmtime_profiling__0_21_0//:wasmtime_profiling", + "@proxy_wasm_cpp_host_raze___wasmtime_runtime__0_21_0//:wasmtime_runtime", + ] + selects.with_or({ + # cfg(target_os = "windows") + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel new file mode 100644 index 000000000..8a7a05999 --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "restricted", # no license +]) + +# Generated Targets + +rust_library( + name = "wasmtime_c_api_macros", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "crates/c-api/macros/src/lib.rs", + crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.19.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host_raze___quote__1_0_7//:quote", + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel new file mode 100644 index 000000000..57d1bcbda --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_cranelift", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host_raze___cranelift_frontend__0_68_0//:cranelift_frontend", + "@proxy_wasm_cpp_host_raze___cranelift_wasm__0_68_0//:cranelift_wasm", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel new file mode 100644 index 000000000..603e527cf --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel @@ -0,0 +1,60 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_debug", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + "@proxy_wasm_cpp_host_raze___gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host_raze___object__0_21_1//:object", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel new file mode 100644 index 000000000..05effb2e4 --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel @@ -0,0 +1,64 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_environ", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host_raze___cranelift_wasm__0_68_0//:cranelift_wasm", + "@proxy_wasm_cpp_host_raze___gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel new file mode 100644 index 000000000..475899a65 --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel @@ -0,0 +1,85 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_jit", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host_raze___cranelift_frontend__0_68_0//:cranelift_frontend", + "@proxy_wasm_cpp_host_raze___cranelift_native__0_68_0//:cranelift_native", + "@proxy_wasm_cpp_host_raze___cranelift_wasm__0_68_0//:cranelift_wasm", + "@proxy_wasm_cpp_host_raze___gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host_raze___object__0_21_1//:object", + "@proxy_wasm_cpp_host_raze___region__2_2_0//:region", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", + "@proxy_wasm_cpp_host_raze___wasmtime_cranelift__0_21_0//:wasmtime_cranelift", + "@proxy_wasm_cpp_host_raze___wasmtime_debug__0_21_0//:wasmtime_debug", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host_raze___wasmtime_obj__0_21_0//:wasmtime_obj", + "@proxy_wasm_cpp_host_raze___wasmtime_profiling__0_21_0//:wasmtime_profiling", + "@proxy_wasm_cpp_host_raze___wasmtime_runtime__0_21_0//:wasmtime_runtime", + ] + selects.with_or({ + # cfg(target_os = "windows") + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel new file mode 100644 index 000000000..194b670e5 --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_obj", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host_raze___object__0_21_1//:object", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host_raze___wasmtime_debug__0_21_0//:wasmtime_debug", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel new file mode 100644 index 000000000..4e96d1822 --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel @@ -0,0 +1,60 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_profiling", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host_raze___lazy_static__1_4_0//:lazy_static", + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host_raze___wasmtime_runtime__0_21_0//:wasmtime_runtime", + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel new file mode 100644 index 000000000..a34655a4e --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel @@ -0,0 +1,77 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "wasmtime_runtime", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___backtrace__0_3_54//:backtrace", + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host_raze___lazy_static__1_4_0//:lazy_static", + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___memoffset__0_5_6//:memoffset", + "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host_raze___psm__0_1_11//:psm", + "@proxy_wasm_cpp_host_raze___region__2_2_0//:region", + "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + ] + selects.with_or({ + # cfg(target_os = "windows") + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel new file mode 100644 index 000000000..0ab8cb65a --- /dev/null +++ b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel @@ -0,0 +1,69 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "winapi", + srcs = glob(["**/*.rs"]), + crate_features = [ + "basetsd", + "consoleapi", + "errhandlingapi", + "fileapi", + "impl-default", + "memoryapi", + "minwinbase", + "minwindef", + "processenv", + "std", + "sysinfoapi", + "winbase", + "wincon", + "winerror", + "winnt", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.9", + # buildifier: leave-alone + deps = [ + ], +) 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 new file mode 100644 index 000000000..7a0447a40 --- /dev/null +++ b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "winapi_i686_pc_windows_gnu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel new file mode 100644 index 000000000..d2f2f0359 --- /dev/null +++ b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel @@ -0,0 +1,63 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +rust_library( + name = "winapi_util", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.5", + # buildifier: leave-alone + deps = [ + ] + 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", + ): [ + "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) 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 new file mode 100644 index 000000000..95d47678c --- /dev/null +++ b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_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. + # + # 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 + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "winapi_x86_64_pc_windows_gnu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/external/wasm-c-api.BUILD b/bazel/external/wasm-c-api.BUILD new file mode 100644 index 000000000..22cd50dac --- /dev/null +++ b/bazel/external/wasm-c-api.BUILD @@ -0,0 +1,15 @@ +licenses(["notice"]) # Apache 2 + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "wasmtime_lib", + hdrs = [ + "include/wasm.h", + ], + defines = ["WASM_WASMTIME"], + include_prefix = "wasmtime", + deps = [ + "@wasmtime//:rust_c_api", + ], +) diff --git a/bazel/external/wasmtime.BUILD b/bazel/external/wasmtime.BUILD new file mode 100644 index 000000000..a5cb79844 --- /dev/null +++ b/bazel/external/wasmtime.BUILD @@ -0,0 +1,32 @@ +load("@io_bazel_rules_rust//rust:rust.bzl", "rust_library") + +licenses(["notice"]) # Apache 2 + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "helpers_lib", + srcs = [ + "crates/runtime/src/helpers.c", + ], + visibility = ["//visibility:private"], +) + +rust_library( + name = "rust_c_api", + srcs = glob(["crates/c-api/src/**/*.rs"]), + crate_features = [], + crate_root = "crates/c-api/src/lib.rs", + crate_type = "staticlib", + edition = "2018", + proc_macro_deps = [ + "@proxy_wasm_cpp_host//bazel/cargo:wasmtime_c_api_macros", + ], + deps = [ + ":helpers_lib", + "@proxy_wasm_cpp_host//bazel/cargo:anyhow", + "@proxy_wasm_cpp_host//bazel/cargo:env_logger", + "@proxy_wasm_cpp_host//bazel/cargo:once_cell", + "@proxy_wasm_cpp_host//bazel/cargo:wasmtime", + ], +) diff --git a/bazel/variables.bzl b/bazel/variables.bzl new file mode 100644 index 000000000..1d94a2aab --- /dev/null +++ b/bazel/variables.bzl @@ -0,0 +1,44 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +COPTS = select({ + "@bazel_tools//src/conditions:windows": [ + "/std:c++17", + "-DWITHOUT_ZLIB", + ], + "//conditions:default": [ + "-std=c++17", + "-DWITHOUT_ZLIB", + ], +}) + +# https://bytecodealliance.github.io/wasmtime/c-api/ +LINKOPTS = select({ + "@bazel_tools//src/conditions:windows": [ + "-", + "ws2_32.lib", + "advapi32.lib", + "userenv.lib", + "ntdll.lib", + "shell32.lib", + "ole32.lib", + ], + "@bazel_tools//src/conditions:darwin": [], + "//conditions:default": [ + # required for linux + "-lpthread", + "-ldl", + "-lm", + ], +}) diff --git a/include/proxy-wasm/wasmtime.h b/include/proxy-wasm/wasmtime.h new file mode 100644 index 000000000..e3fe4b48c --- /dev/null +++ b/include/proxy-wasm/wasmtime.h @@ -0,0 +1,23 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include "include/proxy-wasm/wasm_vm.h" + +namespace proxy_wasm { + +std::unique_ptr createWasmtimeVm(); + +} // namespace proxy_wasm diff --git a/src/common/types.h b/src/common/types.h new file mode 100644 index 000000000..82803c9dc --- /dev/null +++ b/src/common/types.h @@ -0,0 +1,40 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace proxy_wasm { +namespace common { + +template +class CSmartPtr : public std::unique_ptr { +public: + CSmartPtr() : std::unique_ptr(nullptr, deleter) {} + CSmartPtr(T *object) : std::unique_ptr(object, deleter) {} +}; + +template class CSmartType { +public: + CSmartType() { initializer(&item); } + ~CSmartType() { deleter(&item); } + T *get() { return &item; } + +private: + T item; +}; + +} // namespace common +} // namespace proxy_wasm diff --git a/src/wasmtime/types.h b/src/wasmtime/types.h new file mode 100644 index 000000000..afae66e58 --- /dev/null +++ b/src/wasmtime/types.h @@ -0,0 +1,46 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "src/common/types.h" +#include "wasmtime/include/wasm.h" + +namespace proxy_wasm { +namespace wasmtime { + +using WasmEnginePtr = common::CSmartPtr; +using WasmFuncPtr = common::CSmartPtr; +using WasmStorePtr = common::CSmartPtr; +using WasmModulePtr = common::CSmartPtr; +using WasmSharedModulePtr = common::CSmartPtr; +using WasmMemoryPtr = common::CSmartPtr; +using WasmTablePtr = common::CSmartPtr; +using WasmInstancePtr = common::CSmartPtr; +using WasmFunctypePtr = common::CSmartPtr; +using WasmTrapPtr = common::CSmartPtr; +using WasmExternPtr = common::CSmartPtr; + +using WasmByteVec = + common::CSmartType; +using WasmImporttypeVec = common::CSmartType; +using WasmExportTypeVec = common::CSmartType; +using WasmExternVec = + common::CSmartType; +using WasmValtypeVec = + common::CSmartType; + +} // namespace wasmtime + +} // namespace proxy_wasm diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc new file mode 100644 index 000000000..f1001e1c6 --- /dev/null +++ b/src/wasmtime/wasmtime.cc @@ -0,0 +1,697 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "include/proxy-wasm/wasmtime.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "include/proxy-wasm/wasm_vm.h" +#include "src/wasmtime/types.h" +#include "wasmtime/include/wasm.h" + +namespace proxy_wasm { +namespace wasmtime { + +struct FuncData { + FuncData(std::string name) : name_(std::move(name)) {} + + std::string name_; + WasmFuncPtr callback_; + void *raw_func_; +}; + +using FuncDataPtr = std::unique_ptr; + +wasm_engine_t *engine() { + static const auto engine = WasmEnginePtr(wasm_engine_new()); + return engine.get(); +} + +class Wasmtime : public WasmVm { +public: + Wasmtime() {} + + std::string_view runtime() override { return "wasmtime"; } + Cloneable cloneable() override { return Cloneable::CompiledBytecode; } + std::string_view getPrecompiledSectionName() override { return ""; } + + bool load(const std::string &code, bool allow_precompiled = false) override; + AbiVersion getAbiVersion() override; + std::string_view getCustomSection(std::string_view name) override; + bool link(std::string_view debug_name) override; + std::unique_ptr clone() override; + uint64_t getMemorySize() override; + std::optional getMemory(uint64_t pointer, uint64_t size) override; + bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; + bool getWord(uint64_t pointer, Word *word) override; + bool setWord(uint64_t pointer, Word word) override; + +#define _REGISTER_HOST_FUNCTION(T) \ + void registerCallback(std::string_view module_name, std::string_view function_name, T, \ + typename ConvertFunctionTypeWordToUint32::type f) override { \ + registerHostFunctionImpl(module_name, function_name, f); \ + }; + FOR_ALL_WASM_VM_IMPORTS(_REGISTER_HOST_FUNCTION) +#undef _REGISTER_HOST_FUNCTION + +#define _GET_MODULE_FUNCTION(T) \ + void getFunction(std::string_view function_name, T *f) override { \ + getModuleFunctionImpl(function_name, f); \ + }; + FOR_ALL_WASM_VM_EXPORTS(_GET_MODULE_FUNCTION) +#undef _GET_MODULE_FUNCTION +private: + bool getStrippedSource(WasmByteVec *out); + + template + void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, + void (*function)(void *, Args...)); + + template + void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, + R (*function)(void *, Args...)); + + template + void getModuleFunctionImpl(std::string_view function_name, + std::function *function); + + template + void getModuleFunctionImpl(std::string_view function_name, + std::function *function); + + WasmByteVec source_; + WasmStorePtr store_; + WasmModulePtr module_; + WasmSharedModulePtr shared_module_; + WasmInstancePtr instance_; + + WasmMemoryPtr memory_; + WasmTablePtr table_; + + std::unordered_map host_functions_; + std::unordered_map module_functions_; +}; + +// TODO(mathetake): move to proxy_wasm::common::* +static uint32_t parseVarint(const byte_t *&pos, const byte_t *end) { + uint32_t n = 0; + uint32_t shift = 0; + byte_t b; + do { + if (pos + 1 > end) { + abort(); + } + b = *pos++; + n += (b & 0x7f) << shift; + shift += 7; + } while ((b & 0x80) != 0); + return n; +} + +bool Wasmtime::load(const std::string &code, bool allow_precompiled) { + store_ = wasm_store_new(engine()); + + // Wasm file header is 8 bytes (magic number + version). + static const uint8_t magic_number[4] = {0x00, 0x61, 0x73, 0x6d}; + if (code.size() < 8 || ::memcmp(code.data(), magic_number, 4) != 0) { + return false; + } + + wasm_byte_vec_new_uninitialized(source_.get(), code.size()); + ::memcpy(source_.get()->data, code.data(), code.size()); + + WasmByteVec stripped; + module_ = + wasm_module_new(store_.get(), getStrippedSource(&stripped) ? stripped.get() : source_.get()); + + if (module_) { + shared_module_ = wasm_module_share(module_.get()); + assert(shared_module_ != nullptr); + } + + return module_ != nullptr; +} + +std::unique_ptr Wasmtime::clone() { + assert(shared_module_ != nullptr); + auto clone = std::make_unique(); + + clone->integration().reset(integration()->clone()); + clone->store_ = wasm_store_new(engine()); + clone->module_ = wasm_module_obtain(clone->store_.get(), shared_module_.get()); + return clone; +} + +// TODO(mathetake): move to proxy_wasm::common::* +bool Wasmtime::getStrippedSource(WasmByteVec *out) { + std::vector stripped; + + const byte_t *pos = source_.get()->data + 8 /* Wasm header */; + const byte_t *end = source_.get()->data + source_.get()->size; + while (pos < end) { + const auto section_start = pos; + if (pos + 1 > end) { + return false; + } + const auto section_type = *pos++; + const auto section_len = parseVarint(pos, end); + if (section_len == static_cast(-1) || pos + section_len > end) { + return false; + } + if (section_type == 0 /* custom section */) { + const auto section_data_start = pos; + const auto section_name_len = parseVarint(pos, end); + if (section_name_len == static_cast(-1) || pos + section_name_len > end) { + return false; + } + auto section_name = std::string_view(pos, section_name_len); + if (section_name.find("precompiled_") != std::string::npos) { + // If this is the first "precompiled_" section, then save everything + // before it, otherwise skip it. + if (stripped.empty()) { + const byte_t *start = source_.get()->data; + stripped.insert(stripped.end(), start, section_start); + } + } + pos = section_data_start + section_len; + } else { + pos += section_len; + // Save this section if we already saw a custom "precompiled_" section. + if (!stripped.empty()) { + stripped.insert(stripped.end(), section_start, pos /* section end */); + } + } + } + + if (!stripped.empty()) { + wasm_byte_vec_new_uninitialized(out->get(), stripped.size()); + ::memcpy(out->get()->data, stripped.data(), stripped.size()); + return true; + } + return false; +} + +static bool equalValTypes(const wasm_valtype_vec_t *left, const wasm_valtype_vec_t *right) { + if (left->size != right->size) { + return false; + } + + for (size_t i = 0; i < left->size; i++) { + if (wasm_valtype_kind(left->data[i]) != wasm_valtype_kind(right->data[i])) { + return false; + } + } + + return true; +} + +static const char *printValKind(wasm_valkind_t kind) { + switch (kind) { + case WASM_I32: + return "i32"; + case WASM_I64: + return "i64"; + case WASM_F32: + return "f32"; + case WASM_F64: + return "f64"; + case WASM_ANYREF: + return "anyref"; + case WASM_FUNCREF: + return "funcref"; + default: + return "unknown"; + } +} + +static std::string printValTypes(const wasm_valtype_vec_t *types) { + if (types->size == 0) { + return "void"; + } + + std::string s; + s.reserve(types->size * 8 /* max size + " " */ - 1); + for (size_t i = 0; i < types->size; i++) { + if (i) { + s.append(" "); + } + s.append(printValKind(wasm_valtype_kind(types->data[i]))); + } + return s; +} + +bool Wasmtime::link(std::string_view debug_name) { + assert(module_ != nullptr); + + WasmImporttypeVec import_types; + wasm_module_imports(module_.get(), import_types.get()); + + std::vector imports; + for (size_t i = 0; i < import_types.get()->size; i++) { + const wasm_name_t *module_name_ptr = wasm_importtype_module(import_types.get()->data[i]); + const wasm_name_t *name_ptr = wasm_importtype_name(import_types.get()->data[i]); + const wasm_externtype_t *extern_type = wasm_importtype_type(import_types.get()->data[i]); + + std::string_view module_name(module_name_ptr->data, module_name_ptr->size); + std::string_view name(name_ptr->data, name_ptr->size); + assert(name_ptr->size > 0); + switch (wasm_externtype_kind(extern_type)) { + case WASM_EXTERN_FUNC: { + auto it = host_functions_.find(std::string(module_name) + "." + std::string(name)); + if (it == host_functions_.end()) { + fail(FailState::UnableToInitializeCode, + std::string("Failed to load Wasm module due to a missing import: ") + + std::string(module_name) + "." + std::string(name)); + break; + } + + auto func = it->second->callback_.get(); + const wasm_functype_t *exp_type = wasm_externtype_as_functype_const(extern_type); + WasmFunctypePtr actual_type = wasm_func_type(it->second->callback_.get()); + if (!equalValTypes(wasm_functype_params(exp_type), wasm_functype_params(actual_type.get())) || + !equalValTypes(wasm_functype_results(exp_type), + wasm_functype_results(actual_type.get()))) { + fail( + FailState::UnableToInitializeCode, + std::string("Failed to load Wasm module due to an import type mismatch for function ") + + std::string(module_name) + "." + std::string(name) + + ", want: " + printValTypes(wasm_functype_params(exp_type)) + " -> " + + printValTypes(wasm_functype_results(exp_type)) + + ", but host exports: " + printValTypes(wasm_functype_params(actual_type.get())) + + " -> " + printValTypes(wasm_functype_results(actual_type.get()))); + break; + } + imports.push_back(wasm_func_as_extern(func)); + } break; + case WASM_EXTERN_GLOBAL: { + // TODO(mathetake): add support when/if needed. + fail(FailState::UnableToInitializeCode, + "Failed to load Wasm module due to a missing import: " + std::string(module_name) + "." + + std::string(name)); + } break; + case WASM_EXTERN_MEMORY: { + assert(memory_ == nullptr); + const wasm_memorytype_t *memory_type = + wasm_externtype_as_memorytype_const(extern_type); // owned by `extern_type` + memory_ = wasm_memory_new(store_.get(), memory_type); + imports.push_back(wasm_memory_as_extern(memory_.get())); + } break; + case WASM_EXTERN_TABLE: { + assert(table_ == nullptr); + const wasm_tabletype_t *table_type = + wasm_externtype_as_tabletype_const(extern_type); // owned by `extern_type` + table_ = wasm_table_new(store_.get(), table_type, nullptr); + imports.push_back(wasm_table_as_extern(table_.get())); + } break; + } + } + + if (import_types.get()->size != imports.size()) { + return false; + } + + instance_ = wasm_instance_new(store_.get(), module_.get(), imports.data(), nullptr); + assert(instance_ != nullptr); + + WasmExportTypeVec export_types; + wasm_module_exports(module_.get(), export_types.get()); + + WasmExternVec exports; + wasm_instance_exports(instance_.get(), exports.get()); + + for (size_t i = 0; i < export_types.get()->size; i++) { + const wasm_externtype_t *exp_extern_type = wasm_exporttype_type(export_types.get()->data[i]); + wasm_extern_t *actual_extern = exports.get()->data[i]; + + wasm_externkind_t kind = wasm_extern_kind(actual_extern); + assert(kind == wasm_externtype_kind(exp_extern_type)); + switch (kind) { + case WASM_EXTERN_FUNC: { + WasmFuncPtr func = wasm_func_copy(wasm_extern_as_func(actual_extern)); + const wasm_name_t *name_ptr = wasm_exporttype_name(export_types.get()->data[i]); + module_functions_.insert_or_assign(std::string(name_ptr->data, name_ptr->size), + std::move(func)); + } break; + case WASM_EXTERN_GLOBAL: { + // TODO(mathetake): add support when/if needed. + } break; + case WASM_EXTERN_MEMORY: { + assert(memory_ == nullptr); + memory_ = wasm_memory_copy(wasm_extern_as_memory(actual_extern)); + assert(memory_ != nullptr); + } break; + case WASM_EXTERN_TABLE: { + // TODO(mathetake): add support when/if needed. + } break; + } + } + return true; +} + +std::string_view Wasmtime::getCustomSection(std::string_view name) { + const byte_t *pos = source_.get()->data + 8 /* Wasm header */; + const byte_t *end = source_.get()->data + source_.get()->size; + while (pos < end) { + if (pos + 1 > end) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return ""; + } + const auto section_type = *pos++; + const auto section_len = parseVarint(pos, end); + if (section_len == static_cast(-1) || pos + section_len > end) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return ""; + } + + if (section_type == 0 /* custom section */) { + const auto section_data_start = pos; + const auto section_name_len = parseVarint(pos, end); + if (section_name_len == static_cast(-1) || pos + section_name_len > end) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return ""; + } + if (section_name_len == name.size() && ::memcmp(pos, name.data(), section_name_len) == 0) { + pos += section_name_len; + return {pos, static_cast(section_data_start + section_len - pos)}; + } + pos = section_data_start + section_len; + } else { + pos += section_len; + } + } + + return ""; +} + +uint64_t Wasmtime::getMemorySize() { return wasm_memory_data_size(memory_.get()); } + +std::optional Wasmtime::getMemory(uint64_t pointer, uint64_t size) { + assert(memory_ != nullptr); + if (pointer + size > wasm_memory_data_size(memory_.get())) { + return std::nullopt; + } + return std::string_view(wasm_memory_data(memory_.get()) + pointer, size); +} + +bool Wasmtime::setMemory(uint64_t pointer, uint64_t size, const void *data) { + assert(memory_ != nullptr); + if (pointer + size > wasm_memory_data_size(memory_.get())) { + return false; + } + ::memcpy(wasm_memory_data(memory_.get()) + pointer, data, size); + return true; +} + +bool Wasmtime::getWord(uint64_t pointer, Word *word) { + assert(memory_ != nullptr); + constexpr auto size = sizeof(uint32_t); + if (pointer + size > wasm_memory_data_size(memory_.get())) { + return false; + } + + uint32_t word32; + ::memcpy(&word32, wasm_memory_data(memory_.get()) + pointer, size); + word->u64_ = word32; + return true; +} + +bool Wasmtime::setWord(uint64_t pointer, Word word) { + constexpr auto size = sizeof(uint32_t); + if (pointer + size > wasm_memory_data_size(memory_.get())) { + return false; + } + uint32_t word32 = word.u32(); + ::memcpy(wasm_memory_data(memory_.get()) + pointer, &word32, size); + return true; +} + +template void assignVal(T t, wasm_val_t &val); +template <> void assignVal(Word t, wasm_val_t &val) { + val.kind = WASM_I32; + val.of.i32 = static_cast(t.u64_); +} +template <> void assignVal(uint32_t t, wasm_val_t &val) { + val.kind = WASM_I32; + val.of.i32 = static_cast(t); +} +template <> void assignVal(uint64_t t, wasm_val_t &val) { + val.kind = WASM_I64; + val.of.i64 = static_cast(t); +} +template <> void assignVal(double t, wasm_val_t &val) { + val.kind = WASM_F64; + val.of.f64 = t; +} + +template wasm_val_t makeVal(T t) { + wasm_val_t val{}; + assignVal(t, val); + return val; +} + +template struct ConvertWordType { + using type = T; // NOLINT(readability-identifier-naming) +}; +template <> struct ConvertWordType { + using type = uint32_t; // NOLINT(readability-identifier-naming) +}; + +template auto convertArgToValTypePtr(); +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_i32(); }; +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_i32(); }; +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_i64(); }; +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_i64(); }; +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_f64(); }; + +template T convertValueTypeToArg(wasm_val_t val); +template <> uint32_t convertValueTypeToArg(wasm_val_t val) { + return static_cast(val.of.i32); +} +template <> Word convertValueTypeToArg(wasm_val_t val) { return val.of.i32; } +template <> int64_t convertValueTypeToArg(wasm_val_t val) { return val.of.i64; } +template <> uint64_t convertValueTypeToArg(wasm_val_t val) { + return static_cast(val.of.i64); +} +template <> double convertValueTypeToArg(wasm_val_t val) { return val.of.f64; } + +template +constexpr T convertValTypesToArgsTupleImpl(const U &arr, std::index_sequence) { + return std::make_tuple( + convertValueTypeToArg>::type>(arr[I])...); +} + +template ::value>> +constexpr T convertValTypesToArgsTuple(const U &arr) { + return convertValTypesToArgsTupleImpl(arr, Is()); +} + +template +void convertArgsTupleToValTypesImpl(wasm_valtype_vec_t *types, std::index_sequence) { + auto size = std::tuple_size::value; + auto ps = std::array::value>{ + convertArgToValTypePtr::type>()...}; + wasm_valtype_vec_new(types, size, ps.data()); + for (auto i = ps.begin(); i < ps.end(); i++) { // TODO(mathetake): better way to handle? + wasm_valtype_delete(*i); + } +} + +template ::value>> +void convertArgsTupleToValTypes(wasm_valtype_vec_t *types) { + convertArgsTupleToValTypesImpl(types, Is()); +} + +template WasmFunctypePtr newWasmNewFuncType() { + WasmValtypeVec params, results; + convertArgsTupleToValTypes(params.get()); + convertArgsTupleToValTypes>(results.get()); + return wasm_functype_new(params.get(), results.get()); +} + +template WasmFunctypePtr newWasmNewFuncType() { + WasmValtypeVec params, results; + convertArgsTupleToValTypes(params.get()); + convertArgsTupleToValTypes>(results.get()); + return wasm_functype_new(params.get(), results.get()); +} + +template +void Wasmtime::registerHostFunctionImpl(std::string_view module_name, + std::string_view function_name, + void (*function)(void *, Args...)) { + auto data = + std::make_unique(std::string(module_name) + "." + std::string(function_name)); + + WasmFunctypePtr type = newWasmNewFuncType>(); + WasmFuncPtr func = wasm_func_new_with_env( + store_.get(), type.get(), + [](void *data, const wasm_val_t params[], wasm_val_t results[]) -> wasm_trap_t * { + auto func_data = reinterpret_cast(data); + auto args_tuple = convertValTypesToArgsTuple>(params); + auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); + auto fn = reinterpret_cast(func_data->raw_func_); + std::apply(fn, args); + return nullptr; + }, + data.get(), nullptr); + + data->callback_ = std::move(func); + data->raw_func_ = reinterpret_cast(function); + host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), + std::move(data)); +}; + +template +void Wasmtime::registerHostFunctionImpl(std::string_view module_name, + std::string_view function_name, + R (*function)(void *, Args...)) { + auto data = + std::make_unique(std::string(module_name) + "." + std::string(function_name)); + WasmFunctypePtr type = newWasmNewFuncType>(); + WasmFuncPtr func = wasm_func_new_with_env( + store_.get(), type.get(), + [](void *data, const wasm_val_t params[], wasm_val_t results[]) -> wasm_trap_t * { + auto func_data = reinterpret_cast(data); + auto args_tuple = convertValTypesToArgsTuple>(params); + auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); + auto fn = reinterpret_cast(func_data->raw_func_); + R res = std::apply(fn, args); + assignVal(res, results[0]); + return nullptr; + }, + data.get(), nullptr); + + data->callback_ = std::move(func); + data->raw_func_ = reinterpret_cast(function); + host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), + std::move(data)); +}; + +template +void Wasmtime::getModuleFunctionImpl(std::string_view function_name, + std::function *function) { + + auto it = module_functions_.find(std::string(function_name)); + if (it == module_functions_.end()) { + *function = nullptr; + return; + } + + WasmValtypeVec exp_args, exp_returns; + convertArgsTupleToValTypes>(exp_args.get()); + convertArgsTupleToValTypes>(exp_returns.get()); + wasm_func_t *func = it->second.get(); + WasmFunctypePtr func_type = wasm_func_type(func); + + if (!equalValTypes(wasm_functype_params(func_type.get()), exp_args.get()) || + !equalValTypes(wasm_functype_results(func_type.get()), exp_returns.get())) { + fail(FailState::UnableToInitializeCode, + "Bad function signature for: " + std::string(function_name) + ", want: " + + printValTypes(exp_args.get()) + " -> " + printValTypes(exp_returns.get()) + + ", but the module exports: " + printValTypes(wasm_functype_params(func_type.get())) + + " -> " + printValTypes(wasm_functype_results(func_type.get()))); + return; + } + + *function = [func, function_name, this](ContextBase *context, Args... args) -> void { + wasm_val_t params[] = {makeVal(args)...}; + SaveRestoreContext saved_context(context); + WasmTrapPtr trap{wasm_func_call(func, params, nullptr)}; + if (trap) { + WasmByteVec error_message; + wasm_trap_message(trap.get(), error_message.get()); + fail(FailState::RuntimeError, + "Function: " + std::string(function_name) + " failed:\n" + + std::string(error_message.get()->data, error_message.get()->size)); + } + }; +}; + +template +void Wasmtime::getModuleFunctionImpl(std::string_view function_name, + std::function *function) { + auto it = module_functions_.find(std::string(function_name)); + if (it == module_functions_.end()) { + *function = nullptr; + return; + } + WasmValtypeVec exp_args, exp_returns; + convertArgsTupleToValTypes>(exp_args.get()); + convertArgsTupleToValTypes>(exp_returns.get()); + wasm_func_t *func = it->second.get(); + WasmFunctypePtr func_type = wasm_func_type(func); + if (!equalValTypes(wasm_functype_params(func_type.get()), exp_args.get()) || + !equalValTypes(wasm_functype_results(func_type.get()), exp_returns.get())) { + fail(FailState::UnableToInitializeCode, + "Bad function signature for: " + std::string(function_name) + ", want: " + + printValTypes(exp_args.get()) + " -> " + printValTypes(exp_returns.get()) + + ", but the module exports: " + printValTypes(wasm_functype_params(func_type.get())) + + " -> " + printValTypes(wasm_functype_results(func_type.get()))); + return; + } + + *function = [func, function_name, this](ContextBase *context, Args... args) -> R { + wasm_val_t params[] = {makeVal(args)...}; + wasm_val_t results[1]; + SaveRestoreContext saved_context(context); + WasmTrapPtr trap{wasm_func_call(func, params, results)}; + if (trap) { + WasmByteVec error_message; + wasm_trap_message(trap.get(), error_message.get()); + fail(FailState::RuntimeError, + "Function: " + std::string(function_name) + " failed:\n" + + std::string(error_message.get()->data, error_message.get()->size)); + return R{}; + } + + R ret = convertValueTypeToArg(results[0]); + return ret; + }; +}; + +AbiVersion Wasmtime::getAbiVersion() { + assert(module_ != nullptr); + WasmExportTypeVec export_types; + wasm_module_exports(module_.get(), export_types.get()); + + for (size_t i = 0; i < export_types.get()->size; i++) { + const wasm_externtype_t *exp_extern_type = wasm_exporttype_type(export_types.get()->data[i]); + if (wasm_externtype_kind(exp_extern_type) == WASM_EXTERN_FUNC) { + const wasm_name_t *name_ptr = wasm_exporttype_name(export_types.get()->data[i]); + std::string_view name(name_ptr->data, name_ptr->size); + if (name == "proxy_abi_version_0_1_0") { + return AbiVersion::ProxyWasm_0_1_0; + } else if (name == "proxy_abi_version_0_2_0") { + return AbiVersion::ProxyWasm_0_2_0; + } else if (name == "proxy_abi_version_0_2_1") { + return AbiVersion::ProxyWasm_0_2_1; + } + } + } + return AbiVersion::Unknown; +} + +} // namespace wasmtime + +std::unique_ptr createWasmtimeVm() { return std::make_unique(); } + +} // namespace proxy_wasm diff --git a/test/BUILD b/test/BUILD new file mode 100644 index 000000000..5a5cf662a --- /dev/null +++ b/test/BUILD @@ -0,0 +1,41 @@ +load("@rules_cc//cc:defs.bzl", "cc_test") +load("//:bazel/variables.bzl", "COPTS", "LINKOPTS") + +cc_test( + name = "null_vm_test", + srcs = ["null_vm_test.cc"], + copts = COPTS, + deps = [ + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) + +cc_test( + name = "runtime_test", + srcs = ["runtime_test.cc"], + copts = COPTS, + data = [ + "//test/test_data:abi_export.wasm", + "//test/test_data:callback.wasm", + "//test/test_data:trap.wasm", + ], + linkopts = LINKOPTS, + deps = [ + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) + +cc_test( + name = "context_test", + srcs = ["context_test.cc"], + copts = COPTS, + deps = [ + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) diff --git a/context_test.cc b/test/context_test.cc similarity index 100% rename from context_test.cc rename to test/context_test.cc diff --git a/wasm_vm_test.cc b/test/null_vm_test.cc similarity index 100% rename from wasm_vm_test.cc rename to test/null_vm_test.cc diff --git a/test/runtime_test.cc b/test/runtime_test.cc new file mode 100644 index 000000000..936834d23 --- /dev/null +++ b/test/runtime_test.cc @@ -0,0 +1,244 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "gtest/gtest.h" +#include +#include +#include +#include +#include +#include + +#include "include/proxy-wasm/context.h" +#include "include/proxy-wasm/wasm.h" + +#if defined(WASM_V8) +#include "include/proxy-wasm/v8.h" +#endif +#if defined(WASM_WAVM) +#include "include/proxy-wasm/wavm.h" +#endif +#if defined(WASM_WASMTIME) +#include "include/proxy-wasm/wasmtime.h" +#endif + +namespace proxy_wasm { +namespace { + +struct DummyIntegration : public WasmVmIntegration { + ~DummyIntegration() override{}; + WasmVmIntegration *clone() override { return new DummyIntegration{}; } + void error(std::string_view message) override { + std::cout << "ERROR from integration: " << message << std::endl; + error_message_ = message; + } + bool getNullVmFunction(std::string_view function_name, bool returns_word, int number_of_arguments, + NullPlugin *plugin, void *ptr_to_function_return) override { + return false; + }; + std::string error_message_; +}; + +class TestVM : public testing::TestWithParam { +public: + std::unique_ptr vm_; + + TestVM() : integration_(new DummyIntegration{}) { + runtime_ = GetParam(); + if (runtime_ == "") { + EXPECT_TRUE(false) << "runtime must not be empty"; +#if defined(WASM_V8) + } else if (runtime_ == "v8") { + vm_ = proxy_wasm::createV8Vm(); +#endif +#if defined(WASM_WAVM) + } else if (runtime_ == "wavm") { + vm_ = proxy_wasm::createWavmVm(); +#endif +#if defined(WASM_WASMTIME) + } else if (runtime_ == "wasmtime") { + vm_ = proxy_wasm::createWasmtimeVm(); +#endif + } + vm_->integration().reset(integration_); + } + + DummyIntegration *integration_; + + void initialize(std::string filename) { + auto path = "test/test_data/" + filename; + std::ifstream file(path, std::ios::binary); + EXPECT_FALSE(file.fail()) << "failed to open: " << path; + std::stringstream file_string_stream; + file_string_stream << file.rdbuf(); + source_ = file_string_stream.str(); + } + + std::string source_; + std::string runtime_; +}; + +static std::vector getRuntimes() { + std::vector runtimes = { +#if defined(WASM_V8) + "v8", +#endif +#if defined(WASM_WAVM) + "wavm", +#endif +#if defined(WASM_WASMTIME) + "wasmtime", +#endif + "" + }; + runtimes.pop_back(); + return runtimes; +} + +auto test_values = testing::ValuesIn(getRuntimes()); + +INSTANTIATE_TEST_SUITE_P(Runtimes, TestVM, test_values); + +TEST_P(TestVM, Basic) { + EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::CompiledBytecode); + EXPECT_EQ(vm_->runtime(), runtime_); +} + +TEST_P(TestVM, ABIVersion) { + initialize("abi_export.wasm"); + ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_EQ(vm_->getAbiVersion(), AbiVersion::ProxyWasm_0_2_0); +} + +TEST_P(TestVM, CustomSection) { + initialize("abi_export.wasm"); + char custom_section[12] = { + 0x00, // custom section id + 0x0a, // section length + 0x04, 0x68, 0x65, 0x79, 0x21, // section name: "hey!" + 0x68, 0x65, 0x6c, 0x6c, 0x6f, // content: "hello" + }; + + source_ = source_.append(&custom_section[0], 12); + ASSERT_TRUE(vm_->load(source_, false)); + auto name_section = vm_->getCustomSection("hey!"); + ASSERT_EQ(name_section, "hello"); +} + +TEST_P(TestVM, Memory) { + initialize("abi_export.wasm"); + ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_TRUE(vm_->link("")); + + Word word; + ASSERT_TRUE(vm_->setWord(0x2000, Word(100))); + ASSERT_TRUE(vm_->getWord(0x2000, &word)); + ASSERT_EQ(100, word.u64_); + + int32_t data[2] = {-1, 200}; + ASSERT_TRUE(vm_->setMemory(0x200, sizeof(int32_t) * 2, static_cast(data))); + ASSERT_TRUE(vm_->getWord(0x200, &word)); + ASSERT_EQ(-1, static_cast(word.u64_)); + ASSERT_TRUE(vm_->getWord(0x204, &word)); + ASSERT_EQ(200, static_cast(word.u64_)); +} + +TEST_P(TestVM, Clone) { + initialize("abi_export.wasm"); + ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_TRUE(vm_->link("")); + const auto address = 0x2000; + Word word; + { + auto clone = vm_->clone(); + ASSERT_TRUE(clone != nullptr); + ASSERT_NE(vm_, clone); + ASSERT_TRUE(clone->link("")); + + ASSERT_TRUE(clone->setWord(address, Word(100))); + ASSERT_TRUE(clone->getWord(address, &word)); + ASSERT_EQ(100, word.u64_); + } + + // check memory arrays are not overrapped + ASSERT_TRUE(vm_->getWord(address, &word)); + ASSERT_NE(100, word.u64_); +} + +class TestContext : public ContextBase { +public: + TestContext(){}; + void increment() { counter++; } + int64_t counter = 0; +}; + +void callback(void *raw_context) { + TestContext *context = static_cast(raw_context); + context->increment(); +} + +Word callback2(void *raw_context, Word val) { return val + 100; } + +TEST_P(TestVM, Callback) { + initialize("callback.wasm"); + ASSERT_TRUE(vm_->load(source_, false)); + + TestContext context; + current_context_ = &context; + + vm_->registerCallback( + "env", "callback", &callback, + &ConvertFunctionWordToUint32::convertFunctionWordToUint32); + + vm_->registerCallback( + "env", "callback2", &callback2, + &ConvertFunctionWordToUint32::convertFunctionWordToUint32); + + ASSERT_TRUE(vm_->link("")); + + WasmCallVoid<0> run; + vm_->getFunction("run", &run); + EXPECT_TRUE(run != nullptr); + for (auto i = 0; i < 100; i++) { + run(current_context_); + } + ASSERT_EQ(context.counter, 100); + + WasmCallWord<1> run2; + vm_->getFunction("run2", &run2); + Word res = run2(current_context_, Word{0}); + ASSERT_EQ(res.u32(), 100100); // 10000 (global) + 100(in callback) +} + +TEST_P(TestVM, Trap) { + initialize("trap.wasm"); + ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_TRUE(vm_->link("")); + WasmCallVoid<0> trigger; + vm_->getFunction("trigger", &trigger); + EXPECT_TRUE(trigger != nullptr); + trigger(current_context_); + std::string exp_message = "Function: trigger failed"; + ASSERT_TRUE(integration_->error_message_.find(exp_message) != std::string::npos); + + WasmCallWord<1> trigger2; + vm_->getFunction("trigger2", &trigger2); + EXPECT_TRUE(trigger2 != nullptr); + trigger2(current_context_, 0); + exp_message = "Function: trigger2 failed:"; + ASSERT_TRUE(integration_->error_message_.find(exp_message) != std::string::npos); +} + +} // namespace +} // namespace proxy_wasm diff --git a/test/test_data/BUILD b/test/test_data/BUILD new file mode 100644 index 000000000..d67973688 --- /dev/null +++ b/test/test_data/BUILD @@ -0,0 +1,18 @@ +load("//test/test_data:wasm.bzl", "wasm_rust_binary") + +package(default_visibility = ["//visibility:public"]) + +wasm_rust_binary( + name = "abi_export.wasm", + srcs = ["abi_export.rs"], +) + +wasm_rust_binary( + name = "callback.wasm", + srcs = ["callback.rs"], +) + +wasm_rust_binary( + name = "trap.wasm", + srcs = ["trap.rs"], +) diff --git a/test/test_data/abi_export.rs b/test/test_data/abi_export.rs new file mode 100644 index 000000000..f4a42f25f --- /dev/null +++ b/test/test_data/abi_export.rs @@ -0,0 +1,16 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#[no_mangle] +pub extern "C" fn proxy_abi_version_0_2_0() {} diff --git a/test/test_data/callback.rs b/test/test_data/callback.rs new file mode 100644 index 000000000..0c142a8ec --- /dev/null +++ b/test/test_data/callback.rs @@ -0,0 +1,35 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#[no_mangle] +pub extern "C" fn run() { + unsafe { + callback(); + } +} + +static A : i32 = 100000; + +#[no_mangle] +pub extern "C" fn run2(val: i32) -> i32 { + unsafe { + callback2(val) + A + } +} + +extern "C" { + fn callback(); + fn callback2(val: i32) -> i32; +} + diff --git a/test/test_data/trap.rs b/test/test_data/trap.rs new file mode 100644 index 000000000..8fb2a413c --- /dev/null +++ b/test/test_data/trap.rs @@ -0,0 +1,35 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#[no_mangle] +pub extern "C" fn trigger() { + one(); +} +#[no_mangle] +pub extern "C" fn trigger2(val: i32) -> i32 { + three(); + 0 +} + +fn one() { + two(); +} + +fn two() { + three(); +} + +fn three(){ + panic!("trap!"); +} diff --git a/test/test_data/wasm.bzl b/test/test_data/wasm.bzl new file mode 100644 index 000000000..a3541aa3e --- /dev/null +++ b/test/test_data/wasm.bzl @@ -0,0 +1,69 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +load("@io_bazel_rules_rust//rust:rust.bzl", "rust_binary") + +def _wasm_rust_transition_impl(settings, attr): + return { + "//command_line_option:platforms": "@io_bazel_rules_rust//rust/platform:wasm", + } + +wasm_rust_transition = transition( + implementation = _wasm_rust_transition_impl, + inputs = [], + outputs = [ + "//command_line_option:platforms", + ], +) + +def _wasm_binary_impl(ctx): + out = ctx.actions.declare_file(ctx.label.name) + ctx.actions.run( + executable = "cp", + arguments = [ctx.files.binary[0].path, out.path], + outputs = [out], + inputs = ctx.files.binary, + ) + + return [DefaultInfo(files = depset([out]), runfiles = ctx.runfiles([out]))] + +def _wasm_attrs(transition): + return { + "binary": attr.label(mandatory = True, cfg = transition), + "_whitelist_function_transition": attr.label(default = "@bazel_tools//tools/whitelists/function_transition_whitelist"), + } + +wasm_rust_binary_rule = rule( + implementation = _wasm_binary_impl, + attrs = _wasm_attrs(wasm_rust_transition), +) + +def wasm_rust_binary(name, tags = [], **kwargs): + wasm_name = "_wasm_" + name.replace(".", "_") + kwargs.setdefault("visibility", ["//visibility:public"]) + + rust_binary( + name = wasm_name, + edition = "2018", + crate_type = "cdylib", + out_binary = True, + tags = ["manual"], + **kwargs + ) + + wasm_rust_binary_rule( + name = name, + binary = ":" + wasm_name, + tags = tags + ["manual"], + )