Description: avoid feature profiling
 Requires not-in-Debian crate ittapi.
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2025-07-22
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -290,7 +290,6 @@
   "cache",
   "demangle",
   "cranelift",
-  "profiling",
   "coredump",
   "addr2line",
   "debug-builtins",
@@ -332,7 +331,6 @@
 parallel-compilation = ["wasmtime-cli-flags/parallel-compilation"]
 demangle = ["wasmtime/demangle"]
 cranelift = ["wasmtime-cli-flags/cranelift", "dep:wasmtime-cranelift"]
-profiling = ["wasmtime/profiling", "wasmtime/call-hook"]
 coredump = ["wasmtime-cli-flags/coredump"]
 addr2line = ["wasmtime/addr2line"]
 debug-builtins = ["wasmtime/debug-builtins"]
--- a/crates/c-api/Cargo.toml
+++ b/crates/c-api/Cargo.toml
@@ -36,7 +36,6 @@
 [features]
 # WASMTIME_FEATURE_LIST
 async = ['wasmtime/async', 'futures']
-profiling = ["wasmtime/profiling"]
 cache = ["wasmtime/cache"]
 parallel-compilation = ['wasmtime/parallel-compilation']
 logging = ['dep:env_logger']
--- a/crates/c-api/artifact/Cargo.toml
+++ b/crates/c-api/artifact/Cargo.toml
@@ -23,7 +23,6 @@
 [features]
 # WASMTIME_FEATURE_LIST
 default = [
-  'profiling',
   'wat',
   'wasi',
   'cache',
@@ -42,7 +41,6 @@
   # marked WASMTIME_FEATURE_LIST
 ]
 async = ['wasmtime-c-api/async']
-profiling = ["wasmtime-c-api/profiling"]
 cache = ["wasmtime-c-api/cache"]
 parallel-compilation = ['wasmtime-c-api/parallel-compilation']
 wasi = ['wasmtime-c-api/wasi']
--- a/crates/wasmtime/Cargo.toml
+++ b/crates/wasmtime/Cargo.toml
@@ -38,7 +38,6 @@
 wat = { workspace = true, optional = true }
 serde = { workspace = true }
 serde_derive = { workspace = true }
-serde_json = { workspace = true, optional = true }
 sptr = { workspace = true }
 postcard = { workspace = true }
 indexmap = { workspace = true }
@@ -48,7 +47,6 @@
 object = { workspace = true }
 async-trait = { workspace = true, optional = true }
 bumpalo = "3.11.0"
-fxprof-processed-profile = { version = "0.6.0", optional = true }
 gimli = { workspace = true, optional = true }
 addr2line = { workspace = true, optional = true }
 smallvec = { workspace = true, optional = true }
@@ -56,14 +54,6 @@
 libm = "0.2.7"
 bitflags = { workspace = true }
 
-# Allow-list the platforms that `ittapi` builds on since it's got C code that
-# doesn't compile by default on all platforms just yet. Also note that this is
-# only enabled for `x86_64` targets as well.
-[target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dependencies]
-ittapi = { workspace = true, optional = true }
-[target.'cfg(all(target_arch = "x86_64", target_os = "macos"))'.dependencies]
-ittapi = { workspace = true, optional = true }
-
 [target.'cfg(target_os = "linux")'.dependencies]
 memfd = { workspace = true, optional = true }
 
@@ -100,7 +90,6 @@
   'gc-drc',
   'gc-null',
   'wat',
-  'profiling',
   'parallel-compilation',
   'cranelift',
   'pooling-allocator',
@@ -128,17 +117,6 @@
 # Enables support for incremental compilation cache to be enabled in `Config`.
 incremental-cache = ["wasmtime-cranelift?/incremental-cache", "std"]
 
-# Enables support for profiling guest modules.
-profiling = [
-  "dep:fxprof-processed-profile",
-  "dep:wasmtime-jit-debug",
-  "dep:ittapi",
-  "dep:rustix",
-  "rustix/thread",
-  "dep:serde_json",
-  "std",
-]
-
 # Enables parallel compilation of WebAssembly code.
 parallel-compilation = ["dep:rayon", "std"]
 
