[package]
edition = "2024"
rust-version = "1.90"
name = "sharepoint-cli"
version = "0.0.9"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Agent-friendly SharePoint Online CLI with JSON output, structured exit codes, and schema introspection"
homepage = "https://github.com/rvben/sharepoint-cli"
readme = "README.md"
keywords = [
"sharepoint",
"microsoft",
"graph",
"cli",
"files",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/rvben/sharepoint-cli"
[lib]
name = "sharepoint_cli"
path = "src/lib.rs"
[[bin]]
name = "sharepoint"
path = "src/main.rs"
[[test]]
name = "auth_concurrent_refresh"
path = "tests/auth_concurrent_refresh.rs"
[[test]]
name = "auth_refresh"
path = "tests/auth_refresh.rs"
[[test]]
name = "auth_token_retry"
path = "tests/auth_token_retry.rs"
[[test]]
name = "cmd_auth_env_refresh_token"
path = "tests/cmd_auth_env_refresh_token.rs"
[[test]]
name = "cmd_auth_login_canonicalizes_tenant"
path = "tests/cmd_auth_login_canonicalizes_tenant.rs"
[[test]]
name = "cmd_auth_login_quiet_prompts"
path = "tests/cmd_auth_login_quiet_prompts.rs"
[[test]]
name = "cmd_auth_logout"
path = "tests/cmd_auth_logout.rs"
[[test]]
name = "cmd_auth_no_client_id"
path = "tests/cmd_auth_no_client_id.rs"
[[test]]
name = "cmd_auth_status"
path = "tests/cmd_auth_status.rs"
[[test]]
name = "cmd_clap_error_is_json"
path = "tests/cmd_clap_error_is_json.rs"
[[test]]
name = "cmd_config"
path = "tests/cmd_config.rs"
[[test]]
name = "cmd_drives_list"
path = "tests/cmd_drives_list.rs"
[[test]]
name = "cmd_drives_list_pagination"
path = "tests/cmd_drives_list_pagination.rs"
[[test]]
name = "cmd_files_find"
path = "tests/cmd_files_find.rs"
[[test]]
name = "cmd_files_ls"
path = "tests/cmd_files_ls.rs"
[[test]]
name = "cmd_files_ls_pagination"
path = "tests/cmd_files_ls_pagination.rs"
[[test]]
name = "cmd_files_ls_recursive_rejects_pagination_flags"
path = "tests/cmd_files_ls_recursive_rejects_pagination_flags.rs"
[[test]]
name = "cmd_files_stat_download"
path = "tests/cmd_files_stat_download.rs"
[[test]]
name = "cmd_init_quiet"
path = "tests/cmd_init_quiet.rs"
[[test]]
name = "cmd_schema"
path = "tests/cmd_schema.rs"
[[test]]
name = "cmd_sites_list"
path = "tests/cmd_sites_list.rs"
[[test]]
name = "cmd_sites_use"
path = "tests/cmd_sites_use.rs"
[[test]]
name = "device_code_polling"
path = "tests/device_code_polling.rs"
[[test]]
name = "graph_download"
path = "tests/graph_download.rs"
[[test]]
name = "graph_page_token_host_validation"
path = "tests/graph_page_token_host_validation.rs"
[[test]]
name = "graph_retry"
path = "tests/graph_retry.rs"
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = [
"serde",
"clock",
]
default-features = false
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
[dependencies.dirs]
version = "6"
[dependencies.futures-util]
version = "0.3"
[dependencies.httpdate]
version = "1"
[dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls",
"json",
"stream",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tempfile]
version = "3"
[dependencies.terminal_size]
version = "0.4"
[dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"fs",
"io-util",
"io-std",
"time",
"sync",
]
[dependencies.toml]
version = "0.8"
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.jsonschema]
version = "0.46"
default-features = false
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"fs",
"io-util",
"time",
"sync",
"test-util",
]
[dev-dependencies.wiremock]
version = "0.6"