#soroban contract build failure

1 messages · Page 1 of 1 (latest)

cerulean jungle
#

anyone have any idea why i'm getting this error while running soroban contract build

this is my cargo.toml file

[package]
name = "hello-soroban"
version = "0.1.0"
edition = "2021"

[lib]
crate-type = ["cdylib"]

[dependencies]
soroban-sdk = "20.2.2"

[dev_dependencies]
soroban-sdk = { version = "20.2.2", features = ["testutils"] }

[features]
testutils = ["soroban-sdk/testutils"]

[profile.release]
opt-level = "z"
overflow-checks = true
debug = 0
strip = "symbols"
debug-assertions = false
panic = "abort"
codegen-units = 1
lto = true

[profile.release-with-logs]
inherits = "release"
debug-assertions = true
gloomy hatch
cerulean jungle
#
❯ rustup target add wasm32-unknown-unknown
info: component 'rust-std' for target 'wasm32-unknown-unknown' is up to date
#

@gloomy hatch

unkempt cosmos
cerulean jungle
#

Get setup to write, deploy, and invoke your first Rust smart contract by installing Rust, installing a target, configuring an editor, and installing a CLI.

Write a simple smart contract in Rust that can be deployed to a Soroban network.

clever schooner
#

Err and Ok are identifiers defined by libcore, the core part of the standard library that is always available. If there are compile errors relating to those types, it is usually because something isn't quite right with the rust installation.

#

Others who have reported seeing that error have had it go away after reinstalling Rust.