|
| 1 | +--- |
| 2 | +title: Run compiled code in your extension |
| 3 | +description: How to run compiled code in your extension. |
| 4 | +author: MSEdgeTeam |
| 5 | +ms.author: msedgedevrel |
| 6 | +ms.topic: conceptual |
| 7 | +ms.service: microsoft-edge |
| 8 | +ms.subservice: extensions |
| 9 | +ms.date: 02/06/2025 |
| 10 | +--- |
| 11 | +# Run compiled code in your extension |
| 12 | + |
| 13 | +<!-- todo: improve description: yaml field by summarizing article/ key words --> |
| 14 | + |
| 15 | +You can run compiled code in an extension at near-native speed. |
| 16 | + |
| 17 | +<!-- todo: |
| 18 | +With this new title, it would nice to add a generic intro about running compiled code in an extension. |
| 19 | +Why someone would want to do it? |
| 20 | +What are the benefits. |
| 21 | +tell readers to use WebAssembly immediately, only keeping the NaCl deprecation notice for a sub-section of the article. |
| 22 | +--> |
| 23 | + |
| 24 | + |
| 25 | +<!-- ====================================================================== --> |
| 26 | +## Native Client (NaCl) (deprecated) |
| 27 | + |
| 28 | +Native Client (NaCl) was a sandbox for running compiled C and C++ code in the browser efficiently and securely, independent of the user's operating system. |
| 29 | + |
| 30 | +To enhance web security and performance, NaCl is deprecated for Microsoft Edge, along with other browsers. |
| 31 | +<!-- todo: |
| 32 | +which other browsers? |
| 33 | +link to deprecation notes from these other browsers |
| 34 | +--> |
| 35 | + |
| 36 | +<!-- todo: hard or soft deprection? ie, will it still work, but discouraged? or won't work now? dates? --> |
| 37 | + |
| 38 | +To run compiled code in your extension, we recommend using WebAssembly instead. WebAssembly, also known as Wasm, is a low-level assembly-like language which many other languages, such as C, C++, or Rust, can compile to, and which can run at near native-speed in web browsers. |
| 39 | + |
| 40 | +See also: |
| 41 | +* [WebAssembly](https://developer.mozilla.org/docs/WebAssembly) at MDN. |
| 42 | +* [webassembly.org](https://webassembly.org/) |
| 43 | + |
| 44 | + |
| 45 | +<!-- ====================================================================== --> |
| 46 | +## See also |
| 47 | + |
| 48 | +* [WebAssembly (Wasm)](https://webassembly.org) |
| 49 | +* [WebAssembly Migration Guide](https://developer.chrome.com/docs/native-client/migration) |
| 50 | +* [Manifest - Nacl Modules](https://developer.chrome.com/docs/extensions/mv2/manifest/nacl-modules) |
0 commit comments