Skip to content

Add instructions to README for using crate and publishing#93

Merged
jeffcharles merged 2 commits into
mainfrom
jc.add-some-instructions-to-readme
Mar 16, 2022
Merged

Add instructions to README for using crate and publishing#93
jeffcharles merged 2 commits into
mainfrom
jc.add-some-instructions-to-readme

Conversation

@jeffcharles
Copy link
Copy Markdown
Collaborator

Had to set a few non-standard things to publish this crate so thought I'd document them in the README.

Comment thread crates/quickjs-wasm-rs/README.md Outdated
Comment on lines +41 to +48
## Publishing to crates.io

To publish this crate to crates.io, you will need to ensure the `QUICKJS_WASM_SYS_WASI_SDK_PATH` is set to a value pointing to the absolute path where you installed the `wasi-sdk`. The `--target` parameter will also need to be set to `wasm32-wasi`.

E.g.,

```
QUICKJS_WASM_SYS_WASI_SDK_PATH=/opt/wasi-sdk cargo publish --target=wasm32-wasi
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if it's more effective to have all these instructions materialized in a bash script and we can just run it when we want to publish, or invoke it from a GH action if we ever hook that up.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can do that 👍. I'll still need to document that we need to run the script because a barebones cargo publish fails with a misleading error message.

@jeffcharles jeffcharles merged commit a3f958a into main Mar 16, 2022
@jeffcharles jeffcharles deleted the jc.add-some-instructions-to-readme branch March 16, 2022 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants