ameliatastic / seahorse-lang

Write Anchor-compatible Solana programs in Python
Apache License 2.0
313 stars 43 forks source link

Make lib feature-aware and conditionally import Pyth #93

Closed mcintyre94 closed 1 year ago

mcintyre94 commented 1 year ago

This allows environments like Playground to know which dependencies are required without being aware of feature flags

We still use an optional feature + cargo feature flag for the dependency when running locally

The result is Seahorse 🤝 Pyth 🤝 Playground

Screenshot 2023-02-23 at 19 17 53

Closes: #75

ameliatastic commented 1 year ago

Whoops, looks like a lot of conflicts came up when I merged #92. Shouldn't affect the tests too much, though.

I'll review this soon - can you add that this will close #75?

mcintyre94 commented 1 year ago

Rebased + added that :)

ameliatastic commented 1 year ago

LGTM!