# 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 = "2021"
rust-version = "1.89"
name = "sklears-feature-selection"
version = "0.1.1"
authors = ["COOLJAPAN OU (Team KitaSan)"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Feature selection algorithms for sklears - scikit-learn compatible ML in Rust"
homepage = "https://github.com/cool-japan/sklears"
readme = "README.md"
keywords = [
    "machine-learning",
    "feature-selection",
    "scikit-learn",
]
categories = [
    "science",
    "mathematics",
]
license = "Apache-2.0"
repository = "https://github.com/cool-japan/sklears"

[features]
default = []
parquet = [
    "dep:parquet",
    "dep:arrow",
]
serde = [
    "dep:serde",
    "dep:serde_json",
    "dep:oxicode",
    "sklears-core/serde",
]

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

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

[dependencies.arrow]
version = "58.1"
optional = true
default-features = false

[dependencies.num_cpus]
version = "1.17"

[dependencies.oxicode]
version = "0.2"
optional = true

[dependencies.parquet]
version = "58.1"
optional = true

[dependencies.rayon]
version = "1.12"

[dependencies.scirs2-core]
version = "0.4.2"
features = [
    "random",
    "linalg",
    "serialization",
]
default-features = false

[dependencies.scirs2-optimize]
version = "0.4.2"
default-features = false

[dependencies.scirs2-stats]
version = "0.4.2"
default-features = false

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "derive",
]
optional = true

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.sklears-core]
version = "0.1.1"

[dependencies.sklears-utils]
version = "0.1.1"

[dependencies.statrs]
version = "0.18"

[dependencies.thiserror]
version = "2.0"

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

[dev-dependencies.criterion]
version = "0.8"

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

[lints.clippy]
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
deref_addrof = "allow"
eq_op = "allow"
excessive_precision = "allow"
ifs_same_cond = "allow"
incompatible_msrv = "allow"
large_enum_variant = "warn"
large_stack_arrays = "warn"
manual_clamp = "allow"
manual_slice_size_calculation = "allow"
match_like_matches_macro = "allow"
missing_docs_in_private_items = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
missing_safety_doc = "allow"
mixed_attributes_style = "allow"
module_name_repetitions = "allow"
needless_range_loop = "allow"
nonminimal_bool = "allow"
not_unsafe_ptr_arg_deref = "allow"
similar_names = "allow"
too_many_arguments = "allow"

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

[lints.rust]
ambiguous_glob_reexports = "allow"
dead_code = "warn"
missing_docs = "warn"
non_camel_case_types = "allow"
non_snake_case = "allow"
unused_imports = "warn"
unused_variables = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ['cfg(feature, values("gpu", "force_gc"))']
