rcf3 0.1.0

A Rust implementation of the Random Cut Forest algorithm for anomaly detection.
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"
name = "rcf3"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust implementation of the Random Cut Forest algorithm for anomaly detection."
readme = "README.md"
keywords = [
    "anomaly",
    "anomaly-detection",
    "machine-learning",
    "random-cut-forest",
]
license = "Apache-2.0"
repository = "https://github.com/Bing-su/rcf3"

[features]
default = [
    "serde",
    "std",
]
python = [
    "dep:pyo3",
    "serde",
    "std",
]
serde = [
    "dep:serde",
    "dep:serde_json",
    "ndarray/serde",
    "ordered-float/serde",
    "rand/serde",
]
std = []

[lib]
name = "rcf3"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

[dependencies.itertools]
version = "0.14"
features = ["use_alloc"]
default-features = false

[dependencies.libm]
version = "0.2"

[dependencies.ndarray]
version = "0.17"
default-features = false

[dependencies.ordered-float]
version = "5.3"
default-features = false

[dependencies.pyo3]
version = "0.28"
features = [
    "extension-module",
    "generate-import-lib",
]
optional = true

[dependencies.rand]
version = "0.10"
features = ["sys_rng"]
default-features = false

[dependencies.serde]
version = "1"
features = [
    "alloc",
    "derive",
]
optional = true
default-features = false

[dependencies.serde_json]
version = "1"
features = ["alloc"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dev-dependencies.approx]
version = "0.5"

[dev-dependencies.rstest]
version = "0.26"

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

[target."cfg(not(windows))".dev-dependencies.criterion]
version = "=0.5.1"
features = ["html_reports"]

[target."cfg(not(windows))".dev-dependencies.pprof]
version = "0.15"
features = [
    "criterion",
    "flamegraph",
]

[profile.release]
lto = true
codegen-units = 1
strip = true