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
Copy file name to clipboardExpand all lines: README.md
+5
Original file line number
Diff line number
Diff line change
@@ -36,3 +36,8 @@ To release a new version of any of these crates, perform the following steps wit
36
36
2. Merge your change into `main` on github.
37
37
3. Create and publish a new github release.
38
38
We currently don't have a Github Action to automatically push releases to [crates.io](https://crates.io), but should set one up.
39
+
40
+
### pre-commit hooks
41
+
pre-commit is a tool that checks and fixes simple issues (formatting, ...) before each commit. You can install it by following [their website](https://pre-commit.com/). In order to enable checks for this repo run `pre-commit install` from command-line in the root of this repo.
42
+
43
+
The checks are also performed in the CI to ensure the code follows consistent formatting.
This library can be built for either your native platform or in BPF (used by Solana programs).
143
+
This library can be built for either your native platform or in BPF (used by Solana programs).
144
144
Use `cargo build` / `cargo test` to build and test natively.
145
-
Use `cargo build-bpf` / `cargo test-bpf` to build in BPF for Solana; these commands require you to have installed the [Solana CLI tools](https://docs.solana.com/cli/install-solana-cli-tools).
145
+
Use `cargo build-bpf` / `cargo test-bpf` to build in BPF for Solana; these commands require you to have installed the [Solana CLI tools](https://docs.solana.com/cli/install-solana-cli-tools).
Copy file name to clipboardExpand all lines: pyth-sdk-solana/test-contract/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
This contract is used to test pyth-sdk-solana onchain.
3
3
4
4
## Development
5
-
Use `cargo build-bpf` / `cargo test-bpf` to build in BPF for Solana; these commands require you to have installed the [Solana CLI tools](https://docs.solana.com/cli/install-solana-cli-tools).
5
+
Use `cargo build-bpf` / `cargo test-bpf` to build in BPF for Solana; these commands require you to have installed the [Solana CLI tools](https://docs.solana.com/cli/install-solana-cli-tools).
6
6
7
7
The BPF tests will also run an instruction count program that logs the resource consumption
0 commit comments