stellar / rs-soroban-sdk

Rust SDK for Soroban contracts.
Apache License 2.0
125 stars 67 forks source link

Support referencing and re-exporting types from other libs for type sharing #1330

Open leighmcculloch opened 1 month ago

leighmcculloch commented 1 month ago

What problem does your feature solve?

It's desirable to be able to export types from a contract that have been defined in another crate or contract.

See discussions about doing that here:

What would you like to see?

Ideally a way to use a type in a contract functions interface, where that type is defined in another crate or another contract.

What alternatives are there?

A manual way to redefine the same type, as a type-alias of sorts, and somehow adopt the structure of the type defined elsewhere and be compatible.

leighmcculloch commented 1 month ago

This issue is similar and related to: