77 lines
1.7 KiB
TOML
77 lines
1.7 KiB
TOML
# 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"
|
|
name = "cobs"
|
|
version = "0.3.0"
|
|
authors = [
|
|
"Allen Welkie <>",
|
|
"James Munns <james@onevariable.com>",
|
|
]
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = '''
|
|
This is an implementation of the Consistent Overhead Byte Stuffing (COBS) algorithm.
|
|
COBS is an algorithm for transforming a message into an encoding where a specific value
|
|
(the "sentinel" value) is not used. This value can then be used to mark frame boundaries
|
|
in a serial communication channel. '''
|
|
readme = "README.md"
|
|
keywords = [
|
|
"consistent",
|
|
"overhead",
|
|
"byte",
|
|
"stuffing",
|
|
"encoding",
|
|
]
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/jamesmunns/cobs.rs"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|
|
rustdoc-args = ["--generate-link-to-definition"]
|
|
|
|
[lib]
|
|
name = "cobs"
|
|
path = "src/lib.rs"
|
|
|
|
[[test]]
|
|
name = "tests"
|
|
path = "tests/tests.rs"
|
|
|
|
[dependencies.defmt]
|
|
version = "0.3"
|
|
optional = true
|
|
|
|
[dependencies.serde]
|
|
version = "1"
|
|
features = ["derive"]
|
|
optional = true
|
|
|
|
[dependencies.thiserror]
|
|
version = "2"
|
|
default-features = false
|
|
|
|
[dev-dependencies.quickcheck]
|
|
version = "1"
|
|
|
|
[features]
|
|
alloc = []
|
|
default = ["std"]
|
|
std = [
|
|
"alloc",
|
|
"thiserror/std",
|
|
]
|
|
use_std = ["std"]
|