Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove rlib #166

Merged
merged 5 commits into from
Nov 3, 2022
Merged

Remove rlib #166

merged 5 commits into from
Nov 3, 2022

Conversation

sisuresh
Copy link
Contributor

@sisuresh sisuresh commented Nov 3, 2022

Removes all use of rlib. The easiest way to do this was to have the router contracts always create the non-router contracts in wasm.

Copy link
Member

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏🏻

@@ -5,7 +5,7 @@ edition = "2021"
publish = false

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

[features]
testutils = ["soroban-sdk/testutils", "soroban-auth/testutils","soroban-liquidity-pool-contract/testutils","dep:ed25519-dalek", "dep:sha2", "dep:stellar-xdr"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I"m surprised this builds and runs. Under some conditions I"ve seen crates fail to import other crates if they were only a cdylib and not a rlib. It looks like this crate is importing soroban-liquidity-pool-contract, and that crate has no rlib.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah actually this contract only uses soroban-liquidity-pool-contract through the wasm file. All references to it in Cargo.toml can be removed.

Copy link
Member

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏🏻 Even better.

@sisuresh sisuresh merged commit 3f0388b into stellar:main Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants