skif 0.4.0

Embeddable facade for skif: discover a JS/TS workspace, lint it and plan fixes without IO side effects.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.100"
name = "skif"
version = "0.4.0"
authors = ["Na'aman Hirschfeld <nhirschfeld@gmail.com>"]
build = false
include = [
    "/src/**",
    "/benches/**",
    "/tests/**",
    "/Cargo.toml",
    "/LICENSE",
    "/ATTRIBUTIONS.md",
    "/README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embeddable facade for skif: discover a JS/TS workspace, lint it and plan fixes without IO side effects."
homepage = "https://goldziher.github.io/skif/"
documentation = "https://docs.rs/skif"
readme = "README.md"
keywords = [
    "linter",
    "monorepo",
    "package-json",
    "dependencies",
    "pnpm",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/Goldziher/skif"

[package.metadata.docs.rs]
all-features = true

[features]
default = ["manifest"]
fix = ["dep:skif-edit"]
js-analysis = ["dep:skif-js"]
manifest = ["dep:skif-rules"]
report = ["dep:skif-report"]
schema = ["skif-config/schema"]
update = [
    "manifest",
    "fix",
]
yaml-fix = [
    "fix",
    "skif-edit/yaml",
]

[lib]
name = "skif"
path = "src/lib.rs"

[[test]]
name = "docs"
path = "tests/docs.rs"
required-features = ["js-analysis"]

[[test]]
name = "fix"
path = "tests/fix.rs"
required-features = ["fix"]

[[test]]
name = "inheritance"
path = "tests/inheritance.rs"

[[test]]
name = "js"
path = "tests/js.rs"
required-features = ["js-analysis"]

[[test]]
name = "module_cache"
path = "tests/module_cache.rs"
required-features = ["js-analysis"]

[[test]]
name = "parallel"
path = "tests/parallel.rs"

[[test]]
name = "policy_conformance"
path = "tests/policy_conformance.rs"
required-features = ["yaml-fix"]

[[test]]
name = "public_api"
path = "tests/public_api.rs"

[[test]]
name = "root"
path = "tests/root.rs"

[[test]]
name = "threads"
path = "tests/threads.rs"
required-features = ["js-analysis"]

[[test]]
name = "update"
path = "tests/update.rs"
required-features = ["update"]

[[bench]]
name = "fix"
path = "benches/fix.rs"
harness = false
required-features = ["fix"]

[[bench]]
name = "ondisk"
path = "benches/ondisk.rs"
harness = false
required-features = ["js-analysis"]

[[bench]]
name = "pipeline"
path = "benches/pipeline.rs"
harness = false

[dependencies.rayon]
version = "1.12.0"

[dependencies.skif-config]
version = "=0.4.0"

[dependencies.skif-core]
version = "=0.4.0"

[dependencies.skif-edit]
version = "=0.4.0"
optional = true

[dependencies.skif-js]
version = "=0.4.0"
optional = true

[dependencies.skif-lint]
version = "=0.4.0"

[dependencies.skif-report]
version = "=0.4.0"
optional = true

[dependencies.skif-rules]
version = "=0.4.0"
optional = true

[dependencies.skif-workspace]
version = "=0.4.0"

[dependencies.thiserror]
version = "2.0.21"

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

[dev-dependencies.serde-saphyr]
version = "2.1.1"

[dev-dependencies.serde_json]
version = "1.0.154"
features = ["preserve_order"]

[dev-dependencies.skif-rules]
version = "=0.4.0"

[dev-dependencies.tempfile]
version = "3.27.0"

[dev-dependencies.toml]
version = "1.2.1"
features = ["preserve_order"]

[lints.clippy]
expect_used = "warn"
too_many_lines = "allow"
unnecessary_box_returns = "allow"
unnecessary_debug_formatting = "allow"
unwrap_used = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "forbid"