fit-encoder 0.1.1

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
Documentation
#![doc = include_str!("../README.md")]
#![no_std]
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(
    not(test),
    deny(
        clippy::indexing_slicing,
        clippy::panic,
        clippy::unwrap_used,
        clippy::expect_used,
        clippy::arithmetic_side_effects
    )
)]

#[cfg(feature = "alloc")]
extern crate alloc;
#[cfg(any(test, feature = "std"))]
extern crate std;

mod crc;
mod developer;
mod encoder;
mod messages;
mod raw;
mod types;

pub use crc::Crc;
pub use developer::{
    Dev, DevField, DevType, Developer, Extra, FieldDescription, InLap, InRecord, InSession, Kind,
    LapField, RecordField, Scalar, SessionField, Summary, DEVELOPERS_MAX, DEVELOPER_FIELDS_MAX,
    FIELD_NAME_MAX, SUMMARY_BYTES_MAX, UNITS_MAX,
};
#[cfg(feature = "std")]
pub use encoder::IoSink;
pub use encoder::{
    size, write, Error, FinishError, FnSink, Full, OnePass, Options, PatchSink, Sink, SliceSink,
    WriteError, Writer, DISTANCE_METERS_MAX, DURATION_SECONDS_MAX, LAPS_MAX, LENGTHS_MAX,
    SENSORS_MAX, SESSIONS_MAX, SETS_MAX,
};
#[cfg(feature = "alloc")]
pub use encoder::{to_vec, VecSink};
#[cfg(feature = "async")]
pub use encoder::{
    write_async, AsyncOnePass, AsyncPatchSink, AsyncSink, AsyncWriter, ASYNC_WRITE_LEN,
};
#[cfg(any(feature = "embedded-io", feature = "embedded-io-async"))]
pub use encoder::{EmbeddedIo, EmbeddedIoError};
pub use messages::{
    Altitude, Device, Exercise, LapTrigger, Leg, Length, Pool, Record, Set, PRODUCT_NAME_MAX,
    SPORT_NAME_MAX,
};
pub use raw::{RawField, RAW_FIELDS_MAX};
pub use types::{
    BaseType, ExerciseCategory, Manufacturer, Position, Sport, SubSport, SwimStroke, Timestamp,
    FIT_EPOCH_UNIX,
};