-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathCargo.toml
More file actions
47 lines (40 loc) · 1.38 KB
/
Cargo.toml
File metadata and controls
47 lines (40 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
[package]
name = "rust-solana-analyzer"
version = "0.1.0"
edition = "2024"
description = "Static analyzer for Solana/Anchor contracts in Rust"
authors = ["inversive <contact@inversive.xyz>"]
license = "AGPL-3.0-only"
[dependencies]
# Rust syntax analysis
# full => full Rust features
# parsing => parse Rust code as text
# extra-traits => Debug, Eq traits for AST types
# syn-serde => Serialize/Deserialize for AST types
syn = { version = "2.0", features = ["full", "extra-traits", "visit"] }
syn-serde = { version = "0.3", features = ["json"] }
# Anchor semantic analysis (with syn 1.0 compatibility)
anchor-syn = "0.31.1"
# Alias for syn 1.0 specifically for anchor-syn compatibility
syn1 = { package = "syn", version = "1.0.109", features = ["full", "extra-traits", "parsing"] }
log = "0.4"
env_logger = "0.11.8"
chrono = { version = "0.4", features = ["serde"] }
# Serialization/Deserialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0.141"
# CLI and error handling
# clap => command line argument parsing
# anyhow => error handling
clap = { version = "4.5.41", features = ["derive"] }
anyhow = "1.0"
# File system utilities
# walkdir => directory traversal
walkdir = "2.3"
# Additional dependencies for AST processing
quote = "1.0"
proc-macro2 = { version = "1.0", features = ["span-locations"] }
# Library configuration
[lib]
name = "rust_solana_analyzer"
path = "src/lib.rs"