Giter Site home page Giter Site logo

wasmerio / docs.wasmer.io Goto Github PK

View Code? Open in Web Editor NEW
11.0 6.0 6.0 4.56 MB

The Wasmer Docs Website (website deployed using Wasmer Edge)

Home Page: https://docs.wasmer.io/

License: MIT License

CSS 0.38% TypeScript 7.76% JavaScript 1.41% Shell 0.03% MDX 90.32% HTML 0.11%
wasmer wasmer-edge hacktoberfest hacktoberfest2023

docs.wasmer.io's People

Contributors

ayys avatar dominik-schmid avatar dynamite-bud avatar fanweixiao avatar iamshreeram avatar michael-f-bryan avatar ptitseb avatar syrusakbary avatar theduke avatar twitchax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docs.wasmer.io's Issues

Error in "How to use packages" on https://wasmer.io/

Following the how to use packages guide:

image

it states:

wasmer run syrusakbary/cowsay hello wasmer

But this does not provide the documented output

❯ wasmer run syrusakbary/cowsay hello wasmer
error: The `[email protected]` package doesn't have a default entrypoint, but has multiple available commands:
│   1: You can run any of those by using the --command-name=COMMAND flag
│   2: `cowsay`, `cowthink`
╰─▶ 3:   -> wasmer run [email protected] --command-name=cowsay

The docs need updating to this:

❯ wasmer run syrusakbary/cowsay --command-name=cowsay hello wasmer
 ______________
< hello wasmer >
 --------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
               ||----w |
                ||     ||

Update: Runtime Configuration

Update Wasmer.toml configuration to accommodate the following fields in [command.annotations.wasi]:

  • main-args
  • env

Both of these are now used in Python example too.

  1. Main args are the set of commands passed to the wasi runner
  2. Env are the set of environment variables passed to the wasi runner

Mention to update public attribute value in wasmer.toml

Specify in quickstart guide for edge to update the value public attribute to some other folder such as build or release or app etc. So that public assets such as favicon.ico, og.png,etc. that should remain inside the public folder should not conflict with the wasmer.toml.

Example Binary panics with port 80

device: MacBook Air (M1, 2020)

let port = std::env::var("PORT").unwrap_or("80".to_string());

let port = std::env::var("PORT").unwrap_or("3000".to_string()); works

error was:

Listening on http://127.0.0.1:80
thread 'main' panicked at 'error binding to 127.0.0.1:80: error creating server listener: Operation not permitted (os error 63)', /Users/johndoe/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-0.14.27/src/server/server.rs:79:13```

Add release for FreeBSD

Can you explain to me how can I contribute to the project by adding an AMD64 build release for FreeBSD?

Why `wasmer run` takes seconds to execute

Hi,

I'm trying to test boot time for wasm runtimes using a noop wasm file compiled from rust:

fn main() {}

When I excute wasmer run noop.wasm, it takes much more time than other runtimes (< 50ms).

Here's the output of time wasmer run noop.wasm -q (I use -q option to avoid printing time):

real    0m0.319s
user    0m3.088s
sys     0m0.314s

Did I take wrong method to measure boot performance of the runtime?
Do I need more command options to optimize execute time for this simple wasm file?
Or how can I measure boot time for this runtime?

Thanks for your answer : )

Feedback for “Get Started with the Wasmer Runtime”

when i input “wasmer run python/python -- -c "print(1+1)"”
it fedback:
Exception ignored error evaluating path:
Traceback (most recent call last):
File "", line 297, in
OSError: failed to make path absolute
Fatal Python error: error evaluating path
Python runtime state: core initialized

Current thread 0x00080014 (most recent call first):

Deploy Documentation

  • Overview
    Hints:
    • only Webassembly
    • stateless first: spawned and scaled on demand, most apps should be stateless
    • global edge network with automatic scaling, load balancing , ...
    • Based on wasmer packagesDep
  • optional: Why Deploy? (Benefits)
  • Usage
    Notes:
    Manage via CLI or web UI.
    • CLI
      • wasmer deploy
      • wasmer app init [static-site]
      • wasmer app [get,list]
      • wasmer app logs
    • Web UI
  • Tutorials
    • Static site
    • WASIX: Axum
    • WCGI: Rust
    • Introspection: Generating and showing logs
    • Optional: WCGI with Python
    • Optional: WASIX Axum + Leptos
  • FAQ
  • Architecture
    • high level overview (global edge network, ultra scalable, ...)
    • (future): Private encrypted network overlay (dnet)
    • (future): Persistent volumes and persistent workloads

Mention about default ports in wasix-axum example

Edge will only relay packets on port 80 for now which are forwarded through port 443 but this needs to be mentioned in wasix axum example in the edge documentation.

Mention about things like:

  • Dev server starter port
  • Default starter port

@theduke can you give some more context here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.