Skip to content

Not compilable with tinygo v0.35.0 (or any lower) #2729

Open
@eliezedeck

Description

Issue Description

Currently, echo depends on golang.org/x/net I believe for its HTTP2 stuffs (?). For tinygo compilations (such as for Cloudflare Workers using the package github.com/syumai/workers, it is currently failing with package net/http/httptrace is not in std error.

Working code to debug

package main

import (
	"net/http"

	"github.com/labstack/echo/v4"
	"github.com/syumai/workers"
)

func main() {
	e := echo.New()
	e.DisableHTTP2 = true

	e.GET("/", func(c echo.Context) error {
		return c.String(http.StatusOK, "Hello, World!")
	})

	workers.Serve(e.Server.Handler)
}

Version/commit

Any version of echo v4.

I really like echo, and I'd like to keep using it on my WASM projects. But this issue is blocking the usage right now. Any possibility of suggestion? Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions