jpeddicord / askalono

A tool & library to detect open source licenses from texts
Apache License 2.0
258 stars 26 forks source link

WASM #1

Open jpeddicord opened 6 years ago

jpeddicord commented 6 years ago

Yes, really. Not so much for use in a browser, but to make use in Node less painful.

Alternatives to that root problem:

Neither are huge upfront cost, but are a maintenance load and are more difficult to use downstream.

...also I think it'd be really neat to have an in-browser demo of this library.

jpeddicord commented 6 years ago

Thought dump:

jpeddicord commented 6 years ago

Progress made here! There's some stuff in the wasm directory in master. It's very basic and not at all supported, but I'm hoping to iterate quickly as some more dependencies become wasm-capable.

dattanchu commented 4 years ago

After installing apt packages clang, and gcc-multilib, I am now stuck on an error when rust try to compile zstd-sys error: unable to create target: 'No available targets are compatible with this triple.'

You mentioned that you were able to use emscripten to build a wasm binding for this library. Can you give more information please?

jpeddicord commented 4 years ago

I've in fact been running into this issue myself; it's been a while since I got this to work out successfully. If I recall correctly, the options were to use emsdk to build with emscripten (which doesn't really fix the wasm32 target here) or to build LLVM yourself with the wasm32 stdlib enabled. The packages on Ubuntu don't ship with that; the packages on Arch might. I do want to dig into this more.