Skip to content

Commit

Permalink
add lint rule for solana target os and remove unused patched crate
Browse files Browse the repository at this point in the history
  • Loading branch information
Arrowana committed Dec 17, 2024
1 parent f022b69 commit 8259ba1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
#solana_version = "2.0.19"
solana_version = "2.0.19"
anchor_version = "0.30.1-4cdb0ebe8f613f7dbbd5c4b00571139b2517898f"

[features]
Expand Down
5 changes: 0 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,3 @@ utoipauto = "0.2.0"
# anchor 0.30.1 but point to the version before solana 2.1
anchor-lang = { git = "https://github.com/coral-xyz/anchor.git", rev = "4cdb0ebe8f613f7dbbd5c4b00571139b2517898f" }
anchor-spl = { git = "https://github.com/coral-xyz/anchor.git", rev = "4cdb0ebe8f613f7dbbd5c4b00571139b2517898f" }
anchor-client = { git = "https://github.com/coral-xyz/anchor.git", rev = "4cdb0ebe8f613f7dbbd5c4b00571139b2517898f" }
6 changes: 6 additions & 0 deletions programs/order-engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ anchor-debug = []
custom-panic = []
production = []

[lints.rust.unexpected_cfgs]
level = "warn"
check-cfg = [
'cfg(target_os, values("solana"))',
]

[dependencies]
anchor-lang = { workspace = true }
anchor-spl = { workspace = true }
Expand Down

0 comments on commit 8259ba1

Please sign in to comment.