-
Notifications
You must be signed in to change notification settings - Fork 72
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
Remove rlib #166
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏🏻
liquidity_pool_router/Cargo.toml
Outdated
@@ -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"] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏🏻 Even better.
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.