# 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.90"
name = "organism-notes"
version = "1.0.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Note and vault capability for Organism — vault management, source adapters, cleanup, enrichment"
readme = false
license = "MIT"
repository = "https://github.com/Reflective-Lab/organism"

[features]
cleanup = []
default = []
enrichment = []
sources-apple-notes = [
    "dep:base64",
    "dep:html2md",
]
sources-web = ["dep:organism-intelligence"]

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

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.chrono]
version = "0.4"
features = ["serde"]

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

[dependencies.organism-intelligence]
version = "1.0.0"
features = ["web"]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[lints.clippy]
doc_markdown = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
new_without_default = "allow"
return_self_not_must_use = "allow"
should_implement_trait = "allow"
unused_async = "allow"

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

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

[lints.rust]
unsafe_code = "forbid"
