Skip to content

Commit

Permalink
stub out more types/funcs to compile against golang.org/x/net/interna…
Browse files Browse the repository at this point in the history
…l/socket (tinygo-org#4037)

* stub out more types/funcs to compile against golang.org/x/net/internal/socket

These are changes need to compile github.com/domainr/dnsr/ with TinyGo.
See issue tinygo-org/net#14.

These change are mostly to fix missing symbols in src/crypto/tls and
src/net.  Missing types and functions are cut-and-pasted from go1.21.4.
Functions are stubbed out returning errors.New("not implemented").

DNRS is compiled by running tinygo test:

   sfeldma@nuc:~/work/dnsr$ tinygo test -target=wasi

With this patch, and a corresponding patch for tinygo-org/net to fixup
src/net, you should get a clean compile.
  • Loading branch information
scottfeldman authored and crypto-smoke committed Feb 14, 2024
1 parent daea538 commit fb2edcd
Show file tree
Hide file tree
Showing 4 changed files with 531 additions and 4 deletions.
Loading

0 comments on commit fb2edcd

Please sign in to comment.