jscycles 0.4.0

Find circular imports between files and workspace packages in JavaScript and TypeScript projects
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.93.0"
name = "jscycles"
version = "0.4.0"
build = false
include = [
    "src/**",
    "tests/**",
    "/examples/**",
    "/README.md",
    "/CHANGELOG.md",
    "/jscycles.schema.json",
    "/LICENSE-*",
    "/clippy.toml",
    "/rustfmt.toml",
    "Cargo.toml",
    "Cargo.lock",
]
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Find circular imports between files and workspace packages in JavaScript and TypeScript projects"
readme = "README.md"
keywords = [
    "javascript",
    "typescript",
    "circular-imports",
    "dependency-cycles",
    "static-analysis",
]
categories = [
    "development-tools",
    "command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ALMaclaine/jscycles"

[features]
cli = ["dep:clap"]
default = ["cli"]
profiling = ["dep:hotpath"]

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

[[bin]]
name = "jscycles"
path = "src/main.rs"
required-features = ["cli"]

[[example]]
name = "check"
path = "examples/check.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.clap]
version = "4"
optional = true

[dependencies.glob]
version = "0.3"

[dependencies.hotpath]
version = "=0.28.6"
features = ["hotpath"]
optional = true
default-features = false

[dependencies.rayon]
version = "1.10"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde-saphyr]
version = "2.1.1"
features = ["deserialize"]
default-features = false

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tree-sitter]
version = "=18.0.2"
package = "willbooster-tree-sitter"

[dependencies.tree-sitter-javascript]
version = "=22.0.1"
package = "willbooster-tree-sitter-javascript"

[dependencies.tree-sitter-typescript]
version = "=26.0.1"
package = "willbooster-tree-sitter-typescript"

[dependencies.walkdir]
version = "2"

[dev-dependencies.insta]
version = "1"

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

[lints.clippy]
allow_attributes_without_reason = "deny"
as_conversions = "deny"
clone_on_ref_ptr = "deny"
dbg_macro = "deny"
error_impl_error = "deny"
expect_used = "deny"
float_cmp_const = "deny"
format_push_string = "deny"
get_unwrap = "deny"
indexing_slicing = "deny"
infinite_loop = "deny"
lossy_float_literal = "deny"
map_err_ignore = "deny"
mem_forget = "deny"
missing_assert_message = "deny"
mixed_read_write_in_expression = "deny"
panic = "deny"
panic_in_result_fn = "deny"
print_stderr = "deny"
print_stdout = "deny"
rc_mutex = "deny"
redundant_pub_crate = "allow"
shadow_unrelated = "deny"
string_slice = "deny"
suspicious_xor_used_as_pow = "deny"
todo = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
verbose_file_reads = "deny"
wildcard_enum_match_arm = "deny"

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

[lints.clippy.cargo]
level = "deny"
priority = -1

[lints.clippy.complexity]
level = "deny"
priority = -1

[lints.clippy.correctness]
level = "deny"
priority = -1

[lints.clippy.nursery]
level = "deny"
priority = -1

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

[lints.clippy.perf]
level = "deny"
priority = -1

[lints.clippy.style]
level = "deny"
priority = -1

[lints.clippy.suspicious]
level = "deny"
priority = -1

[lints.rust]
absolute-paths-not-starting-with-crate = "forbid"
elided-lifetimes-in-paths = "forbid"
explicit-outlives-requirements = "forbid"
ffi-unwind-calls = "forbid"
keyword-idents-2018 = "forbid"
keyword-idents-2024 = "forbid"
macro-use-extern-crate = "forbid"
meta-variable-misuse = "forbid"
missing-abi = "forbid"
missing-docs = "warn"
missing-unsafe-on-extern = "forbid"
non-ascii-idents = "forbid"
redundant-lifetimes = "forbid"
rust-2021-incompatible-closure-captures = "forbid"
rust-2021-incompatible-or-patterns = "forbid"
rust-2021-prefixes-incompatible-syntax = "forbid"
rust-2021-prelude-collisions = "forbid"
rust-2024-incompatible-pat = "forbid"
single-use-lifetimes = "forbid"
trivial-casts = "forbid"
trivial-numeric-casts = "forbid"
unit-bindings = "forbid"
unreachable-code = "allow"
unreachable-pub = "forbid"
unsafe-code = "forbid"
unsafe-op-in-unsafe-fn = "forbid"
unstable-features = "forbid"
unused-extern-crates = "deny"
unused-import-braces = "deny"
unused-lifetimes = "deny"
unused-macro-rules = "deny"
unused-qualifications = "deny"
unused-results = "deny"
variant-size-differences = "forbid"

[lints.rustdoc]
broken-intra-doc-links = "deny"
private-intra-doc-links = "deny"

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = "symbols"