# Copyright 2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DESCRIPTION="A standalone runtime for WebAssembly" HOMEPAGE="https://github.com/bytecodealliance/wasmtime" SRC_URI="https://github.com/bytecodealliance/${PN}/releases/download/v${PV}/${PN}-v${PV}-src.tar.gz -> ${P}.tar.gz" CRATES=" addr2line@0.24.1 addr2line@0.26.0 adler2@2.0.0 aes@0.8.4 aho-corasick@1.0.2 allocator-api2@0.2.20 ambient-authority@0.0.2 android_system_properties@0.1.5 anes@0.1.6 anstream@0.6.21 anstyle-parse@0.2.7 anstyle-query@1.1.5 anstyle-wincon@3.0.11 anstyle@1.0.13 anyhow@1.0.100 arbitrary@1.4.2 arbtest@0.3.2 async-trait@0.1.89 atomic-waker@1.1.2 autocfg@1.1.0 backtrace@0.3.75 base64@0.22.1 base64ct@1.6.0 beef@0.5.2 bindgen@0.72.1 bit-set@0.5.2 bit-vec@0.6.3 bitflags@1.3.2 bitflags@2.9.4 bitmaps@2.1.0 block-buffer@0.10.2 bstr@1.6.0 bumpalo@3.16.0 byteorder@1.4.3 bytes@1.10.1 bytesize@2.0.1 bzip2-sys@0.1.11+1.0.8 bzip2@0.4.4 camino@1.1.4 cap-fs-ext@3.4.5 cap-net-ext@3.4.5 cap-primitives@3.4.5 cap-rand@3.4.5 cap-std@3.4.5 cap-time-ext@3.4.5 capstone-sys@0.17.0 capstone@0.13.0 cargo-platform@0.1.2 cargo_metadata@0.19.2 cast@0.3.0 cc@1.2.41 cexpr@0.6.0 cfg-if@1.0.0 ciborium-io@0.2.0 ciborium-ll@0.2.0 ciborium@0.2.0 cipher@0.4.4 clang-sys@1.8.1 clap@4.5.48 clap_builder@4.5.48 clap_complete@4.5.58 clap_derive@4.5.47 clap_lex@0.7.5 cobs@0.3.0 codespan-reporting@0.11.1 colorchoice@1.0.4 constant_time_eq@0.1.5 core-foundation-sys@0.8.6 core-foundation@0.9.4 cpp_demangle@0.4.3 cpufeatures@0.2.7 crc32fast@1.3.2 criterion-plot@0.6.0 criterion@0.7.0 crossbeam-deque@0.8.1 crossbeam-epoch@0.9.18 crossbeam-utils@0.8.20 crunchy@0.2.2 crypto-common@0.1.6 cty@0.2.2 debugid@0.8.0 der@0.7.10 deranged@0.3.11 derive_arbitrary@1.4.0 digest@0.10.7 directories-next@2.0.0 dirs-sys-next@0.1.2 displaydoc@0.2.5 dlmalloc@0.2.4 easy-smt@0.2.2 egg@0.6.0 either@1.13.0 embedded-io@0.4.0 embedded-io@0.6.1 encoding_rs@0.8.31 env_filter@0.1.2 env_logger@0.10.0 env_logger@0.11.5 equivalent@1.0.1 errno@0.3.14 escape8259@0.5.2 fallible-iterator@0.3.0 fastrand@2.3.0 fd-lock@4.0.4 file-per-thread-logger@0.2.0 filecheck@0.5.0 filetime@0.2.16 find-msvc-tools@0.1.4 fixedbitset@0.4.2 flagset@0.4.3 flate2@1.1.4 fnv@1.0.7 foldhash@0.1.3 foreign-types-shared@0.1.1 foreign-types@0.3.2 form_urlencoded@1.2.2 fs-set-times@0.20.3 fslock@0.2.1 futures-channel@0.3.31 futures-core@0.3.31 futures-executor@0.3.31 futures-io@0.3.31 futures-macro@0.3.31 futures-sink@0.3.31 futures-task@0.3.31 futures-util@0.3.31 futures@0.3.31 fxprof-processed-profile@0.8.1 generic-array@0.14.5 getrandom@0.2.15 getrandom@0.3.1 gimli@0.31.1 gimli@0.33.0 glob@0.3.1 gzip-header@1.0.0 h2@0.4.4 half@1.8.2 half@2.4.1 hashbrown@0.12.3 hashbrown@0.15.2 hashbrown@0.16.1 heck@0.4.1 heck@0.5.0 hermit-abi@0.5.2 hmac@0.12.1 home@0.5.12 http-body-util@0.1.3 http-body@1.0.1 http@1.3.1 httparse@1.10.1 httpdate@1.0.2 humantime@2.1.0 hyper@1.7.0 iana-time-zone-haiku@0.1.2 iana-time-zone@0.1.61 icu_collections@1.5.0 icu_locid@1.5.0 icu_locid_transform@1.5.0 icu_locid_transform_data@1.5.0 icu_normalizer@1.5.0 icu_normalizer_data@1.5.0 icu_properties@1.5.1 icu_properties_data@1.5.0 icu_provider@1.5.0 icu_provider_macros@1.5.0 id-arena@2.2.1 idna@1.1.0 idna_adapter@1.2.0 im-rc@15.1.0 indexmap@1.9.1 indexmap@2.11.4 inout@0.1.3 instant@0.1.12 io-extras@0.18.4 io-lifetimes@2.0.3 ipnet@2.5.0 is-terminal@0.4.17 is_terminal_polyfill@1.70.1 itertools@0.13.0 itertools@0.14.0 itoa@1.0.14 ittapi-sys@0.4.0 ittapi@0.4.0 jobserver@0.1.32 js-sys@0.3.74 json-from-wast@0.244.0 lazy_static@1.4.0 leb128@0.2.5 leb128fmt@0.1.0 libc@0.2.177 libfuzzer-sys@0.4.10 libloading@0.8.6 libm@0.2.16 libtest-mimic@0.8.1 linux-raw-sys@0.4.14 linux-raw-sys@0.9.4 listenfd@1.0.0 litemap@0.7.4 log@0.4.28 logos-codegen@0.14.2 logos-derive@0.14.2 logos@0.14.2 mach2@0.4.2 matchers@0.2.0 matrixmultiply@0.3.9 maybe-owned@0.3.4 memchr@2.7.6 memfd@0.6.5 memmap2@0.2.3 minimal-lexical@0.2.1 miniz_oxide@0.8.9 mio@1.1.0 mutatis@0.3.2 native-tls@0.2.14 ndarray@0.15.6 nom@7.1.3 nu-ansi-term@0.50.3 num-complex@0.4.6 num-conv@0.1.0 num-integer@0.1.46 num-traits@0.2.19 num_cpus@1.17.0 object@0.36.5 object@0.37.3 ocaml-boxroot-sys@0.2.0 ocaml-interop@0.8.8 ocaml-sys@0.22.3 once_cell@1.19.0 once_cell_polyfill@1.70.1 oorandom@11.1.3 openssl-macros@0.1.1 openssl-probe@0.1.6 openssl-sys@0.9.109 openssl@0.10.73 openvino-finder@0.9.0 openvino-sys@0.9.0 openvino@0.9.0 ort-sys@2.0.0-rc.10 ort@2.0.0-rc.10 password-hash@0.4.2 paste@1.0.7 pbkdf2@0.11.0 pem-rfc7468@0.7.0 percent-encoding@2.3.2 petgraph@0.6.5 pin-project-lite@0.2.14 pin-utils@0.1.0 pkg-config@0.3.32 postcard@1.1.3 powerfmt@0.2.0 ppv-lite86@0.2.16 prettyplease@0.2.31 proc-macro2@1.0.101 proptest@1.0.0 quick-error@1.2.3 quick-error@2.0.1 quote@1.0.41 rand@0.8.5 rand@0.9.2 rand_chacha@0.3.1 rand_chacha@0.9.0 rand_core@0.6.3 rand_core@0.9.3 rand_xorshift@0.3.0 rand_xoshiro@0.6.0 raw-cpuid@11.5.0 rawpointer@0.2.1 rayon-core@1.12.0 rayon@1.5.3 redox_syscall@0.2.13 redox_users@0.4.3 regalloc2@0.13.4 regex-automata@0.3.3 regex-automata@0.4.11 regex-syntax@0.6.25 regex-syntax@0.7.4 regex-syntax@0.8.5 regex@1.9.1 region@3.0.2 ring@0.17.14 rustc-demangle@0.1.24 rustc-hash@2.1.1 rustix-linux-procfs@0.1.1 rustix@0.38.43 rustix@1.0.8 rustls-pki-types@1.13.1 rustls-webpki@0.102.2 rustls@0.22.4 rustversion@1.0.14 rusty-fork@0.3.0 ryu@1.0.9 safetensors@0.3.3 same-file@1.0.6 schannel@0.1.28 security-framework-sys@2.14.0 security-framework@2.11.1 semver@1.0.27 serde@1.0.228 serde_core@1.0.228 serde_derive@1.0.228 serde_json@1.0.140 serde_spanned@1.0.3 serde_yaml@0.9.34+deprecated sha1@0.10.6 sha2@0.10.2 sharded-slab@0.1.4 shlex@1.3.0 shuffling-allocator@1.1.2 signal-hook-registry@1.4.1 simd-adler32@0.3.7 similar@2.7.0 sized-chunks@0.6.5 slab@0.4.11 smallvec@1.15.1 smallvec@2.0.0-alpha.10 socket2@0.6.1 socks@0.3.4 souper-ir@2.1.0 spin@0.9.8 stable_deref_trait@1.2.0 static_assertions@1.1.0 string-interner@0.19.0 strsim@0.11.1 strum@0.24.1 strum_macros@0.24.3 subtle@2.5.0 symbolic_expressions@5.0.3 syn@1.0.92 syn@2.0.106 synstructure@0.13.1 system-interface@0.27.3 tar@0.4.41 target-lexicon@0.13.0 tch@0.17.0 tempfile@3.23.0 termcolor@1.4.1 terminal_size@0.4.3 test-log-macros@0.2.18 test-log@0.2.18 thiserror-impl@1.0.65 thiserror-impl@2.0.17 thiserror@1.0.65 thiserror@2.0.17 thread_local@1.1.4 time-core@0.1.2 time@0.3.36 tinystr@0.7.6 tinytemplate@1.2.1 tokio-macros@2.6.0 tokio-native-tls@0.3.1 tokio-openssl@0.6.5 tokio-rustls@0.25.0 tokio-util@0.7.16 tokio@1.48.0 toml@0.9.8 toml_datetime@0.7.3 toml_parser@1.0.4 toml_writer@1.0.4 torch-sys@0.17.0 tracing-attributes@0.1.30 tracing-core@0.1.34 tracing-log@0.2.0 tracing-subscriber@0.3.20 tracing@0.1.41 try-lock@0.2.4 typenum@1.15.0 unicode-ident@1.0.19 unicode-segmentation@1.11.0 unicode-width@0.1.9 unicode-width@0.2.0 unicode-xid@0.2.3 unsafe-libyaml@0.2.11 untrusted@0.9.0 ureq-proto@0.5.3 ureq@3.1.4 url@2.5.7 utf-8@0.7.6 utf16_iter@1.0.5 utf8_iter@1.0.4 utf8parse@0.2.2 uuid@1.0.0 v8@139.0.0 valuable@0.1.0 vcpkg@0.2.15 version_check@0.9.4 wait-timeout@0.2.0 walkdir@2.5.0 want@0.3.0 wasi-nn@0.6.0 wasi@0.11.0+wasi-snapshot-preview1 wasi@0.13.3+wasi-0.2.2 wasip1@1.0.0 wasip2@1.0.0+wasi-0.2.4 wasm-bindgen-backend@0.2.97 wasm-bindgen-macro-support@0.2.97 wasm-bindgen-macro@0.2.97 wasm-bindgen-shared@0.2.97 wasm-bindgen@0.2.97 wasm-compose@0.244.0 wasm-encoder@0.244.0 wasm-metadata@0.244.0 wasm-mutate@0.244.0 wasm-smith@0.244.0 wasm-wave@0.244.0 wasmi@1.0.8 wasmi_collections@1.0.8 wasmi_core@1.0.8 wasmi_ir@1.0.8 wasmparser@0.228.0 wasmparser@0.244.0 wasmprinter@0.244.0 wast@244.0.0 wast@35.0.2 wat@1.244.0 webpki-root-certs@1.0.4 webpki-roots@0.26.1 which@6.0.3 winapi-i686-pc-windows-gnu@0.4.0 winapi-util@0.1.5 winapi-x86_64-pc-windows-gnu@0.4.0 winapi@0.3.9 windows-core@0.52.0 windows-implement@0.52.0 windows-interface@0.52.0 windows-link@0.2.1 windows-sys@0.52.0 windows-sys@0.60.2 windows-sys@0.61.2 windows-targets@0.52.6 windows-targets@0.53.5 windows@0.52.0 windows_aarch64_gnullvm@0.52.6 windows_aarch64_gnullvm@0.53.1 windows_aarch64_msvc@0.52.6 windows_aarch64_msvc@0.53.1 windows_i686_gnu@0.52.6 windows_i686_gnu@0.53.1 windows_i686_gnullvm@0.52.6 windows_i686_gnullvm@0.53.1 windows_i686_msvc@0.52.6 windows_i686_msvc@0.53.1 windows_x86_64_gnu@0.52.6 windows_x86_64_gnu@0.53.1 windows_x86_64_gnullvm@0.52.6 windows_x86_64_gnullvm@0.53.1 windows_x86_64_msvc@0.52.6 windows_x86_64_msvc@0.53.1 winnow@0.7.13 winsafe@0.0.19 winx@0.36.4 wit-bindgen-core@0.51.0 wit-bindgen-rt@0.33.0 wit-bindgen-rust-macro@0.51.0 wit-bindgen-rust@0.51.0 wit-bindgen@0.45.1 wit-bindgen@0.51.0 wit-component@0.244.0 wit-parser@0.244.0 witx@0.9.1 write16@1.0.0 writeable@0.5.5 xattr@1.6.1 yoke-derive@0.7.5 yoke@0.7.5 zerofrom-derive@0.1.5 zerofrom@0.1.5 zeroize@1.7.0 zerovec-derive@0.10.3 zerovec@0.10.4 zip@0.6.6 zstd-safe@5.0.2+zstd.1.5.2 zstd-safe@7.0.0 zstd-sys@2.0.9+zstd.1.5.5 zstd@0.11.2+zstd.1.5.2 zstd@0.13.0 " inherit cargo SRC_URI+=" $(cargo_crate_uris)" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" IUSE="+llvm_targets_WebAssembly" DEPEND="llvm_targets_WebAssembly? ( dev-lang/rust[llvm_targets_WebAssembly] )" RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}-v${PV}-src" src_compile () { cargo_src_compile } src_install () { cargo_src_install }