anchor
anchor copied to clipboard
Use workspace dependencies
@DaviRain-Su is attempting to deploy a commit to the coral-xyz Team on Vercel.
A member of the Team first needs to authorize it.
This ensures consistency across crates, but it's not very editor-friendly
ye, but I also find some project use this form. https://github.com/Sovereign-Labs/sovereign-sdk
The best thing about it is that it no longer maintains local libraries using the "path" approach. This is very user-friendly.
rust blog: https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html#cargo-improvements-workspace-inheritance-and-multi-target-builds
Please maintain it like this as much as possible. This is the way I find the readability to be the best.
Please maintain it like this as much as possible. This is the way I find the readability to be the best.
Is there a script you are running to achieve this? We could only maintain this format if we can automate it otherwise this will cause us to waste a lot of time telling people to follow the format.
I like the format too but time > looks
.
I have add dprint.json to format *.toml file. https://dprint.dev/plugins/toml/
CI fails because tests are not part of the root workspace(intentional to not use Cargo.lock
).
that's a bummer w/r/t the tests if u want I can drop a code format check action into CI for dprint/rust/ts in either another pr or this one
that's a bummer w/r/t the tests if u want I can drop a code format check action into CI for dprint/rust/ts in either another pr or this one
Yeah, the main advantage would be to get rid of the relative paths but it doesn't seem to be possible with the current structure and given most of the dependencies are used only once, I'm not sure if this PR(as it stands) can be merged 😕.
Formatting with dprint
could be useful but it would be another tool that people would need to install.
If the action is only checking for formatting it becomes on the pr author to run 1-2 curl shell-ish scripts to be able to make it go away. But I get it.