hashicorp / go-secure-stdlib

Mozilla Public License 2.0
64 stars 24 forks source link

Allow compiling to WASM #109

Closed swenson closed 11 months ago

swenson commented 11 months ago

By updating go-sockaddr to 1.0.6 and shuffling some files around so that build tags would ignore irrelevant files for JS/WASM (such as the plugincontainer stuff that doesn't even make sense when compiling to JS/WASM).

swenson commented 11 months ago

(Waiting on https://github.com/mitchellh/cli/pull/103 before listenerutil will build under JS/WASM.)

swenson commented 11 months ago

(Also waiting on https://github.com/hashicorp/go-kms-wrapping/pull/207 for configutil to build.)

swenson commented 11 months ago

All dependencies fixed now :)

Although this moves from micthellh/cli to hashicorp/cli, this shouldn't require users of this library to upgrade immediately: the only usage is withcli.Ui, which is a very simple interface that both versions are compatible with.

swenson commented 11 months ago

Thanks! No problem on the conflicts :)