Skip to content

Commit c034aaf

Browse files
authored
Add deprecation warnings to wasm-compose and wasm-tools compose (#1564)
1 parent cff3c9a commit c034aaf

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ that can be use programmatically as well:
142142
| `wasm-tools objdump` | | Print debugging information about section headers |
143143
| `wasm-tools strip` | | Remove custom sections from a WebAssembly file |
144144
| `wasm-tools demangle` | | Demangle Rust and C++ symbol names in the `name` section |
145-
| `wasm-tools compose` | [wasm-compose] | Compose wasm components together |
145+
| `wasm-tools compose` | [wasm-compose] | Compose wasm components together (*deprecated*) |
146146
| `wasm-tools component new` | [wit-component] | Create a component from a core wasm binary |
147147
| `wasm-tools component wit` | | Extract a `*.wit` interface from a component |
148148
| `wasm-tools component embed` | | Embed a `component-type` custom section in a core wasm binary |

crates/wasm-compose/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
## Overview
1818

19+
**IMPORTANT**: `wasm-compose` has been been deprecated in favor of [`wac`](https://github.com/bytecodealliance/wac).
20+
1921
`wasm-compose` is a library for composing [WebAssembly components](https://github.com/webassembly/component-model)
2022
from other WebAssembly components.
2123

src/bin/wasm-tools/compose.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ impl Opts {
5353
}
5454

5555
pub fn run(self) -> Result<()> {
56+
eprintln!("WARNING: `wasm-tools compose` has been deprecated.");
57+
eprintln!("");
58+
eprintln!("Please use `wac` instead. You can find more information about `wac` at https://github.com/bytecodealliance/wac.");
5659
let config = self.create_config()?;
5760
log::debug!("configuration:\n{:#?}", config);
5861

0 commit comments

Comments
 (0)