1
Fork 0
framed-rs/framed/Cargo.toml
Alex Helfet b5cdc7b86f Add framed::typed::encode_to_slice().
Also write framed::typed::max_*_len().
2017-12-28 17:01:24 +00:00

39 lines
1.1 KiB
TOML

[package]
name = "framed"
# Next version is 0.2.0. I changed the type of max_encoded_len
# was: pub fn max_encoded_len(usize) -> Result<usize>
# now: pub const fn max_encoded_len(usize) -> usize
version = "0.1.4"
description = "Send and receive data over lossy streams of bytes."
authors = ["Alex Helfet <alex.helfet@gmail.com>"]
categories = ["no-std", "embedded", "encoding", "network-programming"]
keywords = ["no_std", "networking", "datalink", "protocol", "embedded"]
readme = "../README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/fluffysquirrels/framed-rs"
[badges.travis-ci]
repository = "fluffysquirrels/framed-rs"
branch = "master"
[dependencies]
cobs = "^0.1.3"
ref_slice = "^1.1.1"
serde = { version = "^1.0", optional = true }
ssmarshal = { version = "^1.0", optional = true }
[dev-dependencies]
serde_derive = "^1.0"
[features]
default = ["use_std", "typed"]
# Enable to print all data to stdout for testing.
trace = []
# Use standard library. Enabled by default, disable for no_std.
use_std = []
# Enables the `typed` sub-module for sending and receiving
# structs serialized with serde.
typed = ["serde", "ssmarshal"]