-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Makefile target for publishing and set versions (#380)
Co-authored-by: Graydon Hoare <[email protected]>
- Loading branch information
1 parent
a22a8e6
commit 7324008
Showing
12 changed files
with
83 additions
and
70 deletions.
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 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 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 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,20 +1,10 @@ | ||
# rs-soroban-sdk | ||
Rust SDK for writing contracts for [Soroban]. | ||
|
||
**This repository contains code that is in early development, incomplete, not tested, and not recommended for use. The API is unstable, experimental, and is receiving breaking changes frequently.** | ||
|
||
[Soroban]: https://soroban.stellar.org | ||
Soroban: https://soroban.stellar.org | ||
|
||
## Run a contract on the Stellar-Core Soroban prototype | ||
Docs: https://docs.rs/soroban-sdk | ||
|
||
The Stellar-Core Soroban prototype and this SDK are not 100% compatible. Both are still in development and some features may be present in one and not the other. This may cause some example contracts to fail to run on the prototype. However, all examples and tests in this repo should function on the mock host implementation built into the SDK, which is what all tests within the SDK use. | ||
**This repository contains code that is in early development, incomplete, not tested, and not recommended for use. The API is unstable, experimental, and is receiving breaking changes frequently.** | ||
|
||
### Prerequisites | ||
1. Install binaryen - https://github.com/WebAssembly/binaryen#building | ||
2. Install wabt - https://github.com/WebAssembly/wabt#cloning | ||
* This is optional. It contains wasm-objdump, which you can use to dump the contents of a contract. Ex. `wasm-objdump -xh ~/stellar/rs-soroban-sdk/target/wasm32-unknown-unknown/release/example_add.wasm` | ||
3. Make sure binaries from the first two steps are available in your PATH. | ||
4. Install Rust - https://www.rust-lang.org/learn/get-started | ||
5. Build - https://github.com/stellar/rs-soroban-sdk | ||
* rustup target add wasm32-unknown-unknown | ||
* make all | ||
[Soroban]: https://soroban.stellar.org |
This file contains 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,16 +1,20 @@ | ||
[package] | ||
name = "soroban-macros" | ||
version = "0.0.0" | ||
name = "soroban-sdk-macros" | ||
description = "Soroban SDK macros." | ||
homepage = "https://github.com/stellar/rs-soroban-sdk" | ||
repository = "https://github.com/stellar/rs-soroban-sdk" | ||
authors = ["Stellar Development Foundation <[email protected]>"] | ||
readme = "../README.md" | ||
license = "Apache-2.0" | ||
version = "0.0.2" | ||
edition = "2021" | ||
|
||
[lib] | ||
proc-macro = true | ||
doctest = false | ||
|
||
[dependencies] | ||
stellar-xdr = { git = "https://github.com/stellar/rs-stellar-xdr", rev = "94e01c7b", features = ["next", "std"] } | ||
stellar-xdr = { version = "0.0.1", features = ["next", "std"] } | ||
syn = {version="1.0",features=["full"]} | ||
quote = "1.0" | ||
proc-macro2 = "1.0" | ||
|
This file contains 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,30 +1,35 @@ | ||
[package] | ||
name = "soroban-sdk" | ||
version = "0.0.0" | ||
description = "Soroban SDK." | ||
homepage = "https://github.com/stellar/rs-soroban-sdk" | ||
repository = "https://github.com/stellar/rs-soroban-sdk" | ||
authors = ["Stellar Development Foundation <[email protected]>"] | ||
readme = "../README.md" | ||
license = "Apache-2.0" | ||
version = "0.0.2" | ||
edition = "2021" | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
||
[dependencies] | ||
soroban-macros = { path = "../macros" } | ||
soroban-sdk-macros = { version = "0.0.2" } | ||
ed25519-dalek = { version = "1.0.1", optional = true } | ||
|
||
[target.'cfg(target_family="wasm")'.dependencies] | ||
soroban-env-guest = { git = "https://github.com/stellar/rs-soroban-env", rev = "36a5007" } | ||
# soroban-env-guest = { path = "../../rs-soroban-env/soroban-env-guest" } | ||
soroban-env-guest = { version = "0.0.3" } | ||
|
||
[target.'cfg(not(target_family="wasm"))'.dependencies] | ||
soroban-env-host = { git = "https://github.com/stellar/rs-soroban-env", rev = "36a5007" } | ||
# soroban-env-host = { path = "../../rs-soroban-env/soroban-env-host" } | ||
soroban-env-host = { version = "0.0.3" } | ||
|
||
[dev-dependencies] | ||
stellar-xdr = { git = "https://github.com/stellar/rs-stellar-xdr", rev = "94e01c7b", features = ["next", "std"] } | ||
stellar-xdr = { version = "0.0.1", features = ["next", "std"] } | ||
trybuild = "1.0.63" | ||
hex = "0.4.3" | ||
|
||
[features] | ||
testutils = ["soroban-env-host/testutils", "dep:ed25519-dalek"] | ||
docs = [] | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true |
This file contains 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 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ version = "0.0.0" | |
authors = ["Stellar Development Foundation <[email protected]>"] | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
This file contains 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ version = "0.0.0" | |
authors = ["Stellar Development Foundation <[email protected]>"] | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
This file contains 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 |
---|---|---|
|
@@ -4,6 +4,8 @@ version = "0.0.0" | |
authors = ["Stellar Development Foundation <[email protected]>"] | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
This file contains 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ version = "0.0.0" | |
authors = ["Stellar Development Foundation <[email protected]>"] | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|
This file contains 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 |
---|---|---|
|
@@ -4,6 +4,7 @@ version = "0.0.0" | |
authors = ["Stellar Development Foundation <[email protected]>"] | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
publish = false | ||
|
||
[lib] | ||
crate-type = ["cdylib", "rlib"] | ||
|