# 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"
name = "nu-analytics"
version = "0.5.1"
authors = ["Albert Lionelle <a.lionelle@northeastern.edu>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A CLI tool for computing Curricular Analytics metrics. Based off metrics from CurricularAnalytics.org. Currently, only basic metrics and additional reporting features."
readme = "Readme.md"
keywords = [
    "curricular-analytics",
    "curriculum",
    "research",
    "cli",
    "metrics",
]
categories = [
    "command-line-utilities",
    "science",
]
license = "MIT"
repository = "https://github.com/NeuCurricularAnalytics/NuAnalytics"

[features]
database = [
    "dep:supabase-client-sdk",
    "dep:reqwest",
    "dep:csv",
    "dep:zip",
    "dep:tokio",
    "dep:form_urlencoded",
    "dep:sha2",
]
default = [
    "log-info",
    "log-debug",
    "verbose",
    "file-logging",
    "database",
    "mcp",
]
file-logging = []
log-debug = []
log-info = []
mcp = [
    "dep:rmcp",
    "dep:tokio",
    "database",
]
verbose = []

[lib]
name = "nu_analytics"
crate-type = ["rlib"]
path = "src/lib.rs"

[[bin]]
name = "nuanalytics"
path = "src/cli/main.rs"

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

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

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

[dependencies.chrono]
version = "0.4"

[dependencies.clap]
version = "4.5"
features = ["derive"]

[dependencies.csv]
version = "1.3"
optional = true

[dependencies.dirs]
version = "6.0"

[dependencies.fastrand]
version = "2.0"

[dependencies.form_urlencoded]
version = "1.2"
optional = true

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
optional = true
default-features = false

[dependencies.rmcp]
version = "1.0.0-alpha"
features = [
    "server",
    "transport-io",
]
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.supabase-client-sdk]
version = "0.2"
features = ["auth"]
optional = true

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "io-std",
    "fs",
    "net",
    "io-util",
    "time",
]
optional = true

[dependencies.toml]
version = "1.1"

[dependencies.zip]
version = "8"
optional = true

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

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

[lints.clippy]
all = "warn"
correctness = "deny"
nursery = "warn"
pedantic = "warn"
perf = "deny"

[lints.rust]
missing_docs = "warn"
unsafe_code = "warn"

[lints.rustdoc]
broken_intra_doc_links = "deny"
invalid_html_tags = "deny"
unescaped_backticks = "warn"

[profile.release]
opt-level = "z"
lto = true
