Skip to content

Commit 1908f39

Browse files
committed
Add other features from cargo
Signed-off-by: Keith Mattix II <[email protected]>
1 parent 4478994 commit 1908f39

22 files changed

+4669
-7
lines changed

.vscode/settings.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"bsv.cc.compdb.targets": [
3+
"//:lib",
4+
"//:wasmtime_lib"
5+
]
6+
}

bazel/cargo/wasmtime/Cargo.Bazel.lock

+99
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ version = "3.16.0"
4747
source = "registry+https://github.com/rust-lang/crates.io-index"
4848
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
4949

50+
[[package]]
51+
name = "cc"
52+
version = "1.1.7"
53+
source = "registry+https://github.com/rust-lang/crates.io-index"
54+
checksum = "26a5c3fd7bfa1ce3897a3a3501d362b2d87b7f2583ebcb4a949ec25911025cbc"
55+
5056
[[package]]
5157
name = "cfg-if"
5258
version = "1.0.0"
@@ -221,6 +227,16 @@ version = "1.0.1"
221227
source = "registry+https://github.com/rust-lang/crates.io-index"
222228
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
223229

230+
[[package]]
231+
name = "errno"
232+
version = "0.3.9"
233+
source = "registry+https://github.com/rust-lang/crates.io-index"
234+
checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba"
235+
dependencies = [
236+
"libc",
237+
"windows-sys",
238+
]
239+
224240
[[package]]
225241
name = "fallible-iterator"
226242
version = "0.3.0"
@@ -336,18 +352,42 @@ version = "0.2.8"
336352
source = "registry+https://github.com/rust-lang/crates.io-index"
337353
checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058"
338354

355+
[[package]]
356+
name = "linux-raw-sys"
357+
version = "0.4.14"
358+
source = "registry+https://github.com/rust-lang/crates.io-index"
359+
checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
360+
339361
[[package]]
340362
name = "log"
341363
version = "0.4.22"
342364
source = "registry+https://github.com/rust-lang/crates.io-index"
343365
checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
344366

367+
[[package]]
368+
name = "mach2"
369+
version = "0.4.2"
370+
source = "registry+https://github.com/rust-lang/crates.io-index"
371+
checksum = "19b955cdeb2a02b9117f121ce63aa52d08ade45de53e48fe6a38b39c10f6f709"
372+
dependencies = [
373+
"libc",
374+
]
375+
345376
[[package]]
346377
name = "memchr"
347378
version = "2.7.4"
348379
source = "registry+https://github.com/rust-lang/crates.io-index"
349380
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
350381

382+
[[package]]
383+
name = "memfd"
384+
version = "0.6.4"
385+
source = "registry+https://github.com/rust-lang/crates.io-index"
386+
checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64"
387+
dependencies = [
388+
"rustix",
389+
]
390+
351391
[[package]]
352392
name = "object"
353393
version = "0.36.2"
@@ -392,6 +432,15 @@ dependencies = [
392432
"unicode-ident",
393433
]
394434

435+
[[package]]
436+
name = "psm"
437+
version = "0.1.21"
438+
source = "registry+https://github.com/rust-lang/crates.io-index"
439+
checksum = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874"
440+
dependencies = [
441+
"cc",
442+
]
443+
395444
[[package]]
396445
name = "quote"
397446
version = "1.0.36"
@@ -449,6 +498,19 @@ version = "1.1.0"
449498
source = "registry+https://github.com/rust-lang/crates.io-index"
450499
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
451500

501+
[[package]]
502+
name = "rustix"
503+
version = "0.38.34"
504+
source = "registry+https://github.com/rust-lang/crates.io-index"
505+
checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f"
506+
dependencies = [
507+
"bitflags",
508+
"errno",
509+
"libc",
510+
"linux-raw-sys",
511+
"windows-sys",
512+
]
513+
452514
[[package]]
453515
name = "ryu"
454516
version = "1.0.18"
@@ -626,25 +688,44 @@ dependencies = [
626688
"anyhow",
627689
"bitflags",
628690
"bumpalo",
691+
"cc",
629692
"cfg-if",
630693
"hashbrown 0.14.5",
631694
"indexmap",
632695
"libc",
633696
"libm",
634697
"log",
698+
"mach2",
699+
"memfd",
635700
"object",
636701
"once_cell",
637702
"paste",
638703
"postcard",
704+
"psm",
705+
"rustix",
639706
"serde",
640707
"serde_derive",
708+
"smallvec",
641709
"sptr",
642710
"target-lexicon",
643711
"wasmparser",
712+
"wasmtime-asm-macros",
644713
"wasmtime-component-macro",
645714
"wasmtime-cranelift",
646715
"wasmtime-environ",
716+
"wasmtime-jit-icache-coherence",
717+
"wasmtime-slab",
647718
"wasmtime-versioned-export-macros",
719+
"windows-sys",
720+
]
721+
722+
[[package]]
723+
name = "wasmtime-asm-macros"
724+
version = "23.0.1"
725+
source = "registry+https://github.com/rust-lang/crates.io-index"
726+
checksum = "964c3b3342547a51e0d2702eae3a2d2be215d16b55a14e2e786b11c4931b7f08"
727+
dependencies = [
728+
"cfg-if",
648729
]
649730

650731
[[package]]
@@ -735,6 +816,24 @@ dependencies = [
735816
"wasmtime-types",
736817
]
737818

819+
[[package]]
820+
name = "wasmtime-jit-icache-coherence"
821+
version = "23.0.1"
822+
source = "registry+https://github.com/rust-lang/crates.io-index"
823+
checksum = "7fddf3e2980fb1d123d1fcac55189e417fdd3dba4f62139b5a0a1f9efe5669d5"
824+
dependencies = [
825+
"anyhow",
826+
"cfg-if",
827+
"libc",
828+
"windows-sys",
829+
]
830+
831+
[[package]]
832+
name = "wasmtime-slab"
833+
version = "23.0.1"
834+
source = "registry+https://github.com/rust-lang/crates.io-index"
835+
checksum = "f3ac25f8f80a3c5cda4ea68472057b23fa309956ae9784c0f1347439e624840e"
836+
738837
[[package]]
739838
name = "wasmtime-types"
740839
version = "23.0.1"

bazel/cargo/wasmtime/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ path = "fake_lib.rs"
1111
env_logger = "0.10"
1212
anyhow = "1.0"
1313
once_cell = "1.12"
14-
wasmtime = {version = "23.0.1", default-features = false, features = ['cranelift']}
14+
wasmtime = {version = "23.0.1", default-features = false, features = ['cranelift', 'runtime', 'gc', 'std']}
1515
wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v23.0.1"}

bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel

+75
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,81 @@ rust_library(
2828
"WORKSPACE.bazel",
2929
],
3030
),
31+
crate_features = select({
32+
"@rules_rust//rust/platform:aarch64-apple-darwin": [
33+
"std", # aarch64-apple-darwin
34+
],
35+
"@rules_rust//rust/platform:aarch64-apple-ios": [
36+
"std", # aarch64-apple-ios
37+
],
38+
"@rules_rust//rust/platform:aarch64-apple-ios-sim": [
39+
"std", # aarch64-apple-ios-sim
40+
],
41+
"@rules_rust//rust/platform:aarch64-fuchsia": [
42+
"std", # aarch64-fuchsia
43+
],
44+
"@rules_rust//rust/platform:aarch64-linux-android": [
45+
"std", # aarch64-linux-android
46+
],
47+
"@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [
48+
"std", # aarch64-unknown-linux-gnu
49+
],
50+
"@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [
51+
"std", # aarch64-unknown-nixos-gnu
52+
],
53+
"@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [
54+
"std", # aarch64-unknown-nto-qnx710
55+
],
56+
"@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [
57+
"std", # arm-unknown-linux-gnueabi
58+
],
59+
"@rules_rust//rust/platform:armv7-linux-androideabi": [
60+
"std", # armv7-linux-androideabi
61+
],
62+
"@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [
63+
"std", # armv7-unknown-linux-gnueabi
64+
],
65+
"@rules_rust//rust/platform:i686-apple-darwin": [
66+
"std", # i686-apple-darwin
67+
],
68+
"@rules_rust//rust/platform:i686-linux-android": [
69+
"std", # i686-linux-android
70+
],
71+
"@rules_rust//rust/platform:i686-unknown-freebsd": [
72+
"std", # i686-unknown-freebsd
73+
],
74+
"@rules_rust//rust/platform:i686-unknown-linux-gnu": [
75+
"std", # i686-unknown-linux-gnu
76+
],
77+
"@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [
78+
"std", # powerpc-unknown-linux-gnu
79+
],
80+
"@rules_rust//rust/platform:s390x-unknown-linux-gnu": [
81+
"std", # s390x-unknown-linux-gnu
82+
],
83+
"@rules_rust//rust/platform:x86_64-apple-darwin": [
84+
"std", # x86_64-apple-darwin
85+
],
86+
"@rules_rust//rust/platform:x86_64-apple-ios": [
87+
"std", # x86_64-apple-ios
88+
],
89+
"@rules_rust//rust/platform:x86_64-fuchsia": [
90+
"std", # x86_64-fuchsia
91+
],
92+
"@rules_rust//rust/platform:x86_64-linux-android": [
93+
"std", # x86_64-linux-android
94+
],
95+
"@rules_rust//rust/platform:x86_64-unknown-freebsd": [
96+
"std", # x86_64-unknown-freebsd
97+
],
98+
"@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [
99+
"std", # x86_64-unknown-linux-gnu
100+
],
101+
"@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [
102+
"std", # x86_64-unknown-nixos-gnu
103+
],
104+
"//conditions:default": [],
105+
}),
31106
crate_root = "src/lib.rs",
32107
edition = "2021",
33108
rustc_flags = [
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
###############################################################################
2+
# @generated
3+
# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To
4+
# regenerate this file, run the following:
5+
#
6+
# bazel run @//bazel/cargo/wasmtime:crates_vendor
7+
###############################################################################
8+
9+
load("@rules_rust//rust:defs.bzl", "rust_library")
10+
11+
package(default_visibility = ["//visibility:public"])
12+
13+
rust_library(
14+
name = "cc",
15+
srcs = glob(
16+
include = ["**/*.rs"],
17+
allow_empty = False,
18+
),
19+
compile_data = glob(
20+
include = ["**"],
21+
allow_empty = True,
22+
exclude = [
23+
"**/* *",
24+
".tmp_git_root/**/*",
25+
"BUILD",
26+
"BUILD.bazel",
27+
"WORKSPACE",
28+
"WORKSPACE.bazel",
29+
],
30+
),
31+
crate_root = "src/lib.rs",
32+
edition = "2018",
33+
rustc_flags = [
34+
"--cap-lints=allow",
35+
],
36+
tags = [
37+
"cargo-bazel",
38+
"crate-name=cc",
39+
"manual",
40+
"noclippy",
41+
"norustfmt",
42+
],
43+
version = "1.1.7",
44+
)

0 commit comments

Comments
 (0)