[package]
edition = "2024"
name = "force"
version = "0.1.0"
authors = ["Mark M"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Production-ready Salesforce Platform API client with REST and Bulk API 2.0 support"
homepage = "https://github.com/madmax983/force-rs"
documentation = "https://docs.rs/force"
readme = "README.md"
keywords = [
"salesforce",
"api",
"rest",
"bulk",
"crm",
]
categories = [
"api-bindings",
"web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/madmax983/force-rs"
resolver = "2"
[features]
all = [
"full",
"schema",
"data_utility",
"composite_graph",
"cpq",
]
apex_rest = []
bulk = ["dep:csv"]
composite = ["rest"]
composite_graph = ["composite"]
consent = []
cpq = ["apex_rest"]
data_cloud = []
data_utility = ["composite"]
default = ["rest"]
full = [
"rest",
"bulk",
"composite",
"tooling",
"jwt",
"ui",
"graphql",
"data_cloud",
"apex_rest",
"consent",
]
graphql = []
jwt = ["dep:jsonwebtoken"]
mock = ["dep:wiremock"]
rest = []
schema = ["rest"]
tooling = []
ui = []
username_password = []
[lib]
name = "force"
path = "src/lib.rs"
[[example]]
name = "basic_crud"
path = "examples/basic_crud.rs"
[[example]]
name = "bulk_delete"
path = "examples/bulk_delete.rs"
[[example]]
name = "bulk_error_handling"
path = "examples/bulk_error_handling.rs"
[[example]]
name = "bulk_insert"
path = "examples/bulk_insert.rs"
[[example]]
name = "bulk_query"
path = "examples/bulk_query.rs"
[[example]]
name = "bulk_update"
path = "examples/bulk_update.rs"
[[example]]
name = "data_dictionary"
path = "examples/data_dictionary.rs"
required-features = ["schema"]
[[example]]
name = "describe"
path = "examples/describe.rs"
[[example]]
name = "dynamic_query"
path = "examples/dynamic_query.rs"
[[example]]
name = "generate_struct"
path = "examples/generate_struct.rs"
required-features = ["schema"]
[[example]]
name = "graphql"
path = "examples/graphql.rs"
required-features = ["graphql"]
[[example]]
name = "org_limits"
path = "examples/org_limits.rs"
[[example]]
name = "query_plan"
path = "examples/query_plan.rs"
required-features = ["rest"]
[[example]]
name = "readme_bulk_insert"
path = "examples/readme_bulk_insert.rs"
[[example]]
name = "readme_bulk_query"
path = "examples/readme_bulk_query.rs"
[[example]]
name = "readme_quick_start"
path = "examples/readme_quick_start.rs"
[[example]]
name = "search"
path = "examples/search.rs"
[[example]]
name = "soql_mass_op"
path = "examples/soql_mass_op.rs"
required-features = ["composite"]
[[example]]
name = "soql_query"
path = "examples/soql_query.rs"
[[example]]
name = "tooling"
path = "examples/tooling.rs"
required-features = ["tooling"]
[[example]]
name = "ui_api"
path = "examples/ui_api.rs"
required-features = ["ui"]
[[test]]
name = "auth_timeout"
path = "tests/auth_timeout.rs"
[[test]]
name = "composite_batch"
path = "tests/composite_batch.rs"
[[test]]
name = "havoc_batch_panic"
path = "tests/havoc_batch_panic.rs"
[[test]]
name = "havoc_clear_race"
path = "tests/havoc_clear_race.rs"
[[test]]
name = "havoc_concurrency"
path = "tests/havoc_concurrency.rs"
[[test]]
name = "havoc_csv_panic"
path = "tests/havoc_csv_panic.rs"
[[test]]
name = "havoc_force_refresh"
path = "tests/havoc_force_refresh.rs"
[[test]]
name = "havoc_graph_limit"
path = "tests/havoc_graph_limit.rs"
[[test]]
name = "havoc_soft_refresh_stale_return"
path = "tests/havoc_soft_refresh_stale_return.rs"
[[test]]
name = "havoc_soql_panic"
path = "tests/havoc_soql_panic.rs"
[[test]]
name = "havoc_token_leak"
path = "tests/havoc_token_leak.rs"
[[test]]
name = "havoc_token_overwrite"
path = "tests/havoc_token_overwrite.rs"
[[test]]
name = "havoc_token_stall"
path = "tests/havoc_token_stall.rs"
[[test]]
name = "havoc_username_password_race"
path = "tests/havoc_username_password_race.rs"
[[test]]
name = "live_salesforce"
path = "tests/live_salesforce.rs"
[[test]]
name = "promoted_public_paths"
path = "tests/promoted_public_paths.rs"
[[test]]
name = "query_stream_correctness"
path = "tests/query_stream_correctness.rs"
[[test]]
name = "regression_bulk_batch_size"
path = "tests/regression_bulk_batch_size.rs"
[[test]]
name = "regression_query_more_absolute_url"
path = "tests/regression_query_more_absolute_url.rs"
[[test]]
name = "regression_smart_ingest_batch_size"
path = "tests/regression_smart_ingest_batch_size.rs"
[[test]]
name = "regression_token_overflow"
path = "tests/regression_token_overflow.rs"
[[test]]
name = "security_bulk_injection"
path = "tests/security_bulk_injection.rs"
[[test]]
name = "security_soql_injection"
path = "tests/security_soql_injection.rs"
[[test]]
name = "security_sosl_injection"
path = "tests/security_sosl_injection.rs"
[[test]]
name = "security_upsert_injection"
path = "tests/security_upsert_injection.rs"
[[test]]
name = "smart_ingest_allocation"
path = "tests/smart_ingest_allocation.rs"
[[test]]
name = "test_query_batch"
path = "tests/test_query_batch.rs"
[[test]]
name = "token_audit"
path = "tests/token_audit.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.bytes]
version = "1.9"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.csv]
version = "1.3"
optional = true
[dependencies.futures]
version = "0.3"
[dependencies.jsonwebtoken]
version = "9.3"
optional = true
[dependencies.percent-encoding]
version = "2.3"
[dependencies.reqwest]
version = "0.12"
features = [
"rustls-tls",
"json",
"stream",
]
default-features = false
[dependencies.secrecy]
version = "0.10"
features = ["serde"]
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.42"
features = ["full"]
[dependencies.tracing]
version = "0.1"
[dependencies.url]
version = "2.5"
[dependencies.wiremock]
version = "0.6"
optional = true
[dev-dependencies.anyhow]
version = "1.0"
[dev-dependencies.loom]
version = "0.7"
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.tokio-test]
version = "0.4"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[dev-dependencies.wiremock]
version = "0.6"
[lints.clippy]
expect_used = "warn"
unwrap_used = "warn"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"