Skip to content
Draft
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
18 changes: 14 additions & 4 deletions Cargo.lock

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

16 changes: 12 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ console_error_panic_hook = { version = "0.1.7", optional = true }
# TODO: For use with generating native values.
# serde-wasm-bindgen = "0.6.5"

# Protocol 28 (CAP-0085) pre-release: pinned to rs-stellar-xdr#553
# (e1170cd9abb9d1d10cf4a3b7ed4091a109f56b71), whose xdr submodule is
# stellar-xdr#308 head (76218a994f8c5ba752cba368080fb2f89843ad3c).
# cap_0085_executable_ref adds the externally-managed contract-executable types
# (ContractExecutableExternalRef, SCV_EXECUTABLE_TAG, CONTRACT_EXECUTABLE_EXTERNAL_REF).
[dependencies.stellar-xdr]
version = "27.0.0"
features = ["std", "base64", "serde", "serde_json", "schemars", "type_enum"]
# git = "https://github.com/stellar/rs-stellar-xdr"
# rev = "89a8bcde36aeda551cb0e3f9aa3e9fcf315fe1cc"
git = "https://github.com/sisuresh/rs-stellar-xdr"
rev = "e1170cd9abb9d1d10cf4a3b7ed4091a109f56b71"
features = ["std", "base64", "serde", "serde_json", "schemars", "type_enum", "cap_0085_executable_ref"]

[dev-dependencies]
wasm-bindgen-test = "0.3.34"
Expand All @@ -42,4 +47,7 @@ strip = "symbols"
debug-assertions = false

[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O", "--enable-bulk-memory"]
# wasm-opt disabled — local binaryen may reject the bulk-memory ops emitted by the
# rs-stellar-xdr pre-release dep. Output is unoptimized but functionally correct.
# Re-enable once the pinned rev lands a crates.io release.
wasm-opt = false
9 changes: 6 additions & 3 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,19 @@ allow = [
]
deny = [
]
skip = [
]
# SPIKE (p28-cap-0085): git-pinned stellar-xdr pulls crate-git-revision 0.0.9 while
# crates.io stellar-strkey pulls 0.0.6. Remove when the pin flips to version=.
skip = [{ name = "crate-git-revision", version = "0.0.6" }]
skip-tree = [
]

[sources]
unknown-registry = "deny"
unknown-git = "deny"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]
allow-git = []
# SPIKE (p28-cap-0085): stellar-xdr is git-pinned to rs-stellar-xdr#553 (fork) until it
# releases on crates.io. Revert to allow-git = [] when the pin flips to version=.
allow-git = ["https://github.com/sisuresh/rs-stellar-xdr"]

[sources.allow-org]
github = []
Expand Down
1 change: 1 addition & 0 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ fn list_of_types() {
"UInt256Parts",
"Int256Parts",
"ContractExecutableType",
"ContractExecutableExternalRef",
"ContractExecutable",
"ScAddressType",
"MuxedEd25519Account",
Expand Down
Loading