Skip to content

Instantly share code, notes, and snippets.

@Denommus
Created October 17, 2024 14:24
Show Gist options
  • Save Denommus/f0cf75ec2013901f519fd4ca47bb97e2 to your computer and use it in GitHub Desktop.
Save Denommus/f0cf75ec2013901f519fd4ca47bb97e2 to your computer and use it in GitHub Desktop.
A Cargo.toml that is giving error when I cargo check
[package]
name = "troll"
version = "0.1.0"
edition = "2021"
[dependencies]
bincode = "1.3.3"
color-eyre = "0.6.3"
ctrlc = "3.4.5"
ethers = "2.0.14"
ethers-providers = "2.0.14"
solana-client = { version = "2.0.13" }
solana-sdk = { version = "2.0.13", default-features = false }
solana-transaction-status = { version = "2.0.13" }
eyre = "0.6.12"
futures = "0.3.30"
futures-util = "0.3.30"
regex = "1.10.6"
reqwest = { version = "0.11.24" }
serde = "1.0.210"
serde_json = "1.0.127"
sha256 = "1.5.0"
sled = "0.34.7"
structopt = "0.3.26"
tokio = { version = "1.39.3", features = ["full"] }
tokio-tungstenite = { version = "0.23.1", features = ["native-tls"] }
# curve25519-dalek uses the simd backend by default in v4 if possible,
# which has very slow performance on some platforms with opt-level 0,
# which is the default for dev and test builds.
# This slowdown causes certain interactions in the solana-test-validator,
# such as verifying ZK proofs in transactions, to take much more than 400ms,
# creating problems in the testing environment.
# To enable better performance in solana-test-validator during tests and dev builds,
# we override the opt-level to 3 for the crate.
[profile.dev.package.curve25519-dalek]
opt-level = 3
[patch.crates-io.curve25519-dalek]
git = "https://github.com/solana-labs/curve25519-dalek.git"
rev = "b500cdc2a920cd5bff9e2dd974d7b97349d61464"
[patch.crates-io.aes-gcm-siv]
git = "https://github.com/RustCrypto/AEADs"
rev = "6105d7a5591aefa646a95d12b5e8d3f55a9214ef"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment