Skip to content

Commit

Permalink
Merge branch 'main' into feat/restore-preamble
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal authored Sep 13, 2023
2 parents 9338748 + 47fb001 commit 2c60028
Show file tree
Hide file tree
Showing 17 changed files with 100 additions and 110 deletions.
74 changes: 37 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,55 +11,55 @@ default-members = ["cmd/soroban-cli", "cmd/crates/soroban-test"]
exclude = ["cmd/crates/soroban-test/tests/fixtures/hello"]

[workspace.package]
version = "0.9.4"
version = "20.0.0-rc1"

[workspace.dependencies.soroban-env-host]
version = "0.0.17"
version = "20.0.0-rc1"
git = "https://github.com/stellar/rs-soroban-env"
rev = "3d6c35d1308fc36a05d30d257756e42fc928b537"
rev = "f19ef13363a1e0cbff7b100c0599a1d63dea88a6"

[workspace.dependencies.soroban-spec]
version = "0.9.1"
version = "20.0.0-rc1"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "ee44e420b9badeb16cab870ed25bef397c058f64"
rev = "f743d6f9e49caa08924318907cd0588b60d7f187"
# path = "../rs-soroban-sdk/soroban-spec"

[workspace.dependencies.soroban-spec-rust]
version = "0.9.1"
version = "20.0.0-rc1"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "ee44e420b9badeb16cab870ed25bef397c058f64"
rev = "f743d6f9e49caa08924318907cd0588b60d7f187"
# path = "../rs-soroban-sdk/soroban-spec-rust"

[workspace.dependencies.soroban-spec-json]
version = "0.9.4"
version = "20.0.0-rc1"
path = "./cmd/crates/soroban-spec-json"

[workspace.dependencies.soroban-spec-typescript]
version = "0.9.4"
version = "20.0.0-rc1"
path = "./cmd/crates/soroban-spec-typescript"

[workspace.dependencies.soroban-spec-tools]
version = "0.9.4"
version = "20.0.0-rc1"
path = "./cmd/crates/soroban-spec-tools"

[workspace.dependencies.soroban-sdk]
version = "0.9.1"
version = "20.0.0-rc1"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "ee44e420b9badeb16cab870ed25bef397c058f64"
rev = "f743d6f9e49caa08924318907cd0588b60d7f187"

[workspace.dependencies.soroban-ledger-snapshot]
version = "0.9.1"
version = "20.0.0-rc1"
git = "https://github.com/stellar/rs-soroban-sdk"
rev = "ee44e420b9badeb16cab870ed25bef397c058f64"
rev = "f743d6f9e49caa08924318907cd0588b60d7f187"

[workspace.dependencies.soroban-cli]
version = "0.9.4"
version = "20.0.0-rc1"
path = "cmd/soroban-cli"

[workspace.dependencies.stellar-xdr]
version = "0.0.17"
version = "20.0.0-rc1"
git = "https://github.com/stellar/rs-stellar-xdr"
rev = "39904e09941046dab61e6e35fc89e31bf2dea1cd"
rev = "d5ce0c9e7aa83461773a6e81662067f35d39e4c1"
default-features = false

[workspace.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion cmd/crates/soroban-spec-json/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ sha2 = "0.9.9"

[dependencies.stellar-xdr]
workspace = true
features = ["next", "std", "serde"]
features = ["curr", "std", "serde"]

[dev_dependencies]
pretty_assertions = "1.2.1"
2 changes: 1 addition & 1 deletion cmd/crates/soroban-spec-tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ crate-type = ["rlib"]
[dependencies]
soroban-spec = { workspace = true }
stellar-strkey = { workspace = true }
stellar-xdr = { workspace = true, features = ["next", "std", "serde"] }
stellar-xdr = { workspace = true, features = ["curr", "std", "serde"] }
serde_json = { workspace = true }
itertools = { workspace = true }
ethnum = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion cmd/crates/soroban-spec-typescript/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ base64 = { workspace = true }

[dependencies.stellar-xdr]
workspace = true
features = ["next", "std", "serde", "base64"]
features = ["curr", "std", "serde", "base64"]

[dev_dependencies]
temp-dir = "0.1.11"
Expand Down
2 changes: 1 addition & 1 deletion cmd/crates/soroban-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repository = "https://github.com/stellar/soroban-test"
authors = ["Stellar Development Foundation <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
version = "0.9.4"
version = "20.0.0-rc1"
edition = "2021"
rust-version = "1.70"
autobins = false
Expand Down
2 changes: 1 addition & 1 deletion cmd/crates/soroban-test/tests/fixtures/hello/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "soroban-hello"
version = "0.9.4"
version = "20.0.0-rc1"
edition = "2021"
publish = false

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "test_custom_types"
version = "0.9.4"
version = "20.0.0-rc1"
authors = ["Stellar Development Foundation <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "test_hello_world"
version = "0.9.4"
version = "20.0.0-rc1"
authors = ["Stellar Development Foundation <[email protected]>"]
license = "Apache-2.0"
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion cmd/soroban-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repository = "https://github.com/stellar/soroban-cli"
authors = ["Stellar Development Foundation <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
version = "0.9.4"
version = "20.0.0-rc1"
edition = "2021"
rust-version = "1.72"
autobins = false
Expand Down
16 changes: 2 additions & 14 deletions cmd/soroban-cli/src/commands/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,9 @@ pub fn long() -> String {
format!("soroban-env interface version {}", meta::INTERFACE_VERSION),
format!(
"stellar-xdr {} ({})
xdr next ({})",
xdr.pkg, xdr.rev, xdr.xdr_next,
xdr curr ({})",
xdr.pkg, xdr.rev, xdr.xdr_curr,
),
]
.join("\n")
}

// Check that the XDR cannel in use is 'next' to ensure that the version output
// is not forgotten when we eventually update to using curr. This is a bit of a
// hack because of limits of what you can do in a constant context, but by being
// a constant context this is checked at compile time.
const _: () = {
#[allow(clippy::single_match)]
match soroban_env_host::VERSION.xdr.xdr.as_bytes() {
b"next" => (),
_ => panic!("xdr version channel needs updating"),
}
};
Loading

0 comments on commit 2c60028

Please sign in to comment.