cpd-semantic 0.1.1

Semantic (Type-4) clones for cpd: functions compared by code embeddings
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.96"
name = "cpd-semantic"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Semantic (Type-4) clones for cpd: functions compared by code embeddings"
homepage = "https://jscpd.dev"
documentation = "https://docs.rs/cpd-semantic"
readme = false
keywords = [
    "duplicate-code",
    "clone-detection",
    "embeddings",
    "cpd",
    "static-analysis",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/kucherenko/jscpd"
resolver = "2"

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

[dependencies.candle-core]
version = "0.11"

[dependencies.candle-nn]
version = "0.11"

[dependencies.cpd-core]
version = "0.1.20"

[dependencies.cpd-finder]
version = "0.1.20"

[dependencies.cpd-tokenizer]
version = "0.1.19"

[dependencies.rayon]
version = "1"

[dependencies.ruff_python_ast]
version = "0.0.15"

[dependencies.ruff_python_parser]
version = "0.0.15"

[dependencies.rustc-hash]
version = "2"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"

[dependencies.tokenizers]
version = "0.23"
features = ["fancy-regex"]
default-features = false

[dependencies.tree-sitter]
version = "0.27"

[dependencies.tree-sitter-c]
version = "0.24"

[dependencies.tree-sitter-c-sharp]
version = "0.23"

[dependencies.tree-sitter-cpp]
version = "0.23"

[dependencies.tree-sitter-go]
version = "0.25"

[dependencies.tree-sitter-java]
version = "0.23"

[dependencies.tree-sitter-kotlin-ng]
version = "1.1"

[dependencies.tree-sitter-language]
version = "0.1"

[dependencies.tree-sitter-php]
version = "0.24"

[dependencies.tree-sitter-ruby]
version = "0.23"

[dependencies.tree-sitter-scala]
version = "0.26"

[dependencies.tree-sitter-swift]
version = "0.7"

[dependencies.xxhash-rust]
version = "0.8"
features = ["xxh3"]

[target.'cfg(any(windows, target_os = "macos"))'.dependencies.ureq]
version = "3"
features = [
    "native-tls",
    "json",
]
default-features = false

[target.'cfg(not(any(windows, target_os = "macos")))'.dependencies.ureq]
version = "3"
features = [
    "rustls",
    "json",
]
default-features = false

[target.'cfg(target_os = "macos")'.dependencies.candle-core]
version = "0.11"
features = ["accelerate"]

[target.'cfg(target_os = "macos")'.dependencies.candle-nn]
version = "0.11"
features = ["accelerate"]