Skip to content

Commit 501379d

Browse files
Bump version to 0.3.0 (#779)
1 parent c87a13a commit 501379d

20 files changed

Lines changed: 120 additions & 59 deletions

File tree

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,5 +77,5 @@ jobs:
7777
uses: stellar/actions/.github/workflows/rust-publish-dry-run.yml@main
7878
with:
7979
runs-on: ${{ matrix.sys.os }}
80-
target: ${ matrix.sys.target }}
80+
target: ${{ matrix.sys.target }}
8181
cargo-hack-feature-options: ${{ matrix.sys.cargo-hack-feature-options }}

Cargo.lock

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,40 +22,40 @@ members = [
2222
]
2323

2424
[workspace.package]
25-
version = "0.2.1"
25+
version = "0.3.0"
2626

2727
[workspace.dependencies]
28-
soroban-sdk = { version = "0.2.1", path = "soroban-sdk" }
29-
soroban-sdk-macros = { version = "0.2.1", path = "soroban-sdk-macros" }
30-
soroban-auth = { version = "0.2.1", path = "soroban-auth" }
31-
soroban-spec = { version = "0.2.1", path = "soroban-spec" }
32-
soroban-ledger-snapshot = { version = "0.2.1", path = "soroban-ledger-snapshot" }
33-
soroban-token-spec = { version = "0.2.1", path = "soroban-token-spec" }
28+
soroban-sdk = { version = "0.3.0", path = "soroban-sdk" }
29+
soroban-sdk-macros = { version = "0.3.0", path = "soroban-sdk-macros" }
30+
soroban-auth = { version = "0.3.0", path = "soroban-auth" }
31+
soroban-spec = { version = "0.3.0", path = "soroban-spec" }
32+
soroban-ledger-snapshot = { version = "0.3.0", path = "soroban-ledger-snapshot" }
33+
soroban-token-spec = { version = "0.3.0", path = "soroban-token-spec" }
3434

3535
[workspace.dependencies.soroban-env-common]
36-
version = "0.0.9"
36+
version = "0.0.10"
3737
git = "https://github.com/stellar/rs-soroban-env"
38-
rev = "eda2ab70"
38+
rev = "c1480516"
3939

4040
[workspace.dependencies.soroban-env-guest]
41-
version = "0.0.9"
41+
version = "0.0.10"
4242
git = "https://github.com/stellar/rs-soroban-env"
43-
rev = "eda2ab70"
43+
rev = "c1480516"
4444

4545
[workspace.dependencies.soroban-env-host]
46-
version = "0.0.9"
46+
version = "0.0.10"
4747
git = "https://github.com/stellar/rs-soroban-env"
48-
rev = "eda2ab70"
48+
rev = "c1480516"
4949

5050
[workspace.dependencies.stellar-strkey]
5151
version = "0.0.6"
5252
git = "https://github.com/stellar/rs-stellar-strkey"
5353
rev = "5e582a8b"
5454

5555
[workspace.dependencies.stellar-xdr]
56-
version = "0.0.7"
56+
version = "0.0.9"
5757
git = "https://github.com/stellar/rs-stellar-xdr"
58-
rev = "2775f4b6"
58+
rev = "1309e3de"
5959
default-features = false
6060

6161
# [patch."https://github.com/stellar/rs-soroban-env"]

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ check: build fmt
3838
cargo hack --feature-powerset --exclude-features docs check
3939
cargo hack check --release --target wasm32-unknown-unknown
4040

41+
readme:
42+
cd soroban-sdk \
43+
&& cargo +nightly rustdoc -- -Zunstable-options -wjson \
44+
&& cat ../target/doc/soroban_sdk.json \
45+
| jq -r '.index[.root].docs' \
46+
> README.md
47+
cd soroban-auth \
48+
&& cargo +nightly rustdoc -- -Zunstable-options -wjson \
49+
&& cat ../target/doc/soroban_auth.json \
50+
| jq -r '.index[.root].docs' \
51+
> README.md
52+
4153
watch:
4254
cargo watch --clear --watch-when-idle --shell '$(MAKE)'
4355

soroban-auth/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description = "Soroban authorization sdk"
44
homepage = "https://github.com/stellar/rs-soroban-sdk"
55
repository = "https://github.com/stellar/rs-soroban-sdk"
66
authors = ["Stellar Development Foundation <info@stellar.org>"]
7-
readme = "../README.md"
7+
readme = "README.md"
88
license = "Apache-2.0"
99
version.workspace = true
1010
edition = "2021"

soroban-auth/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Soroban auth provides basic authentication capabilities to Soroban
2+
contracts.
3+
4+
For contracts that require basic authentication capabilities this crate may
5+
do some of the heavy lifting for supporting authentication by Stellar
6+
accounts, ed25519 signatures, or other contracts. For contracts that require
7+
more bespoke authentication this crate may not be suitable.
8+
9+
See [`verify`] for how to use.
10+
11+
See [`testutils`] for test utilities.
12+
13+
**The utilities in this crate provide no replay protection. Contracts must
14+
provide their own mechanism suitable for replay prevention that prevents
15+
contract invocations to be replayable if it is important they are not.**

soroban-sdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description = "Soroban SDK."
44
homepage = "https://github.com/stellar/rs-soroban-sdk"
55
repository = "https://github.com/stellar/rs-soroban-sdk"
66
authors = ["Stellar Development Foundation <info@stellar.org>"]
7-
readme = "../README.md"
7+
readme = "README.md"
88
license = "Apache-2.0"
99
version.workspace = true
1010
edition = "2021"

soroban-sdk/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Soroban SDK supports writing programs for the Soroban smart contract
2+
platform.
3+
4+
### Docs
5+
6+
See [soroban.stellar.org](https://soroban.stellar.org) for documentation.
7+
8+
### Examples
9+
10+
```rust
11+
use soroban_sdk::{contractimpl, symbol, vec, BytesN, Env, Symbol, Vec};
12+
13+
pub struct HelloContract;
14+
15+
#[contractimpl]
16+
impl HelloContract {
17+
pub fn hello(env: Env, to: Symbol) -> Vec<Symbol> {
18+
vec![&env, symbol!("Hello"), to]
19+
}
20+
}
21+
22+
#[test]
23+
fn test() {
24+
let env = Env::default();
25+
let contract_id = env.register_contract(None, HelloContract);
26+
let client = HelloContractClient::new(&env, &contract_id);
27+
28+
let words = client.hello(&symbol!("Dev"));
29+
30+
assert_eq!(words, vec![&env, symbol!("Hello"), symbol!("Dev"),]);
31+
}
32+
```
33+
34+
More examples are available at <https://soroban.stellar.org/docs/category/examples>.

soroban-sdk/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//!
88
//! ### Examples
99
//!
10-
//! ```
10+
//! ```rust
1111
//! use soroban_sdk::{contractimpl, symbol, vec, BytesN, Env, Symbol, Vec};
1212
//!
1313
//! pub struct HelloContract;

tests/add_i128/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "test_add_i128"
3-
version = "0.2.1"
3+
version.workspace = true
44
authors = ["Stellar Development Foundation <info@stellar.org>"]
55
license = "Apache-2.0"
66
edition = "2021"

0 commit comments

Comments
 (0)