You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think for Playground to compile this code we'd need to have it pass the feature flag.
I think ideally we should be able to pass features: ["pyth-sdk-solana"] to the /build server, alongside rust files + uuid, and then have the build server include this feature flag when building
One thing I'm not sure about is how dependencies work in the build server, because we don't pass cargo.toml in. I guess the build server would need to detect the pyth dependency only if that feature flag is passed in?
The text was updated successfully, but these errors were encountered:
I'll close this, we don't need this for seahorse features any more and doesn't seem to have been any other interest in the idea. Probably not worth doing!
In Seahorse when using Pyth, it is an optional dependency that is enabled using
anchor build -- --features pyth-sdk-solana
This enables code in the generated
src/lib.rs
:I think for Playground to compile this code we'd need to have it pass the feature flag.
I think ideally we should be able to pass
features: ["pyth-sdk-solana"]
to the/build
server, alongside rust files + uuid, and then have the build server include this feature flag when buildingOne thing I'm not sure about is how dependencies work in the build server, because we don't pass cargo.toml in. I guess the build server would need to detect the pyth dependency only if that feature flag is passed in?
The text was updated successfully, but these errors were encountered: