Giter VIP home page Giter VIP logo

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  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

docs.wasmer.io's Issues

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.

loading Wasm from registry behaves differently (doesn't work) than loading from local file

Following the tutorial for markdown-editor-improved I've noticed that using the version published on the registry

import { init, Wasmer, Command } from "@wasmer/sdk";

async function initialize() {
  await init();
  return await Wasmer.fromRegistry("wasmer-examples/markdown-renderer");
}

either wasmer-examples/markdown-renderer or the one I've published @kandros/markdown-renderer the markdown transformation doesn't work (video below)

CleanShot.2024-04-06.at.17.48.19.mp4

While using the locally imported version it does work!

⚠️⚠️ NB: when running the package using wasmer CLI it's working as intended!

CleanShot.2024-04-06.at.17.50.02.mp4

Add release for FreeBSD

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

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):

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.

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 |
                ||     ||

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```

Tutorial example doesn't work (doesn't publish)

I followed https://docs.wasmer.io/wasmer-pack/tutorial/01-hello-world#publishing-to-wapm

In the stage Publish To WAPM, cargo wapm --dry-run failed with the following error.

cargo wapm --dry-run

2024-05-01T07:54:06.901658Z  INFO publish: cargo_wapm::publish: Getting ready to publish dry_run=true pkg="hello-world"
Error: Unable to publish "hello-world"

Caused by:
    0: Unable to deserialize the [metadata] table
    1: expected one of "wit-bindgen" or "wai-version" to be provided, but not both
[package]
name = "hello-world"
version = "0.1.0"
edition = "2021"
description = "hello-world"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[package.metadata.wapm]
namespace = "huakunshen"
abi = "none"
bindings = { wai-bindgen = "0.1.0", exports = "src/hello-world.wai" }

[dependencies]
wai-bindgen-rust = "0.2.3"


[lib]
crate-type = ["cdylib", "rlib"]

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

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 : )

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

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.