marlin-binary-transfer 0.1.1

Host-side implementation of Marlin's Binary File Transfer Mark II protocol for SD-card upload to 3D printers.
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.75"
name = "marlin-binary-transfer"
version = "0.1.1"
build = false
exclude = ["fuzz/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Host-side implementation of Marlin's Binary File Transfer Mark II protocol for SD-card upload to 3D printers."
documentation = "https://docs.rs/marlin-binary-transfer"
readme = "README.md"
keywords = [
    "marlin",
    "3d-printing",
    "serial",
    "protocol",
    "gcode",
]
categories = [
    "network-programming",
    "embedded",
    "hardware-support",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/J040M/marlin-binary-transfer"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
blocking = ["std"]
default = ["std"]
heatshrink = ["dep:embedded-heatshrink"]
serial = [
    "dep:serialport",
    "blocking",
]
std = []
tokio = [
    "dep:tokio",
    "std",
]

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

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

[[example]]
name = "upload"
path = "examples/upload.rs"
required-features = [
    "blocking",
    "serial",
]

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

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

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

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

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

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

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

[dependencies.embedded-heatshrink]
version = "0.1"
features = ["std"]
optional = true

[dependencies.serialport]
version = "4"
optional = true

[dependencies.thiserror]
version = "2"

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

[dev-dependencies.criterion]
version = "0.8"

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

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

[target."cfg(any())".dependencies.pkg-config]
version = "0.3.9"