41710a0a5f
- Added `pi-ast` as a new crate with public `language`, `ops`, and `summary` modules and exported `SupportLang`. - Added AST summary and rewrite APIs in `pi-ast`, including language inference, overlap-safe edits, and span normalization. - Added `pi-shell` crate with new `Shell` and cross-platform `Process` APIs, session execution, and cancellation-aware runs. - Updated `pi-natives` to use shared `pi_ast`/`pi_shell` APIs, switched to local path deps, and moved minimizer assets to `pi-shell`.
113 lines
2.4 KiB
TOML
113 lines
2.4 KiB
TOML
[workspace]
|
|
members = ["crates/*"]
|
|
exclude = ["crates/brush-core-vendored", "crates/brush-builtins-vendored"]
|
|
resolver = "3"
|
|
|
|
[workspace.package]
|
|
version = "14.9.3"
|
|
edition = "2024"
|
|
license = "MIT"
|
|
authors = ["Can Boluk"]
|
|
repository = "https://github.com/can1357/oh-my-pi"
|
|
|
|
[patch.crates-io]
|
|
brush-core = { path = "crates/brush-core-vendored" }
|
|
brush-builtins = { path = "crates/brush-builtins-vendored" }
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = "fat"
|
|
codegen-units = 1
|
|
strip = true
|
|
panic = "abort"
|
|
|
|
[profile.ci]
|
|
inherits = "release"
|
|
lto = "thin"
|
|
codegen-units = 16
|
|
debug = "line-tables-only"
|
|
strip = "none"
|
|
split-debuginfo = "off"
|
|
|
|
[profile.local]
|
|
inherits = "release"
|
|
lto = "thin"
|
|
codegen-units = 16
|
|
incremental = true
|
|
strip = false
|
|
|
|
[profile.dev]
|
|
opt-level = 0
|
|
lto = false
|
|
codegen-units = 256
|
|
incremental = true
|
|
debug = "line-tables-only"
|
|
split-debuginfo = "unpacked"
|
|
|
|
# Deps compile optimized once and cache; your own crates stay fast.
|
|
[profile.dev.package."*"]
|
|
opt-level = 2
|
|
debug = false
|
|
|
|
[workspace.lints.clippy]
|
|
# Base Lint Levels
|
|
all = { level = "warn", priority = -1 }
|
|
correctness = { level = "deny", priority = -1 }
|
|
nursery = { level = "warn", priority = -1 }
|
|
pedantic = { level = "warn", priority = -1 }
|
|
perf = { level = "warn", priority = -1 }
|
|
style = { level = "warn", priority = -1 }
|
|
suspicious = { level = "deny", priority = -1 }
|
|
|
|
# Meta: Lint Attributes
|
|
allow_attributes_without_reason = "warn"
|
|
|
|
# Safety & Unsafe Code
|
|
undocumented_unsafe_blocks = "warn"
|
|
|
|
# Numeric Casts & Conversions
|
|
cast_lossless = "allow"
|
|
cast_possible_truncation = "allow"
|
|
cast_possible_wrap = "allow"
|
|
cast_precision_loss = "allow"
|
|
cast_sign_loss = "allow"
|
|
|
|
# Functions & Closures
|
|
inline_always = "allow"
|
|
must_use_candidate = "allow"
|
|
needless_pass_by_value = "allow"
|
|
redundant_closure_for_method_calls = "allow"
|
|
return_self_not_must_use = "allow"
|
|
|
|
# Structs & Types
|
|
missing_fields_in_debug = "allow"
|
|
struct_excessive_bools = "allow"
|
|
|
|
# Pattern Matching
|
|
match_same_arms = "allow"
|
|
match_wildcard_for_single_variants = "allow"
|
|
option_if_let_else = "allow"
|
|
|
|
# Imports & Module Organization
|
|
enum_glob_use = "allow"
|
|
items_after_statements = "allow"
|
|
wildcard_imports = "allow"
|
|
|
|
# Variables & Type Inference
|
|
similar_names = "allow"
|
|
|
|
# Literals & Formatting
|
|
unreadable_literal = "allow"
|
|
|
|
# Code Style
|
|
default_trait_access = "allow"
|
|
significant_drop_tightening = "allow"
|
|
|
|
# Documentation
|
|
missing_errors_doc = "allow"
|
|
missing_panics_doc = "allow"
|
|
|
|
# Complexity
|
|
too_many_lines = "allow"
|
|
too_many_arguments = "allow"
|