Skip to content

Commit

Permalink
Add other features from cargo
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Mattix II <[email protected]>
  • Loading branch information
keithmattix committed Aug 12, 2024
1 parent 4478994 commit 1908f39
Show file tree
Hide file tree
Showing 22 changed files with 4,669 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"bsv.cc.compdb.targets": [
"//:lib",
"//:wasmtime_lib"
]
}
99 changes: 99 additions & 0 deletions bazel/cargo/wasmtime/Cargo.Bazel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ version = "3.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"

[[package]]
name = "cc"
version = "1.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "26a5c3fd7bfa1ce3897a3a3501d362b2d87b7f2583ebcb4a949ec25911025cbc"

[[package]]
name = "cfg-if"
version = "1.0.0"
Expand Down Expand Up @@ -221,6 +227,16 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"

[[package]]
name = "errno"
version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba"
dependencies = [
"libc",
"windows-sys",
]

[[package]]
name = "fallible-iterator"
version = "0.3.0"
Expand Down Expand Up @@ -336,18 +352,42 @@ version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058"

[[package]]
name = "linux-raw-sys"
version = "0.4.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"

[[package]]
name = "log"
version = "0.4.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"

[[package]]
name = "mach2"
version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "19b955cdeb2a02b9117f121ce63aa52d08ade45de53e48fe6a38b39c10f6f709"
dependencies = [
"libc",
]

[[package]]
name = "memchr"
version = "2.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"

[[package]]
name = "memfd"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64"
dependencies = [
"rustix",
]

[[package]]
name = "object"
version = "0.36.2"
Expand Down Expand Up @@ -392,6 +432,15 @@ dependencies = [
"unicode-ident",
]

[[package]]
name = "psm"
version = "0.1.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874"
dependencies = [
"cc",
]

[[package]]
name = "quote"
version = "1.0.36"
Expand Down Expand Up @@ -449,6 +498,19 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"

[[package]]
name = "rustix"
version = "0.38.34"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f"
dependencies = [
"bitflags",
"errno",
"libc",
"linux-raw-sys",
"windows-sys",
]

[[package]]
name = "ryu"
version = "1.0.18"
Expand Down Expand Up @@ -626,25 +688,44 @@ dependencies = [
"anyhow",
"bitflags",
"bumpalo",
"cc",
"cfg-if",
"hashbrown 0.14.5",
"indexmap",
"libc",
"libm",
"log",
"mach2",
"memfd",
"object",
"once_cell",
"paste",
"postcard",
"psm",
"rustix",
"serde",
"serde_derive",
"smallvec",
"sptr",
"target-lexicon",
"wasmparser",
"wasmtime-asm-macros",
"wasmtime-component-macro",
"wasmtime-cranelift",
"wasmtime-environ",
"wasmtime-jit-icache-coherence",
"wasmtime-slab",
"wasmtime-versioned-export-macros",
"windows-sys",
]

[[package]]
name = "wasmtime-asm-macros"
version = "23.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "964c3b3342547a51e0d2702eae3a2d2be215d16b55a14e2e786b11c4931b7f08"
dependencies = [
"cfg-if",
]

[[package]]
Expand Down Expand Up @@ -735,6 +816,24 @@ dependencies = [
"wasmtime-types",
]

[[package]]
name = "wasmtime-jit-icache-coherence"
version = "23.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7fddf3e2980fb1d123d1fcac55189e417fdd3dba4f62139b5a0a1f9efe5669d5"
dependencies = [
"anyhow",
"cfg-if",
"libc",
"windows-sys",
]

[[package]]
name = "wasmtime-slab"
version = "23.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f3ac25f8f80a3c5cda4ea68472057b23fa309956ae9784c0f1347439e624840e"

[[package]]
name = "wasmtime-types"
version = "23.0.1"
Expand Down
2 changes: 1 addition & 1 deletion bazel/cargo/wasmtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ path = "fake_lib.rs"
env_logger = "0.10"
anyhow = "1.0"
once_cell = "1.12"
wasmtime = {version = "23.0.1", default-features = false, features = ['cranelift']}
wasmtime = {version = "23.0.1", default-features = false, features = ['cranelift', 'runtime', 'gc', 'std']}
wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v23.0.1"}
75 changes: 75 additions & 0 deletions bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,81 @@ rust_library(
"WORKSPACE.bazel",
],
),
crate_features = select({
"@rules_rust//rust/platform:aarch64-apple-darwin": [
"std", # aarch64-apple-darwin
],
"@rules_rust//rust/platform:aarch64-apple-ios": [
"std", # aarch64-apple-ios
],
"@rules_rust//rust/platform:aarch64-apple-ios-sim": [
"std", # aarch64-apple-ios-sim
],
"@rules_rust//rust/platform:aarch64-fuchsia": [
"std", # aarch64-fuchsia
],
"@rules_rust//rust/platform:aarch64-linux-android": [
"std", # aarch64-linux-android
],
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [
"std", # aarch64-unknown-linux-gnu
],
"@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [
"std", # aarch64-unknown-nixos-gnu
],
"@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [
"std", # aarch64-unknown-nto-qnx710
],
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [
"std", # arm-unknown-linux-gnueabi
],
"@rules_rust//rust/platform:armv7-linux-androideabi": [
"std", # armv7-linux-androideabi
],
"@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [
"std", # armv7-unknown-linux-gnueabi
],
"@rules_rust//rust/platform:i686-apple-darwin": [
"std", # i686-apple-darwin
],
"@rules_rust//rust/platform:i686-linux-android": [
"std", # i686-linux-android
],
"@rules_rust//rust/platform:i686-unknown-freebsd": [
"std", # i686-unknown-freebsd
],
"@rules_rust//rust/platform:i686-unknown-linux-gnu": [
"std", # i686-unknown-linux-gnu
],
"@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [
"std", # powerpc-unknown-linux-gnu
],
"@rules_rust//rust/platform:s390x-unknown-linux-gnu": [
"std", # s390x-unknown-linux-gnu
],
"@rules_rust//rust/platform:x86_64-apple-darwin": [
"std", # x86_64-apple-darwin
],
"@rules_rust//rust/platform:x86_64-apple-ios": [
"std", # x86_64-apple-ios
],
"@rules_rust//rust/platform:x86_64-fuchsia": [
"std", # x86_64-fuchsia
],
"@rules_rust//rust/platform:x86_64-linux-android": [
"std", # x86_64-linux-android
],
"@rules_rust//rust/platform:x86_64-unknown-freebsd": [
"std", # x86_64-unknown-freebsd
],
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [
"std", # x86_64-unknown-linux-gnu
],
"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [
"std", # x86_64-unknown-nixos-gnu
],
"//conditions:default": [],
}),
crate_root = "src/lib.rs",
edition = "2021",
rustc_flags = [
Expand Down
44 changes: 44 additions & 0 deletions bazel/cargo/wasmtime/remote/BUILD.cc-1.1.7.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
###############################################################################
# @generated
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
# regenerate this file, run the following:
#
# bazel run @//bazel/cargo/wasmtime:crates_vendor
###############################################################################

load("@rules_rust//rust:defs.bzl", "rust_library")

package(default_visibility = ["//visibility:public"])

rust_library(
name = "cc",
srcs = glob(
include = ["**/*.rs"],
allow_empty = False,
),
compile_data = glob(
include = ["**"],
allow_empty = True,
exclude = [
"**/* *",
".tmp_git_root/**/*",
"BUILD",
"BUILD.bazel",
"WORKSPACE",
"WORKSPACE.bazel",
],
),
crate_root = "src/lib.rs",
edition = "2018",
rustc_flags = [
"--cap-lints=allow",
],
tags = [
"cargo-bazel",
"crate-name=cc",
"manual",
"noclippy",
"norustfmt",
],
version = "1.1.7",
)
Loading

0 comments on commit 1908f39

Please sign in to comment.