Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/build/guides/conventions/workspace.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ To use the interface definition our workspace members will now have an `adder_in
```toml title="./Cargo.toml"
# <...>
[workspace.dependencies]
soroban-sdk = "26"
soroban-sdk = "30"
adder-interface = { path = "contracts/adder_interface" }
# <...>
```
Expand Down
4 changes: 2 additions & 2 deletions docs/build/smart-contracts/getting-started/hello-world.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ members = [
]

[workspace.dependencies]
soroban-sdk = "28"
soroban-sdk = "30"
```

<Info>
Expand Down Expand Up @@ -306,7 +306,7 @@ If you get an error like `can't find crate for 'core'`, it means you didn't inst

</Tip>

This is a wrapper around `cargo build` that sets the target to `wasm32v1-none` and the profile to `release` (it also [optimizes](#optimizing-builds) the resulting `.wasm` file by default). It also processes the contract's specification after the build, a step that `soroban-sdk` 28 and later requires. For this reason, always build contracts with `stellar contract build`. With `soroban-sdk` 28 or later, running `cargo build --target wasm32v1-none --release` directly fails with the error `soroban-sdk requires stellar-cli v25.2.0+ to build a contract`.
This is a wrapper around `cargo build` that sets the target to `wasm32v1-none` and the profile to `release` (it also [optimizes](#optimizing-builds) the resulting `.wasm` file by default). It also processes the contract's specification after the build, a step that `soroban-sdk` 28 and later requires. For this reason, always build contracts with `stellar contract build`, using a `stellar-cli` whose major version is the same as or newer than the `soroban-sdk` major version. With `soroban-sdk` 30, running `cargo build --target wasm32v1-none --release` directly, or building with an older `stellar-cli`, fails with the error `soroban-sdk requires stellar-cli v30.0.0+ to build a contract`.

A `.wasm` file will be outputted in the `target` directory, at `target/wasm32v1-none/release/hello_world.wasm`. The `.wasm` file is the built contract.

Expand Down
4 changes: 2 additions & 2 deletions docs/learn/migrate/evm/smart-contract-deployment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -248,11 +248,11 @@ publish = false
crate-type = ["cdylib"]

[dependencies]
soroban-sdk = { version = "28" }
soroban-sdk = { version = "30" }
num-integer = { version = "0.1.45", default-features = false, features = ["i128"] }

[dev-dependencies]
soroban-sdk = { version = "28", features = ["testutils"] }
soroban-sdk = { version = "30", features = ["testutils"] }

[profile.release]
opt-level = "z"
Expand Down
4 changes: 2 additions & 2 deletions docs/learn/migrate/evm/solidity-and-rust-basics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -572,10 +572,10 @@ crate-type = ["cdylib"]
testutils = ["soroban-sdk/testutils"]

[dependencies]
soroban-sdk = "27"
soroban-sdk = "30"

[dev-dependencies]
soroban-sdk = { version = "27", features = ["testutils"] }
soroban-sdk = { version = "30", features = ["testutils"] }

[profile.release]
opt-level = "z"
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/developer-tools/jupyter-notebooks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Rust support in Jupyter Notebooks is experimental. You might run into bugs, or u
7. Select `Rust` by searching for Rust
8. Enter on the first line an import of the `soroban-sdk` dependency with the `testutils` feature enabled.
```rust
:dep soroban-sdk = { version = "22.0.7", features = ["testutils"] }
:dep soroban-sdk = { version = "30.0.0", features = ["testutils"] }
```
9. Enter a contract. For example:

Expand Down