mcap 0.25.0

A library for reading and writing MCAP files
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 = "2021"
rust-version = "1.81"
name = "mcap"
version = "0.25.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A library for reading and writing MCAP files"
homepage = "https://mcap.dev"
documentation = "https://docs.rs/mcap"
readme = "README.md"
keywords = [
    "foxglove",
    "mcap",
]
categories = [
    "science::robotics",
    "compression",
]
license = "MIT"
repository = "https://github.com/foxglove/mcap"

[features]
default = [
    "zstd",
    "lz4",
]
lz4 = ["dep:lz4"]
tokio = ["dep:tokio"]
zstd = ["dep:zstd"]

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

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

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

[[example]]
name = "conformance_reader_async"
path = "examples/conformance_reader_async.rs"
required-features = ["tokio"]

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

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

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

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

[[test]]
name = "attachment"
path = "tests/attachment.rs"

[[test]]
name = "chunks"
path = "tests/chunks.rs"

[[test]]
name = "common"
path = "tests/common.rs"

[[test]]
name = "compression"
path = "tests/compression.rs"

[[test]]
name = "flush"
path = "tests/flush.rs"

[[test]]
name = "handles_time0_messages"
path = "tests/handles_time0_messages.rs"

[[test]]
name = "message"
path = "tests/message.rs"

[[test]]
name = "metadata"
path = "tests/metadata.rs"

[[test]]
name = "round_trip"
path = "tests/round_trip.rs"

[[bench]]
name = "reader"
path = "benches/reader.rs"
harness = false

[dependencies.bimap]
version = "0.6.3"

[dependencies.binrw]
version = "0.15"

[dependencies.byteorder]
version = "1.4"

[dependencies.crc32fast]
version = "1.3"

[dependencies.enumset]
version = "1.0.11"

[dependencies.log]
version = "0.4"

[dependencies.lz4]
version = "1.27"
optional = true

[dependencies.num_cpus]
version = "1.13"

[dependencies.paste]
version = "1.0"

[dependencies.static_assertions]
version = "1.1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1"
features = ["io-util"]
optional = true

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.assert_matches]
version = "1.5.0"

[dev-dependencies.atty]
version = "0.2"

[dev-dependencies.camino]
version = "1.0"

[dev-dependencies.clap]
version = "4.6"
features = ["derive"]

[dev-dependencies.criterion]
version = "0.8.2"
features = ["async_tokio"]

[dev-dependencies.itertools]
version = "0.14"

[dev-dependencies.memmap2]
version = "0.9.5"

[dev-dependencies.rayon]
version = "1.5"

[dev-dependencies.serde]
version = "1.0.145"
features = ["derive"]

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.simplelog]
version = "0.12"

[dev-dependencies.tempfile]
version = "3.3"

[dev-dependencies.tokio]
version = "1"
features = [
    "io-util",
    "macros",
    "rt",
    "fs",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.zstd]
version = "0.13"
features = ["zstdmt"]
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.zstd]
version = "0.13"
features = ["wasm"]
optional = true