[package]
edition = "2024"
rust-version = "1.85"
name = "divecomputer-core"
version = "0.1.0"
authors = ["Michael Lohr <michael@lohr.dev>"]
build = false
include = [
"/src",
"/README.md",
"/LICENSE-MIT",
"/LICENSE-APACHE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared building blocks for dive computer protocols: checksums, framing and the dive data model"
homepage = "https://michidk.github.io/divecomputer-rs/"
readme = "README.md"
keywords = [
"dive-computer",
"diving",
"scuba",
"dive-log",
]
categories = [
"hardware-support",
"parser-implementations",
"no-std",
"wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/michidk/divecomputer-rs"
[features]
serde = [
"dep:serde",
"jiff/serde",
]
[lib]
name = "divecomputer_core"
path = "src/lib.rs"
[dependencies.crc]
version = "3.4"
default-features = false
[dependencies.jiff]
version = "1.0.3"
default-features = false
[dependencies.serde]
version = "1"
features = [
"alloc",
"derive",
]
optional = true
default-features = false
[dependencies.thiserror]
version = "2"
default-features = false
[lints.clippy]
arithmetic_side_effects = "warn"
as_conversions = "warn"
expect_used = "deny"
indexing_slicing = "deny"
multiple_crate_versions = "allow"
panic = "deny"
unwrap_used = "deny"
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_qualifications = "warn"