synthient 1.0.0

The official Rust client for the Synthient API: IP and domain intelligence, account details, and real-time and bulk data feeds.
Documentation
# 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.85"
name = "synthient"
version = "1.0.0"
build = false
include = [
    "/src",
    "/examples",
    "/README.md",
    "/LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The official Rust client for the Synthient API: IP and domain intelligence, account details, and real-time and bulk data feeds."
homepage = "https://synthient.com"
documentation = "https://docs.rs/synthient"
readme = "README.md"
keywords = [
    "synthient",
    "ip",
    "proxy",
    "vpn",
    "threat-intelligence",
]
categories = [
    "api-bindings",
    "network-programming",
    "web-programming::http-client",
]
license = "Apache-2.0"
repository = "https://github.com/synthient/synthient-rust"

[package.metadata.docs.rs]
features = ["grpcschema"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["rustls"]
grpcschema = [
    "dep:prost",
    "dep:prost-types",
    "dep:tonic",
    "dep:tonic-reflection",
]
native-tls = ["reqwest/native-tls"]
rustls = ["reqwest/rustls"]

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

[[example]]
name = "account"
path = "examples/account.rs"

[[example]]
name = "download_export"
path = "examples/download_export.rs"

[[example]]
name = "grpc_schema"
path = "examples/grpc_schema.rs"
required-features = ["grpcschema"]

[[example]]
name = "lookup_domain"
path = "examples/lookup_domain.rs"

[[example]]
name = "lookup_ip"
path = "examples/lookup_ip.rs"

[[example]]
name = "lookup_ips"
path = "examples/lookup_ips.rs"

[[example]]
name = "stream"
path = "examples/stream.rs"

[dependencies.base64]
version = "0.23.0"

[dependencies.bytes]
version = "1.10.0"

[dependencies.futures-util]
version = "0.3.31"
features = ["alloc"]
default-features = false

[dependencies.memchr]
version = "2.7.4"

[dependencies.prost]
version = "0.14.1"
optional = true

[dependencies.prost-types]
version = "0.14.1"
optional = true

[dependencies.reqwest]
version = "0.13.5"
features = [
    "http2",
    "system-proxy",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0.140"

[dependencies.tokio]
version = "1.44.2"
features = ["time"]

[dependencies.tonic]
version = "0.14.2"
features = [
    "channel",
    "tls-aws-lc",
    "tls-native-roots",
]
optional = true
default-features = false

[dependencies.tonic-reflection]
version = "0.14.2"
optional = true
default-features = false

[dev-dependencies.hex]
version = "0.4.3"

[dev-dependencies.sha2]
version = "0.10.9"

[dev-dependencies.tokio]
version = "1.44.2"
features = [
    "fs",
    "io-util",
    "macros",
    "net",
    "rt-multi-thread",
    "signal",
    "sync",
    "test-util",
]

[dev-dependencies.tonic]
version = "0.14.2"
features = [
    "router",
    "server",
]
default-features = false

[dev-dependencies.tonic-health]
version = "0.14.2"

[dev-dependencies.tonic-reflection]
version = "0.14.2"
features = ["server"]
default-features = false

[lints.clippy]
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_sign_loss = "warn"

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

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(docsrs)"]