rcf3 0.5.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.5.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-detection",
    "mstream",
    "online-iforest",
    "random-cut-forest",
]
license = "MIT OR 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",
    "rand/serde",
]
std = []

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

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

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

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

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

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

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

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

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

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

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

[dependencies.ahash]
version = "0.8"
default-features = false

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

[dependencies.libm]
version = "0.2"

[dependencies.ndarray]
version = "0.17"
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.rand_distr]
version = "0.6"
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.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.fake]
version = "5.1"
features = ["derive"]

[dev-dependencies.proptest]
version = "1.11"

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

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

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