message-signing icon indicating copy to clipboard operation
message-signing copied to clipboard

Building not working since no package.json in the project

Open xocdr opened this issue 4 years ago • 1 comments

README talks about building using npm run build:* but that is not possible since no package.json is available.

Please provide proper documentation (and while you are at it, provide proper documentation for the serialization library too).

xocdr avatar Aug 28 '21 22:08 xocdr

I think that part was just a mistake since we use those commands in the serialization lib. They're aliases for the standard wasm-pack build/pack commands, as it is mentioned it can be built from. The other documentation we have for this crate inside of example/rust is aimed at people using it from rust which documents basic usage as well.

It's a rust project which just provides wasm_bindgen wrappers to everything. In the meantime if you're trying to get this to work until the documentation has been updated try:

wasm-pack build --target=browser (or nodejs)
wasm-pack pack

from the rust directory which will generate a pkg directory containing the built wasm along with the javascript glue code.

I hope this helps a bit until the documentation for js usage can be changed.

rooooooooob avatar Aug 28 '21 23:08 rooooooooob