Closed sverhoeven closed 2 years ago
I am not well versed in wasm, so I will have to look into the Copy requirement and how to handle that properly. For the new build target I would propose to do that behind a feature.
Stopping this. Instead of putting wasm target inside, better to use crate in another repo. See https://github.com/i-VRESSE/pdbtbx-ts#test-from-js
Trying to build this rust package into a js package using https://github.com/rustwasm/wasm-pack
output
``` [INFO]: Checking for the Wasm target... [INFO]: Compiling to Wasm... Compiling pdbtbx v0.9.1 (/home/verhoes/git/vre4imbc/pdbtbx) error[E0277]: the trait bound `std::string::String: std::marker::Copy` is not satisfied --> src/structs/pdb.rs:39:21 | 39 | pub identifier: OptionFor now getting
the trait 'std::marker::Copy' is not implemented
errors. And probably breaks the original build target.