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
20 changes: 15 additions & 5 deletions Cargo.lock

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

18 changes: 13 additions & 5 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-0084) pre-release: per-cap-feature layout, no 'curr' module.
# Pinned to rs-stellar-xdr#552 (cf7fdedf7ca95fccf45c82e6829d14637c9b5e4c), whose
# xdr submodule is stellar-xdr#306 head (787382ef2099cca168ca1cb282730d6b7b9e2f16).
# cap_0083 + cap_0084_muxed_contract enable the muxed-contract-address
# (SC_ADDRESS_TYPE_MUXED_CONTRACT) arm on the SCAddress union, mirroring CAP-0083 gating.
[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"
version = "28.0.0"
git = "https://github.com/sisuresh/rs-stellar-xdr"
rev = "cf7fdedf7ca95fccf45c82e6829d14637c9b5e4c"
features = ["std", "type_enum", "cap_0083", "cap_0084_muxed_contract", "base64", "serde", "serde_json", "schemars"]

[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 @ 7b46a60 pre-release dep. Output is unoptimized but
# functionally correct. Re-enable once the pinned rev lands a release build.
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-0084): 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-0084): stellar-xdr is git-pinned to rs-stellar-xdr#552 (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
2 changes: 2 additions & 0 deletions tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ fn list_of_types() {
"ContractExecutable",
"ScAddressType",
"MuxedEd25519Account",
"MuxedContract",
"ScAddress",
"ScVec",
"ScMap",
Expand Down Expand Up @@ -219,6 +220,7 @@ fn list_of_types() {
"LedgerCloseValueSignature",
"StellarValue",
"StellarValueExt",
"StellarValueProposedValue",
"LedgerHeaderFlags",
"LedgerHeaderExtensionV1",
"LedgerHeaderExtensionV1Ext",
Expand Down
Loading