Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
58 lines (49 loc) · 1.55 KB
/
Copy pathCargo.toml
File metadata and controls
58 lines (49 loc) · 1.55 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
[package]
name = "mypy_parser"
version = "0.1.0"
publish = false
authors = ["Jukka Lehtosalo"]
edition = "2021"
rust-version = "1.80"
license = "MIT"
description = "Python extension that serializes Ruff AST for mypy"
[lib]
name = "ast_serialize"
crate-type = ["cdylib"]
[dependencies]
# PyO3 for Python bindings
# Base features always enabled; abi3-py39 is added via stable-abi feature
pyo3 = { version = "0.28.2", features = ["extension-module"] }
# Ruff dependencies for parsing Python - pinned to release tag
ruff_python_ast = { git = "https://github.com/astral-sh/ruff", tag = "0.15.5" }
ruff_python_parser = { git = "https://github.com/astral-sh/ruff", tag = "0.15.5" }
ruff_source_file = { git = "https://github.com/astral-sh/ruff", tag = "0.15.5" }
ruff_text_size = { git = "https://github.com/astral-sh/ruff", tag = "0.15.5" }
# Error handling
anyhow = "1.0"
# Hashing
sha1 = "0.10"
[dev-dependencies]
indoc = "2"
[features]
# Default: stable ABI for regular Python 3.9+
default = ["stable-abi"]
# Stable ABI wheels (cp39-abi3) - compatible with Python 3.9+
stable-abi = ["pyo3/abi3-py39"]
# Free-threaded Python wheels (cp313t) - for nogil Python
free-threaded = []
# Turn off rayon for profiling
singlethreaded = []
[lints.rust]
unsafe_code = "warn"
unreachable_pub = "warn"
[lints.clippy]
pedantic = { level = "warn", priority = -2 }
# Allowed pedantic lints (adjust based on your preferences)
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
# Restriction lints
print_stdout = "warn"
print_stderr = "warn"
dbg_macro = "warn"