nginx / unit-docs

NGINX Unit's official website and documentation
https://unit.nginx.org
Creative Commons Attribution 4.0 International
49 stars 97 forks source link

WebAssembly is an 'internal' language module #106

Closed ac000 closed 2 months ago

ac000 commented 2 months ago

Both the WebAssembly modules, wasm & wasm-wasi-component are internal modules. I.e they are both loaded by Unit as DSO's and run under the direct control of Unit in prototype/application processes.

netlify[bot] commented 2 months ago

Deploy Preview for nginx-unit ready!

Built without sensitive environment variables

Name Link
Latest commit fd3afb4fe887ccf1393bab48922bc8c791c1b533
Latest deploy log https://app.netlify.com/sites/nginx-unit/deploys/65dc847296ff210008ff9d6b
Deploy Preview https://deploy-preview-106--nginx-unit.netlify.app/howto/falcon
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

ac000 commented 2 months ago

Add the wasm and wasm-wasi-component modules to the modules directory listing.

$ git range-diff 96b5445...2470612
1:  96b5445 ! 1:  2470612 WebAssembly is an 'internal' language module
    @@ source/howto/modules.rst: In Node.js, Unit is supported by an :program:`npm`-hos
      .. _modules-emb:

      *************************
    +@@ source/howto/modules.rst: to find them in your system:
    + 
    +    $ ls :nxt_ph:`/path/to/modules <Use runtime value if the default was overridden>`
    + 
    +-         java.unit.so  perl.unit.so  php.unit.so  python.unit.so  ruby.unit.so
    ++         java.unit.so  php.unit.so     ruby.unit.so  wasm_wasi_component.unit.so
    ++         perl.unit.so  python.unit.so  wasm.unit.so
    + 
    + To clarify the module versions, check the :ref:`Unit log <troubleshooting-log>`
    + to see which modules were loaded at startup:
ac000 commented 2 months ago

Add Timo's Reviewed-by

$ git range-diff 2470612...fd3afb4
1:  2470612 ! 1:  fd3afb4 WebAssembly is an 'internal' language module
    @@ Commit message
         modules. I.e they are both loaded by Unit as DSO's and run under the
         direct control of Unit in prototype/application processes.

    +    Reviewed-by: Timo Stark <t.stark@nginx.com>
         Signed-off-by: Andrew Clayton <a.clayton@nginx.com>