---
title: "wasmtime-environ 51.0.0 Breaking Changes on crates.io"
description: "What each wasmtime-environ release removed, renamed or changed: 46 breaking changes in 1 version on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/wasmtime-environ
last_updated: 2026-12-04
---

# wasmtime-environ breaking changes

wasmtime-environ 51.0.0 (November 20, 2026) is its newest release with breaking changes, 46 of them. The first: Removed wasmtime_environ::Module::import_position. Every breaking API change we have recorded in wasmtime-environ on crates.io: 46 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `51.0.1`, released December 4, 2026. [Source repository](https://github.com/bytecodealliance/wasmtime)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

## wasmtime-environ 51.0.0 breaking changes

wasmtime-environ 51.0.0, released November 20, 2026: 46 breaking changes.

- **Removed** `wasmtime_environ::Module::import_position`  

wasmtime_environ::Module::import_position was removed in wasmtime-environ 51.0.0 [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Behavior changed**  

On targets without context-information support, signal handlers are now disabled automatically instead of being used. [github.com](https://github.com/bytecodealliance/wasmtime/releases/tag/v51.0.0)
- **Behavior changed**  

Calls between components now enforce reentrance and may_leave conditions more strictly, per the spec. [github.com](https://github.com/bytecodealliance/wasmtime/releases/tag/v51.0.0)
- **Behavior changed**  

The behavior of removing directories given with a trailing slash was changed. [github.com](https://github.com/bytecodealliance/wasmtime/releases/tag/v51.0.0)
- **Behavior changed**  

CI now provides precompiled "min" artifacts only for a subset of platforms. [github.com](https://github.com/bytecodealliance/wasmtime/releases/tag/v51.0.0)
- **Behavior changed**  

An embedder-returned ThrownException error is no longer interpreted as a raised exception within the component. [github.com](https://github.com/bytecodealliance/wasmtime/releases/tag/v51.0.0)
- **Behavior changed**  

Stack slots with overly large alignment are now rejected with an error. [github.com](https://github.com/bytecodealliance/wasmtime/releases/tag/v51.0.0)
- **Behavior changed** `wasmtime serve`  

On Unix, receiving SIGTERM now triggers graceful shutdown rather than an immediate stop. [github.com](https://github.com/bytecodealliance/wasmtime/releases/tag/v51.0.0)
- **Default changed**  

Stores now cap active fibers by default, so code relying on unlimited fibers may hit the limit. [github.com](https://github.com/bytecodealliance/wasmtime/releases/tag/v51.0.0)
- **Configuration changed**  

Enabling simd or relaxed-simd on riscv64 without the has_v extension now returns an error, so builds must enable has_v. [github.com](https://github.com/bytecodealliance/wasmtime/releases/tag/v51.0.0)
- **Signature changed** `DirectDestination.remaining`  

Callers must handle the Result returned by DirectDestination::remaining. [github.com](https://github.com/bytecodealliance/wasmtime/releases/tag/v51.0.0)
- **Signature changed** `DirectSource.remaining`  

Callers must handle the Result returned by DirectSource::remaining. [github.com](https://github.com/bytecodealliance/wasmtime/releases/tag/v51.0.0)
- **Signature changed** `MemoryType.new`  

Callers must handle the Result returned by MemoryType::new rather than relying on a panic. [github.com](https://github.com/bytecodealliance/wasmtime/releases/tag/v51.0.0)
- **Signature changed** `TableType.new`  

Callers must handle the Result returned by TableType::new rather than relying on a panic. [github.com](https://github.com/bytecodealliance/wasmtime/releases/tag/v51.0.0)
- **Signature changed** `wasmtime_environ::CompiledModuleInfo::func_names`  

Was func_names: Vec\<FunctionName>; now func_names: TryVec\<FunctionName>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::Component::defined_resource_instances`  

Was defined_resource_instances: PrimaryMap\<DefinedResourceIndex, RuntimeComponentInstanceIndex>; now defined_resource_instances: TryPrimaryMap\<DefinedResourceIndex, RuntimeComponentInstanceIndex>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::Component::export_items`  

Was export_items: PrimaryMap\<ExportIndex, Export>; now export_items: TryPrimaryMap\<ExportIndex, Export>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::Component::import_types`  

Was import_types: PrimaryMap\<ImportIndex, (String, ComponentExtern)>; now import_types: TryPrimaryMap\<ImportIndex, (TryString, ComponentExtern)>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::Component::imported_resources`  

Was imported_resources: PrimaryMap\<ResourceIndex, RuntimeImportIndex>; now imported_resources: TryPrimaryMap\<ResourceIndex, RuntimeImportIndex>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::Component::imports`  

Was imports: PrimaryMap\<RuntimeImportIndex, (ImportIndex, Vec\<String>)>; now imports: TryPrimaryMap\<RuntimeImportIndex, (ImportIndex, TryVec\<TryString>)>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::Component::initializers`  

Was initializers: Vec\<GlobalInitializer>; now initializers: TryVec\<GlobalInitializer>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::Component::options`  

Was options: PrimaryMap\<OptionsIndex, CanonicalOptions>; now options: TryPrimaryMap\<OptionsIndex, CanonicalOptions>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::Component::trampolines`  

Was trampolines: PrimaryMap\<TrampolineIndex, ModuleInternedTypeIndex>; now trampolines: TryPrimaryMap\<TrampolineIndex, ModuleInternedTypeIndex>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::ComponentArtifacts::static_modules`  

Was static_modules: PrimaryMap\<StaticModuleIndex, CompiledModuleInfo>; now static_modules: TryPrimaryMap\<StaticModuleIndex, CompiledModuleInfo>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::ComponentExternData::external_id`  

Was external_id: Option\<String>; now external_id: Option\<TryString>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::ComponentExternData::implements`  

Was implements: Option\<String>; now implements: Option\<TryString>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::dfg::Trampoline::ThreadNewIndirect`  

Was ThreadNewIndirect {instance: RuntimeComponentInstanceIndex, start_func_ty_idx: ComponentTypeIndex, start_func_table_id: TableId}; now ThreadNewIndirect {instance: RuntimeComponentInstanceIndex, start_func_ty_idx... [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::ExportItem::Name`  

Was Name(String); now Name(TryString). [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::InstantiateModule::Import`  

Was Import(RuntimeImportIndex, IndexMap\<String, IndexMap\<String, CoreDef>>); now Import(RuntimeImportIndex, TryIndexMap\<TryString, TryIndexMap\<TryString, CoreDef>>). [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::InstantiateModule::Static`  

Was Static(StaticModuleIndex, Box<\[CoreDef\]>); now Static(StaticModuleIndex, TryVec\<CoreDef>). [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::RecordField::name`  

Was name: String; now name: TryString. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::Trampoline::ThreadNewIndirect`  

Was ThreadNewIndirect {/// The specific component instance which is calling the intrinsic. instance: RuntimeComponentInstanceIndex, /// The type index for the start function of the thread. start_func_ty_idx: ComponentTypeIndex, /// The... [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::TypeComponent::exports`  

Was exports: IndexMap\<String, ComponentExtern>; now exports: TryIndexMap\<TryString, ComponentExtern>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::TypeComponent::imports`  

Was imports: IndexMap\<String, ComponentExtern>; now imports: TryIndexMap\<TryString, ComponentExtern>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::TypeComponentInstance::exports`  

Was exports: IndexMap\<String, ComponentExtern>; now exports: TryIndexMap\<TryString, ComponentExtern>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::TypeEnum::names`  

Was names: IndexSet\<String>; now names: TryIndexSet\<TryString>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::TypeFlags::names`  

Was names: IndexSet\<String>; now names: TryIndexSet\<TryString>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::TypeFunc::param_names`  

Was param_names: Vec\<String>; now param_names: TryVec\<TryString>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::TypeModule::exports`  

Was exports: IndexMap\<String, EntityType>; now exports: TryIndexMap\<TryString, EntityType>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::TypeModule::imports`  

Was imports: IndexMap<(String, String), EntityType>; now imports: TryIndexMap<(TryString, TryString), EntityType>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::TypeRecord::fields`  

Was fields: Box<\[RecordField\]>; now fields: TryVec\<RecordField>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::TypeTuple::types`  

Was types: Box<\[InterfaceType\]>; now types: TryVec\<InterfaceType>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::component::TypeVariant::cases`  

Was cases: IndexMap\<String, Option\<InterfaceType>>; now cases: TryIndexMap\<TryString, Option\<InterfaceType>>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::fact::Module::adapt`  

Was fn adapt(&mut self, name: &str, component: &ComponentDfg, adapter: AdapterId); now fn adapt(&mut self, name: &str, adapter: AdapterId). [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::fact::Module::new`  

Was fn new(types: &'a ComponentTypesBuilder, tunables: &'a Tunables, features: WasmFeatures) -> Module<'a>; now fn new(types: &'a ComponentTypesBuilder, component: &'a ComponentDfg, tunables: &'a Tunables, features: WasmFeatures) ->... [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)
- **Signature changed** `wasmtime_environ::Metadata::dwarf`  

Was dwarf: Vec<(u8, Range\<u64>)>; now dwarf: TryVec<(u8, Range\<u64>)>. [crates.io](https://crates.io/crates/wasmtime-environ/51.0.0)

## Related packages

- [wasmtime](https://since.dev/packages/homebrew/wasmtime.md):  on Homebrew
- [wasmtime-wasi-http](https://since.dev/packages/crates/wasmtime-wasi-http.md)
- [wasmtime](https://since.dev/packages/crates/wasmtime.md)
- [cranelift-codegen](https://since.dev/packages/crates/cranelift-codegen.md)
- [wasmtime-wasi](https://since.dev/packages/crates/wasmtime-wasi.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
