[package]
edition = "2021"
rust-version = "1.88"
name = "fit-encoder"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Write FIT activity files (the Flexible and Interoperable Data Transfer format) as a stream: file header first, CRC last, sizes known in advance. no_std, no allocation. Independent; not affiliated with Garmin"
readme = "README.md"
keywords = [
"fit",
"activity",
"fitness",
"encoder",
"embedded",
]
categories = [
"embedded",
"encoding",
"no-std",
"no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tobymurray/wrist-rs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
alloc = []
async = []
embedded-io = ["dep:embedded-io"]
embedded-io-async = [
"async",
"dep:embedded-io-async",
]
std = ["alloc"]
[lib]
name = "fit_encoder"
path = "src/lib.rs"
[[example]]
name = "hr_activity"
path = "examples/hr_activity.rs"
required-features = ["std"]
[[test]]
name = "api"
path = "tests/api.rs"
[[test]]
name = "decode"
path = "tests/decode.rs"
[dependencies.embedded-io]
version = "0.7.1"
optional = true
[dependencies.embedded-io-async]
version = "0.7.0"
optional = true
[dev-dependencies.critical-section]
version = "1.2.0"
features = ["std"]
[dev-dependencies.embassy-futures]
version = "0.1.2"
[dev-dependencies.fitparser]
version = "0.12.0"
[dev-dependencies.proptest]
version = "1.11.0"
features = ["std"]
default-features = false
[dev-dependencies.rustyfit]
version = "0.11.2"
[target.'cfg(not(target_has_atomic = "32"))'.dependencies.critical-section]
version = "1.2.0"
[lints.clippy.pedantic]
level = "warn"
priority = -1