# 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 = "mcp3x6x"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "no_std library for the MCP3x6x(R) family of analog digital converters"
readme = "README.md"
keywords = [
    "embedded-hal",
    "ADC",
    "MCP346x",
    "MCP356x",
]
categories = [
    "hardware-support",
    "no-std",
    "embedded",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/WMT-GmbH/mcp3x6x"

[package.metadata.docs.rs]
all-features = true

[features]
__16_bit = []
__24_bit = []
__has_ch2_ch3 = []
__has_ch4_ch5_ch6_ch7 = []
__has_voltage_reference = []
defmt = ["dep:defmt"]
mcp3461 = ["__16_bit"]
mcp3461r = [
    "__16_bit",
    "__has_voltage_reference",
]
mcp3462 = [
    "__16_bit",
    "__has_ch2_ch3",
]
mcp3462r = [
    "__16_bit",
    "__has_voltage_reference",
    "__has_ch2_ch3",
]
mcp3464 = [
    "__16_bit",
    "__has_ch2_ch3",
    "__has_ch4_ch5_ch6_ch7",
]
mcp3464r = [
    "__16_bit",
    "__has_voltage_reference",
    "__has_ch2_ch3",
    "__has_ch4_ch5_ch6_ch7",
]
mcp3465r = [
    "__16_bit",
    "__has_voltage_reference",
]
mcp3561 = ["__24_bit"]
mcp3561r = [
    "__24_bit",
    "__has_voltage_reference",
]
mcp3562 = [
    "__24_bit",
    "__has_ch2_ch3",
]
mcp3562r = [
    "__24_bit",
    "__has_voltage_reference",
    "__has_ch2_ch3",
]
mcp3564 = [
    "__24_bit",
    "__has_ch2_ch3",
    "__has_ch4_ch5_ch6_ch7",
]
mcp3564r = [
    "__24_bit",
    "__has_voltage_reference",
    "__has_ch2_ch3",
    "__has_ch4_ch5_ch6_ch7",
]
mcp3565r = [
    "__24_bit",
    "__has_voltage_reference",
]

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

[dependencies.defmt]
version = "1.0.1"
optional = true

[dependencies.embedded-hal]
version = "1.0.0"

[dependencies.modular-bitfield]
version = "0.13.0"
