-
Notifications
You must be signed in to change notification settings - Fork 210
Create solana-sdk-wasm-js crate #138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
bb00387
Create program-wasm crate
LucasSte ff92059
Bundle everything
LucasSte 666e263
Rename crate
LucasSte 0f21b19
Remove cdylib
LucasSte 56cf714
Do not build sdk-wasm for sbf
LucasSte ba587b8
Add README
LucasSte 60c4367
Update comments
LucasSte 87493fa
Revert changes in the SDK crate
LucasSte cc8365b
Revert changes in the program crate
LucasSte a8348cf
Remove rlib from sdk-wasm crate
LucasSte 6777912
Update README
LucasSte db59a6e
Change crate name
LucasSte 9a86349
Fix typos and improve description
LucasSte b56961c
Revert "Revert changes in the program crate"
LucasSte 069d9a1
Revert "Revert changes in the SDK crate"
LucasSte 26f497f
Build docs for wasm
LucasSte 6299bf7
Remove dependency, rewrite readme and change version
LucasSte 3d44a7e
Fix rebase conflicts
LucasSte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| [package] | ||
| name = "solana-sdk-wasm-js" | ||
| description = "Solana SDK Wasm JS" | ||
| documentation = "https://docs.rs/solana-sdk-wasm-js" | ||
| version = "1.0.0" | ||
| authors = { workspace = true } | ||
| repository = { workspace = true } | ||
| homepage = { workspace = true } | ||
| license = { workspace = true } | ||
| edition = { workspace = true } | ||
|
|
||
| [package.metadata.docs.rs] | ||
| targets = ["wasm32-unknown-unknown"] | ||
| all-features = true | ||
| rustdoc-args = ["--cfg=docsrs"] | ||
|
|
||
| [lib] | ||
| crate-type = ["cdylib"] | ||
|
|
||
| [dependencies] | ||
| solana-instruction = { workspace = true, features = ["std"] } | ||
| solana-program = { workspace = true } | ||
| solana-sdk = { workspace = true } | ||
|
|
||
| [target.'cfg(target_arch = "wasm32")'.dependencies] | ||
| console_error_panic_hook = { workspace = true } | ||
| console_log = { workspace = true } | ||
| js-sys = { workspace = true } | ||
| log = { workspace = true } | ||
| wasm-bindgen = { workspace = true } | ||
|
|
||
| [lints] | ||
| workspace = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| <p align="center"> | ||
| <a href="https://solana.com"> | ||
| <img alt="Solana" src="https://i.imgur.com/IKyzQ6T.png" width="250" /> | ||
| </a> | ||
| </p> | ||
|
|
||
| # Solana SDK WASM JS | ||
|
|
||
| Use the Solana SDK WASM JS crate to build a JS package with `wasm-pack` usable in Node or browser environments. | ||
| See the [Solana Program Crate](https://crates.io/crates/solana-program) instead for on-chain programs, and, the [Solana SDK Crate](https://crates.io/crates/solana-sdk) for client-side | ||
| applications. | ||
|
|
||
| More information about Solana is available in the [Solana documentation](https://solana.com/docs). | ||
|
|
||
| Still have questions? Ask us on [Stack Exchange](https://sola.na/sse) |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,2 @@ | ||
| /farf/ | ||
| /node_modules/ | ||
| /package-lock.json | ||
| /target/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.