-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
61 lines (53 loc) · 1.92 KB
/
Cargo.toml
File metadata and controls
61 lines (53 loc) · 1.92 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[package]
name = "ferropascal"
version = "0.1.0"
edition = "2024"
authors = ["Markus Mayer <widemeadows@gmail.com>"]
description = "A Pascal-to-Rust transpiler that converts Borland Pascal source code into idiomatic Rust"
readme = "README.md"
homepage = "https://github.com/sunsided/ferropascal"
repository = "https://github.com/sunsided/ferropascal"
license = "MIT OR Apache-2.0"
keywords = ["pascal", "rust", "transpiler", "compiler", "borland"]
categories = ["command-line-utilities", "development-tools", "compilers"]
rust-version = "1.85"
# [[bin]]
# name = "debug_parser"
# path = "debug_parser.rs"
[dependencies]
anyhow = "1.0"
atty = "0.2" # For color detection in error reporting
clap = { version = "4.5", features = ["derive"] }
handlebars = "4.5"
pest = "2.8"
pest_derive = "2.8"
prettyplease = "0.2"
proc-macro2 = "1.0"
quote = "1.0"
semver = "1.0" # For clippy version checking
# Rust AST generation ecosystem
syn = { version = "2.0", features = ["full", "extra-traits"] }
tempfile = "3.12" # For temporary file management
thiserror = "1.0"
uuid = { version = "1.10", features = ["v4"] } # For temp file naming
which = "6.0" # For clippy binary path detection
[dev-dependencies]
[lints.clippy]
# Deny dangerous patterns first (highest priority)
unwrap_used = { level = "deny", priority = -1 }
panic = { level = "deny", priority = -1 }
unimplemented = { level = "deny", priority = -1 }
# Warn on potentially problematic patterns
expect_used = { level = "warn", priority = 0 }
# Enable lint groups with lower priority
pedantic = { level = "warn", priority = 1 }
nursery = { level = "warn", priority = 1 }
# Allow some common patterns that are fine for our use case
too_many_lines = "allow"
module_name_repetitions = "allow"
# Expression parsing performance lints (T003)
# Critical for parser performance with complex expressions
redundant_clone = "deny"
unnecessary_to_owned = "deny"
string_to_string = "deny"
inefficient_to_string = "deny"