• WAPM All In One


    WAPM All In One

    WAPM is a product of Wasmer, the WebAssembly runtime.

    只要安装上 Wasmer, 就自带 wapm

    https://wasmer.io/

    wapm

    WebAssembly Package Manager

    WebAssembly apps and libraries

    https://wapm.io/

    wapm / wapm-cli

    $ wapm -h
    wapm-cli 0.5.5
    
    USAGE:
        wapm <SUBCOMMAND>
    
    FLAGS:
        -h, --help       Prints help information
        -V, --version    Prints version information
    
    SUBCOMMANDS:
        add                            Add packages to the manifest without installing
        bin                            Get the .bin dir path
        config                         Config related subcommands
        execute                        Execute a command, installing it temporarily if necessary
        help                           Prints this message or the help of the given subcommand(s)
        init                           Set up current directory for use with wapm
        install                        Install a package
        keys                           Manage minisign keys for verifying packages
        list                           List the currently installed packages and their commands
        login                          Logins into wapm, saving the token locally for future commands
        logout                         Remove the token for the registry
        publish                        Publish a package
        remove                         Remove packages from the manifest
        run                            Run a command from the package or one of the dependencies
        run-background-update-check    Run the background updater explicitly
        search                         Search packages
        uninstall                      Uninstall a package
        validate                       Check if a directory or tar.gz is a valid wapm package
        whoami                         Prints the current user (if authed) in the stdout
    
    

    MDN

    https://developer.mozilla.org/zh-CN/docs/WebAssembly/Rust_to_wasm

    demos

    /src/rust-to-wasm-npm

    # install package
    $ wapm install cowsay
    
    # test
    $ wapm run cowsay Hello World!
    $ wapm run cowsay Hello World2!
    
    $ wapm run cowsay Hello World 2022!
    
    

    https://wapm.io/syrusakbary/cowsay

    # Prints the current user (if authed) in the stdout
    $ wapm whoami
    (not logged in)
    

    how to install wapm

    Linux / Mac

    The easiest way to get wapm is to get the current stable release of Wasmer by using the install script:

    # 只要安装上 `Wasmer`, 就自带 `wapm` 了
    $ curl https://get.wasmer.io -sSfL | sh
    
    

    This will get you the current stable release of Wasmer for your platform along with the latest wapm.

    Windows
    Use the wasmer installer on the releases page to install wapm-cli.

    Build and Install wapm from Source

    Alternatively, you can build wapm from source.

    https://wapm.io/help/install

    wasmer

    类安装 node.js,已经自带 npm 了

    # 安装 wasmer,已经自带 wapm;
    $ curl https://get.wasmer.io -sSfL | sh
    
    $ wasmer -h
                                                                                
    wasmer 2.3.0
    Wasmer Engineering Team <engineering@wasmer.io>
    WebAssembly standalone runtime.
    
    USAGE:
        wasmer <SUBCOMMAND>
    
    FLAGS:
        -h, --help       Prints help information
        -V, --version    Prints version information
    
    SUBCOMMANDS:
        cache          Wasmer cache
        compile        Compile a WebAssembly binary
        config         Get various configuration information needed to compile programs which use Wasmer
        create-exe     Compile a WebAssembly binary into a native executable
        help           Prints this message or the help of the given subcommand(s)
        inspect        Inspect a WebAssembly file
        run            Run a WebAssembly file. Formats accepted: wasm, wat
        self-update    Update wasmer to the latest version
        validate       Validate a WebAssembly binary
        wast           Run spec testsuite
    
    

    refs



    ©xgqfrms 2012-2020

    www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

    原创文章,版权所有©️xgqfrms, 禁止转载 ️,侵权必究⚠️!


  • 相关阅读:
    关于伸缩盒子的使用问题
    html5前端框架
    ES6 promise对象
    Node和Electron开发入门(四):操作PC端文件系统
    兄弟组件的传值
    端口冲突解决办法
    查看mysql状态的常用命令
    使用mysqldump导入导出MySQL数据库
    Yii CModel中rules验证规则
    URL中#号的含义
  • 原文地址:https://www.cnblogs.com/xgqfrms/p/16689037.html
Copyright © 2020-2023  润新知