# 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 = "tftio-org-gdocs"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sync org-mode documents to Google Docs and pull reviewer comments back into org-mode"
readme = false
keywords = [
    "cli",
    "org-mode",
    "google-docs",
    "emacs",
    "sync",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://gitlab.com/tftio/tools"

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

[[bin]]
name = "org-gdocs"
path = "src/main.rs"

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

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

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

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

[dependencies.chrono]
version = "0.4"
features = ["clock"]
default-features = false

[dependencies.clap]
version = "4"
features = [
    "derive",
    "env",
]

[dependencies.google-docs1]
version = "7"

[dependencies.google-drive3]
version = "7"

[dependencies.hyper-rustls]
version = "0.27"
features = [
    "native-tokio",
    "ring",
    "http1",
    "http2",
]

[dependencies.hyper-util]
version = "0.1"
features = [
    "client-legacy",
    "tokio",
    "http1",
    "http2",
]

[dependencies.rustls]
version = "0.23"
features = ["ring"]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.tftio-cli-common]
version = "3.0.3"

[dependencies.tftio-kb]
version = "2.5.2"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "net",
    "time",
]

[dependencies.toml]
version = "1"

[dependencies.yup-oauth2]
version = "12"

[dev-dependencies.mockito]
version = "1"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "macros",
    "rt",
]

[lints.clippy]
bool_to_int_with_if = "allow"
branches_sharing_code = "allow"
cargo_common_metadata = "allow"
cognitive_complexity = "allow"
collapsible_if = "allow"
duration_suboptimal_units = "allow"
enum_glob_use = "deny"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
multiple_crate_versions = "allow"
significant_drop_tightening = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
use_self = "allow"
wildcard_imports = "deny"

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

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

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

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

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